/* ==========================================================================
   THALVORA EXPORTS - ADMIN PANEL STYLESHEET
   ========================================================================== */

/* 1. Imports & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #1E40AF;
  --primary-light: #3B82F6;
  --primary-dark: #0F172A;
  
  --secondary: #D4A373;
  --secondary-light: #E9C46A;
  
  --bg-main: #F4F6F9;
  --bg-sidebar: #0B0F26;
  --bg-card: #FFFFFF;
  
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  
  --border-color: #E2E8F0;
  
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

  /* Layout dimensions */
  --sidebar-width: 260px;
  --header-height: 70px;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Common Classes */
.hidden {
  display: none !important;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* ==========================================================================
   3. Login Gate Screen
   ========================================================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.08) 0%, rgba(15, 23, 42, 0.05) 90%), #F1F5F9;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.login-logo-icon {
  width: 38px;
  height: 38px;
  color: var(--primary);
}

.login-logo-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
}

.login-logo-title span {
  color: var(--primary);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-header h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.login-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.login-error-alert {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-family: var(--font-heading);
  font-weight: 750;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  margin-top: 10px;
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ==========================================================================
   4. Dashboard Main Workspace Layout
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  animation: fadeIn 0.4s ease-out;
}

/* Sidebar Navigation Drawer */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  box-shadow: 4px 0 15px rgba(11, 15, 38, 0.1);
}

.sidebar-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand-logo {
  width: 32px;
  height: 32px;
  color: var(--primary-light);
}

.sidebar-brand-name {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.sidebar-brand-subtitle {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary-light);
  font-weight: 700;
}

.sidebar-menu {
  flex-grow: 1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.7);
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}

.sidebar-link.active {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(30,64,175,0.3) 100%);
  color: white;
  border-left: 4px solid var(--primary-light);
  padding-left: 12px;
}

.sidebar-link-icon {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #FDA4AF;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* Header & Main Workspace Wrapper */
.admin-workspace {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 99;
}

.header-title h1 {
  font-size: 1.35rem;
  color: var(--text-dark);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-sm);
}

.header-user-info {
  display: flex;
  flex-direction: column;
}

.header-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.header-user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Main Content Area */
.admin-content {
  padding: 30px;
  flex-grow: 1;
}

/* ==========================================================================
   5. Views & Component Layouts
   ========================================================================== */

/* Page Section Header */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.view-header-title h2 {
  font-size: 1.6rem;
  color: var(--text-dark);
}

.view-header-title p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Global Button Styles */
.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Grid layout for stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-info h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-card-info p {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.1;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(30, 64, 175, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.stat-card-icon svg {
  width: 24px;
  height: 24px;
}

/* Dashboard Analytics Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2.1fr 1.9fr;
  gap: 24px;
}

.dashboard-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.dashboard-card-title h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
}

.dashboard-card-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Visual chart mock inside CSS */
.mock-chart-container {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 10px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.mock-chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 12%;
}

.mock-chart-bar {
  width: 100%;
  background: linear-gradient(0deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s ease;
  position: relative;
}

.mock-chart-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dark);
}

.mock-chart-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

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

.admin-table th {
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-main);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
  color: var(--text-dark);
  vertical-align: middle;
}

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

.admin-table tr:hover td {
  background: rgba(30,64,175,0.015);
}

/* Product list thumbnail cell */
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-cell-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: #E2E8F0;
}

.product-cell-info {
  display: flex;
  flex-direction: column;
}

.product-cell-title {
  font-weight: 700;
  color: var(--text-dark);
}

.product-cell-category {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-new { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.status-contacted { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-negotiating { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.status-closed { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-dispatched { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.status-transit { background: rgba(99, 102, 241, 0.1); color: #6366F1; }
.status-delivered { background: rgba(16, 185, 129, 0.1); color: var(--success); }

/* Table Action Buttons */
.btn-table-action {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-table-action:hover {
  color: var(--primary);
  background: rgba(30, 64, 175, 0.06);
}

.btn-table-action.delete:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

/* ==========================================================================
   6. Modals & Forms
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  width: 95%;
  max-width: 520px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-overlay.active .modal-window {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.15rem;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary);
}

#productForm, #orderForm, #leadForm {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-main);
  flex-shrink: 0;
}

.btn-secondary {
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-main);
}

/* ==========================================================================
   7. Responsive Adaptability & Layout Fixes (REFINED)
   ========================================================================== */

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-sidebar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile & Tablet Logic (Up to 1024px) */
@media (max-width: 1024px) {
  .admin-sidebar {
    left: -260px;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .admin-sidebar.active {
    left: 0;
  }
  
  .admin-workspace {
    margin-left: 0;
    width: 100%;
  }
  
  .btn-sidebar-toggle {
    display: flex;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .admin-header {
    padding: 0 20px;
  }

  .admin-content {
    padding: 20px;
  }
}

/* Medium Tablets & Phones (Up to 768px) */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .view-header-title h2 {
    font-size: 1.4rem;
  }
  
  .view-header .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .header-user-info {
    display: none;
  }
  
  .login-card {
    padding: 30px 20px;
  }
  
  .modal-window {
    width: 98%;
    margin: 10px;
  }
  
  .form-group-row {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
}

/* Small Phones (Up to 480px) */
@media (max-width: 480px) {
  .admin-header {
    padding: 0 12px;
  }
  
  .header-title h1 {
    font-size: 1.1rem;
  }
  
  .admin-content {
    padding: 15px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-card-info p {
    font-size: 1.5rem;
  }
  
  .dashboard-card {
    padding: 16px;
  }
  
  .mock-chart-container {
    height: 160px;
    padding: 15px 5px 0;
  }
  
  .mock-chart-bar-wrapper {
    width: 12%;
  }
  
  .mock-chart-label {
    font-size: 0.55rem;
  }
  
  .modal-header, .modal-body, .modal-footer {
    padding: 15px;
  }
}

/* Very Small Devices (Up to 360px) */
@media (max-width: 360px) {
  .header-title h1 {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }
  
  .sidebar-brand-title {
    font-size: 1rem;
  }
}

/* Table Responsive Container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: white;
}

.admin-table {
  width: 100%;
}

/* Allow table cells to wrap on smaller screens for improved responsiveness */
@media (max-width: 1024px) {
  .admin-table th, .admin-table td {
    white-space: normal;
    word-break: break-word;
  }
}

/* Responsive table -> card conversion for small screens */
@media (max-width: 768px) {
  .admin-table thead {
    display: none;
  }

  .admin-table, .admin-table tbody, .admin-table tr {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    background: white;
  }

  .admin-table td {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border: none;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: left;
    display: inline-block;
    padding-right: 6px;
  }

  .admin-table td > * {
    text-align: right;
    display: inline-block;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  /* Ensure action buttons align nicely */
  .btn-table-action { padding: 8px; }
}

/* Scrollable Modal Content FIX */
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Card Hover Fix for Touch */
@media (hover: none) {
  .stat-card:hover, .dashboard-card:hover, .sidebar-link:hover {
    transform: none !important;
  }
}

/* Login Screen Background Fix */
.login-screen {
  overflow-y: auto;
  padding: 40px 20px;
}

/* Custom Image Upload & Preview in Modal */
.custom-file-upload {
  position: relative;
  width: 100%;
}
.file-drag-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  background: var(--bg-main);
  cursor: pointer;
  transition: all 0.2s ease;
}
.file-drag-area:hover {
  border-color: var(--primary);
  background: white;
}
.upload-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}
.upload-text {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.upload-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}
.image-preview-container {
  position: relative;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  max-height: 150px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #E2E8F0;
}
.image-preview-container.hidden {
  display: none !important;
}
.image-preview-container img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}
.btn-remove-image {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-remove-image:hover {
  background: var(--danger);
}
