/* B3D Studio Tools — Styling for Explode Slider & B3D Explorer Modal */

.hidden {
  display: none !important;
}

/* 1. Top Bar Status Badge */
.studio-file-badge {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(30, 80, 140, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s ease;
  user-select: none;
}
.studio-file-badge:hover {
  background: rgba(40, 110, 190, 0.95);
  box-shadow: 0 0 8px rgba(95, 143, 232, 0.5);
  transform: translateY(-1px);
}

/* 2. Floating Explode View Panel */
.studio-floating-panel {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 12px 18px;
  color: #e6edf3;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  animation: studioSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes studioSlideUp {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.studio-panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #58a6ff;
  white-space: nowrap;
}

.studio-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-range {
  -webkit-appearance: none;
  width: 180px;
  height: 6px;
  background: #30363d;
  border-radius: 3px;
  outline: none;
}
.studio-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #58a6ff;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(88, 166, 255, 0.6);
  transition: transform 0.1s ease;
}
.studio-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.studio-badge {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  padding: 2px 6px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-family: monospace;
  font-weight: bold;
  color: #79c0ff;
}

.studio-panel-btn {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.studio-panel-btn:hover {
  background: #30363d;
  color: #f0f6fc;
}
.studio-panel-btn.close {
  padding: 4px 8px;
  color: #8b949e;
}
.studio-panel-btn.close:hover {
  color: #f85149;
}

/* 3. B3D Explorer Modal Dialog */
.b3d-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: studioFadeIn 0.2s ease;
}

@keyframes studioFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.b3d-modal-window {
  width: 860px;
  max-width: 94vw;
  max-height: 88vh;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  color: #c9d1d9;
  overflow: hidden;
}

.b3d-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.b3d-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #f0f6fc;
}

.b3d-modal-close {
  background: transparent;
  border: none;
  color: #8b949e;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}
.b3d-modal-close:hover {
  background: #21262d;
  color: #f85149;
}

.b3d-modal-tabs {
  display: flex;
  gap: 2px;
  padding: 0 16px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
  overflow-x: auto;
}

.b3d-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b949e;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.b3d-tab-btn:hover {
  color: #c9d1d9;
}
.b3d-tab-btn.active {
  color: #58a6ff;
  border-bottom-color: #58a6ff;
  font-weight: 500;
}

.b3d-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.b3d-tab-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Modal Tables */
.studio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.studio-table th {
  text-align: left;
  padding: 8px 10px;
  background: #161b22;
  color: #8b949e;
  border-bottom: 1px solid #30363d;
  font-weight: 600;
}
.studio-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #21262d;
  color: #c9d1d9;
}
.studio-table tr:hover td {
  background: rgba(110, 118, 129, 0.08);
}

/* Progress bar inside section table */
.studio-progress {
  width: 70px;
  height: 5px;
  background: #21262d;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.studio-progress-fill {
  height: 100%;
  background: #238636;
  border-radius: 3px;
}

/* Tags */
.studio-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}
.studio-tag.safe {
  background: rgba(35, 134, 54, 0.2);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.4);
}
.studio-tag.caution {
  background: rgba(210, 153, 34, 0.2);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.4);
}
.studio-tag.danger {
  background: rgba(248, 81, 73, 0.2);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.4);
}

/* Chips & Nodes */
.studio-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.studio-type-chip {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.studio-type-chip b {
  color: #58a6ff;
  font-family: monospace;
}

.studio-tree-node {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: monospace;
}
.studio-tree-node:hover {
  background: #161b22;
}
.studio-tree-node .tw {
  color: #8b949e;
  margin-right: 6px;
}
.studio-tree-node .lbl {
  flex: 1;
}
.studio-tree-node .sz {
  color: #79c0ff;
}

.studio-samples-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.studio-sample-pill {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.studio-sample-pill:hover {
  background: #30363d;
  border-color: #58a6ff;
  color: #58a6ff;
}

/* Modal Footer */
.b3d-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #161b22;
  border-top: 1px solid #30363d;
}

.btn-b3d-clean {
  background: #238636;
  border: 1px solid rgba(240, 246, 252, 0.1);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.btn-b3d-clean:hover {
  background: #2ea043;
  box-shadow: 0 0 12px rgba(46, 160, 67, 0.4);
}
.btn-b3d-clean:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
