@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===== DARK THEME (Sophisticated Deep Teal) ===== */
:root, [data-theme="dark"] {
  --bg-color: #021a1d;
  --bg-gradient-1: hsla(184, 100%, 4%, 1);
  --bg-gradient-2: hsla(184, 72%, 15%, 0.4);
  --bg-gradient-3: hsla(184, 60%, 10%, 0.2);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --primary: #23CED9; /* Standardized to the iconic turquoise */
  --primary-rgb: 35, 206, 217;
  --primary-hover: #1db4bd;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --glass-bg: rgba(6, 28, 30, 0.75);
  --glass-border: rgba(35, 206, 217, 0.12);
  --glass-shadow: 0 12px 60px rgba(0, 0, 0, 0.9);
  --card-radius: 20px;
  --sidebar-bg: #031113;
  --input-bg: rgba(0, 5, 6, 0.6);
  --input-color: #fff;
  --hover-bg: rgba(35, 206, 217, 0.08);
  --table-header-bg: rgba(35, 206, 217, 0.03);
  --nav-active-bg: rgba(35, 206, 217, 0.15);
  --nav-active-color: #fff;
  --stat-value-color: #fff;
  --badge-danger-bg: rgba(239, 68, 68, 0.15);
  --badge-danger-border: rgba(239, 68, 68, 0.3);
  --gradient-text-from: #ffffff;
  --gradient-text-to: #23CED9;
  /* Dark theme specific button colors */
  --btn-ghost-bg: rgba(255, 255, 255, 0.05);
  --btn-ghost-color: #94a3b8;
  --btn-ghost-border: rgba(255, 255, 255, 0.1);
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.12);
  --modal-cancel-bg: rgba(255, 255, 255, 0.08);
  --modal-cancel-color: #cbd5e1;
  --progress-bg: rgba(0,0,0,0.4);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg-color: #e6fafd;
  --bg-gradient-1: hsla(184, 40%, 94%, 1);
  --bg-gradient-2: hsla(184, 72%, 85%, 0.4);
  --bg-gradient-3: hsla(184, 60%, 88%, 0.3);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --primary: #23CED9;
  --primary-rgb: 35, 206, 217;
  --primary-hover: #1db4bd;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --glass-bg: rgba(240, 253, 254, 0.9);
  --glass-border: rgba(35, 206, 217, 0.15);
  --glass-shadow: 0 4px 30px rgba(35, 206, 217, 0.08);
  --sidebar-bg: rgba(224, 247, 250, 0.85);
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-color: #0f172a;
  --hover-bg: rgba(35, 206, 217, 0.05);
  --table-header-bg: rgba(35, 206, 217, 0.04);
  --nav-active-bg: rgba(var(--primary-rgb), 0.1);
  --nav-active-color: #14787f;
  --stat-value-color: #0f172a;
  --badge-danger-bg: rgba(220, 38, 38, 0.1);
  --badge-danger-border: rgba(220, 38, 38, 0.3);
  --gradient-text-from: #0f172a;
  --gradient-text-to: #0f172a;
  /* Light theme specific button colors */
  --btn-ghost-bg: rgba(35, 206, 217, 0.08);
  --btn-ghost-color: #334155;
  --btn-ghost-border: rgba(35, 206, 217, 0.2);
  --btn-ghost-hover-bg: rgba(35, 206, 217, 0.15);
  --modal-cancel-bg: rgba(0, 0, 0, 0.06);
  --modal-cancel-color: #334155;
  --progress-bg: rgba(35, 206, 217, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, var(--bg-gradient-1) 0, transparent 50%), 
    radial-gradient(at 50% 0%, var(--bg-gradient-2) 0, transparent 50%), 
    radial-gradient(at 100% 0%, var(--bg-gradient-3) 0, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Glass panel utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: var(--glass-shadow);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.login-box h1 {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 28px;
  background: linear-gradient(to right, var(--gradient-text-from), var(--gradient-text-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-box p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 14px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  color: var(--input-color);
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

/* Force better styling for date inputs */
input[type="date"].form-control {
  min-height: 44px;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  background: var(--input-bg);
  color: var(--input-color);
}
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* ===== BUTTON SYSTEM ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.6);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-success { background: var(--success); color: white; }
.btn-success:hover { filter: brightness(1.15); }

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444; 
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger i {
  color: #ef4444;
  transition: color 0.3s ease;
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover i {
  color: #fff;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost:hover {
  background: var(--btn-ghost-hover-bg);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-warning {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-warning:hover {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-info {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-info:hover {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* ===== LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--glass-border);
  background: var(--sidebar-bg);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001; /* Ensure sidebar is above everything in mobile */
}

.sidebar-header {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
}

.sidebar-header h2 {
  background: linear-gradient(to right, var(--gradient-text-from), var(--gradient-text-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-color);
}

.nav-link i {
  margin-right: 12px;
  font-size: 18px;
}

.main-content {
  flex: 1;
  padding: 15px 25px;
  overflow-y: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

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

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
}

/* Dashboard Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.stat-title {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--stat-value-color);
}

/* Table styles */
.table-container {
  overflow-x: auto;
  border-radius: var(--card-radius);
  -webkit-overflow-scrolling: touch;
}

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

th, td {
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
}

th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  background: var(--table-header-bg);
}

tbody tr {
  transition: background 0.2s;
}

tbody tr:hover {
  background: var(--hover-bg);
}

/* ===== BADGES ===== */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); border: 1px solid rgba(245,158,11,0.5); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--success); border: 1px solid rgba(16,185,129,0.5); }
.badge-danger { background: var(--badge-danger-bg); color: var(--danger); border: 1px solid var(--badge-danger-border); }

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Hide icon based on theme */
[data-theme="dark"] .theme-icon-dark,
[data-theme="light"] .theme-icon-light {
  display: none;
}

/* ===== MOBILE NAV (Bottom navigation for small screens) ===== */
.mobile-bottom-nav {
  display: none;
}

/* Utilities */
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* Grid Layouts for Standardized UI */
.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.grid-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .filter-date-range {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-date-range span {
    display: none; 
  }
}

.filter-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0px;
  display: block;
}

.grid-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.grid-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Button Group Utility */
.btn-group {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.btn-group .btn {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--glass-border);
}

.btn-group .btn:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .grid-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .grid-header > div:last-child {
    width: 100%;
  }
  
  .grid-header .grid-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .grid-header .grid-actions .btn {
    flex: 1;
  }

  .hide-mobile { display: none !important; }
}

@media (max-width: 640px) {
  .grid-filters {
    grid-template-columns: 1fr;
  }
  
  .grid-filters > .form-group:first-child {
    grid-column: span 1;
  }
}

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

@media print {
  body { background: #fff; color: #000; }
  .sidebar, .topbar, .btn, .theme-toggle, .mobile-bottom-nav { display: none !important; }
  .glass-panel { border: none; box-shadow: none; background: transparent; }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .app-layout { 
    flex-direction: column; 
    padding-bottom: 70px; /* Space for bottom nav */
  }
  
  /* Hide desktop sidebar on mobile */
  .sidebar { 
    display: none; 
  }
  
  /* Show mobile bottom nav */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 6px 4px;
    gap: 2px;
    justify-content: space-around;
    align-items: stretch;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  }
  
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    min-width: 0;
  }
  
  .mobile-bottom-nav a i {
    font-size: 18px;
    margin-bottom: 3px;
  }
  
  .mobile-bottom-nav a.active {
    color: var(--primary);
    background: var(--nav-active-bg);
  }
  
  .mobile-bottom-nav a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  
  /* Main content mobile adjustments */
  .main-content {
    padding: 16px;
    width: 100%;
  }
  
  /* Topbar mobile */
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .topbar .glass-panel {
    padding: 12px 16px !important;
  }
  
  /* Stats grid mobile: 2 columns */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  /* Tables on mobile: compact */
  th, td {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  /* Glass panels narrower padding */
  .glass-panel {
    border-radius: 12px;
  }
  
  /* Form controls larger for touch */
  .form-control {
    font-size: 16px; /* prevents iOS zoom */
    padding: 14px 16px;
  }
  
  /* Buttons larger for touch */
  .btn-sm {
    padding: 10px 14px;
    font-size: 14px;
    min-height: 42px;
  }
  
  /* Grid fixes */
  .flex { flex-wrap: wrap; }
  
  /* Login box mobile */
  .login-box {
    padding: 24px;
  }
  
  /* User profile in topbar */
  .user-profile {
    gap: 8px;
  }
  
  .user-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .hide-mobile {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  /* BURGER MENU STYLES */
  .mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .sidebar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
  }

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

  .burger-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
  }

  .burger-btn:active {
    transform: scale(0.9);
  }

  .main-content {
    padding: 15px;
  }
}

.mobile-header {
  display: none;
}

/* Extra small screens */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .stat-card {
    padding: 12px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-title {
    font-size: 12px;
  }
  
  .main-content {
    padding: 12px;
  }
  
  th, td {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .btn-sm {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 38px;
  }
}
/* Image Lightbox Modal */
.image-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.image-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomInLightBox 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes zoomInLightBox {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.image-modal-close {
    position: absolute;
    top: 25px; right: 25px;
    color: white;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    background: rgba(255,255,255,0.1);
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.image-modal-close:hover { opacity: 1; transform: scale(1.1); background: rgba(255,255,255,0.2); }

/* ===== BRAND LOGO UTILITIES ===== */
.brand-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.brand-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Sidebar Specific */
.sidebar-logo-box {
    margin-top: 10px;
    height: 64px; /* Increased from 44px */
    width: 100%;
    max-width: 180px;
}

/* Navbar Specific */
.navbar-logo-box {
    height: 50px; /* Increased from 42px */
    width: auto;
    max-width: 220px;
    margin-right: 12px;
}

/* Preview Box (Settings) */
.logo-preview-area {
    min-width: 180px;
    min-height: 140px;
    width: 100%;
    max-height: 180px;
    background: var(--hover-bg);
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.logo-preview-area:hover {
    border-color: var(--primary);
    background: var(--nav-active-bg);
}

/* ===== INVOICE HUB UTILITIES ===== */
.glass-stat-mini {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 16px;
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}
.glass-stat-mini:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.glass-stat-mini .stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.glass-stat-mini .stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--stat-value-color);
}

.floating-broadcast-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    color: white;
}
.floating-broadcast-bar.active {
    transform: translateX(-50%) translateY(0);
}

.table-modern tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--glass-border);
}
.table-modern tbody tr:hover {
    background: var(--hover-bg);
}
.badge-glow-success {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.badge-glow-danger {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Mobile Responsive Cards for Tables */
.mobile-invoice-card {
    display: none;
}

@media (max-width: 768px) {
    .invoices-desktop-table, .desktop-only { display: none !important; }
    .invoices-mobile-container, .mobile-invoice-card { display: block !important; }
    .mobile-invoice-card {
        display: block;
        margin-bottom: 12px;
        padding: 16px;
        border-radius: 15px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
    }
}
