/* ==========================================================================
   UPSC Mains Answer Correcter - Elegant Slate & Gold Dark Academic Theme
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Inter', system-ui, sans-serif;

  /* Premium Academic Palette */
  --bg-main: #0a0d14;
  --bg-deep: #06080c;
  --panel-glass: rgba(15, 23, 42, 0.45);
  --panel-glass-border: rgba(212, 175, 55, 0.15);
  --panel-glass-hover: rgba(20, 30, 55, 0.55);

  /* Elite Gold Accents */
  --gold-primary: #d4af37;
  --gold-glow: #f39c12;
  --gold-muted: rgba(212, 175, 55, 0.6);
  --gold-light: #f7e7b4;

  /* Typography Colors */
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  /* Status Colors */
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets & Structure */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Ambient glow bubbles in the background */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  bottom: -5%;
  left: -5%;
}

/* Glassmorphism Panel Utility */
.glass-panel {
  background: var(--panel-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 32px 0 rgba(212, 175, 55, 0.05);
}

.padded {
  padding: 2rem;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Views Logic */
.view {
  width: 100%;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), #b8901a);
  color: var(--bg-deep);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #e5c048, var(--gold-primary));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-muted);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
}

.btn-full {
  width: 100%;
}

/* Input Fields & Form Controls */
.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--gold-muted);
  font-size: 1.1rem;
}

.input-wrapper input, .input-wrapper select, textarea {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.input-wrapper input:focus, .input-wrapper select:focus, textarea:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

textarea {
  padding: 1rem;
  resize: vertical;
  line-height: 1.7;
}

.textarea-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#word-counter {
  font-size: 0.8rem;
  color: var(--gold-primary);
  font-weight: 600;
}

/* ==========================================================================
   AUTH SCREEN
   ========================================================================== */
#auth-view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at center, #0f172a 0%, var(--bg-deep) 100%);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 3rem 2.5rem;
  border-radius: 24px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.academy-emblem {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, var(--gold-primary), #9e7d1b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--bg-deep);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.auth-header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-main);
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tab-selectors {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.25rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: var(--gold-primary);
  color: var(--bg-deep);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   PORTAL LAYOUT (DASHBOARD FRAME)
   ========================================================================== */
#portal-view {
  display: grid;
  grid-template-columns: 280px 1fr;
}

/* Sidebar Styling */
.sidebar {
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
}

.sidebar-brand {
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-icon {
  font-size: 1.8rem;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.brand-text h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--gold-primary);
  font-weight: 600;
  text-transform: uppercase;
}

.user-profile {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold-primary);
}

.profile-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-info .user-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-nav {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
}

.nav-item i {
  font-size: 1.1rem;
}

.nav-item:hover, .nav-item.active {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}

.nav-item.active {
  font-weight: 600;
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 8px 8px 0;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Main Content Area */
.main-content {
  padding: 2.5rem;
  overflow-y: auto;
  height: 100vh;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-header h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
}

/* ==========================================================================
   DASHBOARD METRICS
   ========================================================================== */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem;
}

.metric-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.gold-bg {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  border: 1px solid var(--gold-muted);
}
.green-bg {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.purple-bg {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.metric-info h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metric-info .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  margin-top: 0.25rem;
  display: block;
}

/* Dashboard Body layout */
.dashboard-body-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 2rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.panel-header h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-primary);
}

.view-all-link {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* History Table Styles */
.table-wrapper {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.history-table th {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.history-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
}

.history-table tr:last-child td {
  border-bottom: none;
}

.history-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.score-badge.high {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid var(--success);
}
.score-badge.mid {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid var(--warning);
}
.score-badge.low {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem !important;
  color: var(--text-muted);
}

/* Rubric card styles */
.info-card h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.rubric-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rubric-item {
  display: flex;
  gap: 1rem;
}

.rubric-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.rubric-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.rubric-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   EVALUATION ENGINE PAGE
   ========================================================================== */
.eval-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.eval-form-container {
  padding: 2.5rem;
}

/* Loading panel */
.status-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 400px;
}

.loader-content {
  max-width: 400px;
}

.academic-spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: rgba(212, 175, 55, 0.15);
  border: 2px dashed var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold-primary);
  animation: spin-dashed 6s linear infinite;
}

.academic-spinner i {
  animation: bounce-small 2s ease-in-out infinite;
}

@keyframes spin-dashed {
  100% { transform: rotate(360deg); }
}

@keyframes bounce-small {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.status-panel h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}

.status-panel p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.step-progress {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 250px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.step-item.active {
  color: var(--gold-primary);
  font-weight: 600;
}

.step-item.completed {
  color: var(--success);
}

/* ==========================================================================
   EVALUATION DETAILS PANEL
   ========================================================================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-question-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-main);
  border-left: 3px solid var(--gold-primary);
  padding-left: 1.25rem;
}

.submitted-answer-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
  white-space: pre-wrap;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-sidebar h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.score-highlight-card {
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.15) 0%, var(--panel-glass) 80%);
}

.large-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px double var(--gold-primary);
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.1);
}

.score-number {
  font-size: 3.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--gold-primary);
}

.score-slash {
  font-size: 1.5rem;
  color: var(--gold-muted);
  margin: 0 2px;
}

.score-max {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 15px;
}

.overall-badge {
  display: inline-block;
  background: var(--gold-primary);
  color: var(--bg-deep);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.comment-bubble {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

/* Component Breakdown Progress Bars */
.grade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.component-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.component-score {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.bar-container {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin: 0 1rem;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold-primary));
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.component-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.bullet-list-checked, .bullet-list-warn {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.bullet-list-checked li, .bullet-list-warn li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.bullet-list-checked li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.bullet-list-warn li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold-primary);
}

/* Markdown styling inside outline */
.markdown-body {
  line-height: 1.7;
}

.markdown-body h3 {
  font-size: 1.15rem;
  color: var(--gold-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border: none;
  padding-bottom: 0;
}

.markdown-body h4 {
  font-size: 0.98rem;
  color: var(--text-main);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.markdown-body p {
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.markdown-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-body li {
  margin-bottom: 0.35rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  background: #1e293b;
  border-left: 4px solid var(--gold-primary);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(100px);
  opacity: 0;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Margins Utility */
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.green-text { color: var(--success); }
.gold-text { color: var(--gold-primary); }

/* Responsive adjustments */
@media(max-width: 992px) {
  #portal-view {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: relative;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem;
  }
  .main-content {
    height: auto;
    padding: 1.5rem;
  }
  .dashboard-body-grid, .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Image Upload Dropzone Styles */
.image-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.image-dropzone:hover, .image-dropzone.dragover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.hidden-file-input {
  display: none;
}

.image-preview-container {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.image-preview-container img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-clear {
  background: rgba(239, 68, 68, 0.15) !important;
  color: var(--danger) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.btn-clear:hover {
  background: rgba(239, 68, 68, 0.3) !important;
}
