/* ==========================================================================
   HF DRIVE INDEX — PREMIER DARK THEME STYLESHEET
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Dark Palette Tokens */
  --bg-dark: #090d16;
  --bg-card: rgba(17, 24, 39, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --bg-input: rgba(15, 23, 42, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(99, 102, 241, 0.35);
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #64748b;

  /* Accent Gradients */
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
  --btn-gradient: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  --btn-hover-gradient: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
  
  /* Shadows */
  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Ambient Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
}

/* Layout Wrapper */
.app-layout {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topbar__subtitle {
  font-size: 0.875rem;
  color: var(--text-sub);
  display: block;
}

.topbar__badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(8px);
}

.badge--tech {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge--cdn {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 2s infinite;
}

.pulse-dot--orange {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-logout {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #f87171;
  color: #ffffff;
}

/* Stats Overview Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-main);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.stat-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card__icon--blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.stat-card__icon--purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
}

.stat-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.stat-card__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-card--search {
  grid-column: span 1;
  padding: 0.75rem 1rem;
}

.search-box {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.65rem 2.2rem 0.65rem 2.5rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.clear-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.clear-btn:hover {
  color: var(--text-main);
}

/* Main Content Glass Card */
.content-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-main);
  padding: 1.5rem;
  flex: 1;
}

/* Breadcrumbs Bar */
.breadcrumb-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.crumb-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.crumb-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.crumb-btn--active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.crumb-sep {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Loading & Error Status */
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 500;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  width: 100%;
}

/* Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.filelist {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  text-align: left;
}

.filelist th {
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.col-name { width: 58%; }
.col-size { width: 20%; }
.col-action { width: 22%; text-align: right; }

.file-row {
  background: rgba(15, 23, 42, 0.4);
  transition: var(--transition-fast);
  border-radius: 12px;
  cursor: pointer;
}

.file-row td {
  padding: 0.85rem 1.25rem;
  vertical-align: middle;
}

.file-row td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.file-row td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.file-row:hover {
  background: var(--bg-card-hover);
  transform: scale(1.005);
}

.file-row--folder:hover {
  background: rgba(245, 158, 11, 0.08);
}

.folder-row-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.file-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-icon-wrapper--folder {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.file-name {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

.file-name--folder {
  color: #fde68a;
}

/* Icon Variants */
.icon--folder { color: #f59e0b; }
.icon--folder-up { color: #38bdf8; }
.icon--pdf { color: #f87171; }
.icon--archive { color: #fbbf24; }
.icon--image { color: #f472b6; }
.icon--video { color: #c084fc; }
.icon--code { color: #34d399; }
.icon--doc { color: #60a5fa; }
.icon--default { color: #94a3b8; }

/* Size Pill */
.size-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-block;
}

.size-badge--folder {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

/* Action Button Group */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

/* Icon-Only Buttons for Index Table */
.btn-icon-action {
  width: 35px;
  height: 35px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  flex-shrink: 0;
}

.btn-icon-action.btn-preview {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
}

.btn-icon-action.btn-preview:hover {
  background: rgba(99, 102, 241, 0.35);
  color: #ffffff;
  border-color: #6366f1;
  transform: translateY(-1px);
}

.btn-icon-action.btn-copy-link {
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  border-color: rgba(6, 182, 212, 0.3);
}

.btn-icon-action.btn-copy-link:hover {
  background: rgba(6, 182, 212, 0.3);
  color: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.btn-icon-action.btn-share-folder {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.3);
}

.btn-icon-action.btn-share-folder:hover {
  background: rgba(245, 158, 11, 0.3);
  color: #ffffff;
  border-color: #f59e0b;
}

.btn-icon-action.btn-download {
  background: var(--btn-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-icon-action.btn-download:hover {
  background: var(--btn-hover-gradient);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

.btn-copy-link--copied {
  background: rgba(52, 211, 153, 0.25) !important;
  color: #34d399 !important;
  border-color: #34d399 !important;
}

/* Modal Copy Link Button */
.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-copy-link:hover {
  background: rgba(6, 182, 212, 0.25);
  color: #7dd3fc;
  border-color: #38bdf8;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-gradient);
  color: #ffffff;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  white-space: nowrap;
}

.btn-download:hover {
  background: var(--btn-hover-gradient);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-download--sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.775rem;
}

.btn-download--lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.btn-open-folder {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-open-folder:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

/* Empty Search State */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--text-sub);
}

.empty-state svg {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.empty-state p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PASSWORD LOCK SCREEN STYLES
   ========================================================================== */

.modal-overlay--lock {
  background: rgba(5, 8, 15, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.lock-card {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-highlight);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lock-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.lock-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.lock-subtitle {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.lock-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  text-align: center;
  transition: var(--transition-fast);
}

.input-wrapper input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

.lock-error-msg {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

.btn-unlock {
  width: 100%;
  background: var(--btn-gradient);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.btn-unlock:hover {
  background: var(--btn-hover-gradient);
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(79, 70, 229, 0.6);
}

.btn-unlock:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   MODAL PREVIEW STYLES
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-container {
  background: #111827;
  border: 1px solid var(--border-highlight);
  border-radius: 20px;
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.8);
  gap: 1rem;
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
}

.modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-file-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.modal-file-size {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  background: rgba(10, 15, 26, 0.6);
}

.preview-media-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.preview-video {
  width: 100%;
  max-height: 65vh;
  border-radius: 12px;
  outline: none;
  background: #000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.audio-player-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.audio-visualizer-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

.audio-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.preview-audio {
  width: 100%;
  outline: none;
  margin-top: 0.5rem;
}

.preview-pdf-wrapper {
  width: 100%;
  height: 68vh;
}

.preview-pdf {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.code-preview-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.code-lang-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  transition: var(--transition-fast);
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.preview-code-box {
  width: 100%;
  max-height: 58vh;
  overflow: auto;
  background: #060a12;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
}

.fallback-preview-card {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.fallback-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fallback-preview-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.fallback-preview-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
