/* =========================================
   PROFESSIONAL INTER FONT
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   GLOBAL HOLOGRAPHIC GLASS THEME
   ========================================= */

:root {
  /* Glass Variables */
  --bg-body: #0f0c29; 
  --bg-card: rgba(255, 255, 255, 0.1);
  --bg-sidebar: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  
  /* Vibrant Accents */
  --primary-color: #00d2ff; /* Cyan/Blue Neon */
  --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --secondary-color: rgba(255, 255, 255, 0.2);
  --success-color: #00ff9d; /* Neon Green */
  --info-color: #00d2ff;
  --warning-color: #ffcf00;
  --danger-color: #ff0055; /* Neon Red/Pink */
  
  --border-color: rgba(255, 255, 255, 0.15);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --backdrop-blur: blur(20px);
  --transition: all 0.3s ease;
}

/* Dark theme overrides (if needed, but glass theme handles dark naturally) */
[data-theme="dark"] {
  /* Essentially same for this specific stylized theme */
  --bg-card: rgba(0, 0, 0, 0.25);
  --bg-sidebar: rgba(0, 0, 0, 0.2);
  --border-color: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Aurora Background Fixed */
  background-color: var(--bg-body);
  background-image: 
      radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
      radial-gradient(at 50% 100%, hsla(225,39%,30%,1) 0, transparent 50%), 
      radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
  /* Vivid Overlay */
  background: conic-gradient(from 180deg at 50% 50%, #2E1065 0deg, #be185d 72deg, #ca8a04 144deg, #059669 216deg, #2563eb 288deg, #2E1065 360deg);
  background-attachment: fixed; /* Ensures gradient stays while scrolling */
  background-size: cover;
  color: var(--text-primary);
  margin: 0;
  transition: var(--transition);
  overflow-x: hidden;
  position: relative;
}

/* Global Floating Orbs (Subtler than login) */
body::before, body::after {
    content: '';
    position: fixed; /* Fixed so they don't scroll away */
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: floatOrbGlobal 20s ease-in-out infinite alternate;
}

body::before {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(123, 31, 162, 0.4), transparent 70%);
    top: -20%;
    left: -20%;
}

body::after {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(13, 71, 161, 0.4), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes floatOrbGlobal {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}


/* Wrapper & Layout */
.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

/* Glass Sidebar */
#sidebar {
  min-width: 260px;
  max-width: 260px;
  background: var(--bg-sidebar);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-right: var(--glass-border);
  color: var(--text-primary);
  transition: var(--transition);
  min-height: 100vh;
  z-index: 999;
}

#sidebar.active {
  margin-left: -260px;
}

.sidebar-header {
  padding: 30px 20px;
  background: transparent; /* Remove solid header color */
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border-bottom: var(--glass-border);
}

.sidebar-header i {
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.nav-menu {
  padding: 20px 10px;
  list-style: none;
}

.nav-item {
  border-bottom: none; /* Cleaner look */
  margin-bottom: 5px;
}

.nav-link {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  border-radius: 12px; /* Smooth corners */
  font-weight: 500;
}

.nav-link i {
  margin-right: 15px;
  width: 25px;
  text-align: center;
  font-size: 1.1rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(5px);
}

.nav-item.active .nav-link {
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.25) 0%, rgba(0, 210, 255, 0.05) 100%);
  color: #fff;
  border-left: none; /* Remove left border */
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
  position: relative;
}

.nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Main Content */
.main-panel {
  width: 100%;
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

/* Glass Header/Navbar */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  padding: 15px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.header-left {
  display: flex;
  align-items: center;
}

/* Navbar improvements */
.navbar-header {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  padding: 12px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
  position: relative;
  z-index: 1000;
}

.navbar-header .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  flex-wrap: nowrap; /* Prevent wrapping */
}

.header-title {
  flex: 0 1 auto; /* Don't grow, can shrink */
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.header-title h1 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.3rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Center User Info */
.navbar-user-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.center-user-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.center-user-balance {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success-color);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

/* Language Toggle Button */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.lang-toggle i {
  font-size: 1rem;
}

/* Dropdown Menu - Glass Style */
.dropdown-menu {
  background: rgba(30, 30, 45, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  padding: 8px !important;
  margin-top: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  min-width: 200px !important;
  z-index: 1050 !important;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  transform: translateX(4px);
}

.dropdown-item:active {
  background: rgba(255, 255, 255, 0.15) !important;
}

.nav-link.dropdown-toggle::after {
    display: none !important;
}

.glass-dropdown {
    animation: dropdownFadeIn 0.3s ease-out forwards;
    transform-origin: top right;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-avatar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.user-avatar-wrapper:hover {
    transform: scale(1.05);
}

.user-avatar-wrapper::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border: 2px solid #1a1a2e;
    border-radius: 50%;
    box-shadow: 0 0 5px var(--success-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap; /* Prevent wrapping */
  flex-shrink: 0; /* Don't shrink */
}

.header-actions .nav-item {
  flex-shrink: 0;
}

.nav-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 15px;
    align-self: center;
}

.theme-toggle,
.lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary-color);
  transform: rotate(15deg);
}

.user-info {
  text-align: right;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.user-name {
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
  white-space: nowrap;
}

.saldo {
  font-size: 0.8rem;
  color: var(--success-color);
  font-weight: 600;
  white-space: nowrap;
}

.user-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
  flex-shrink: 0;
}

/* Glass Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  border: var(--glass-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.card-header {
  padding: 20px 25px;
  border-bottom: var(--glass-border);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary); /* White */
  background: rgba(255, 255, 255, 0.05);
  letter-spacing: 0.5px;
}

.card-body {
  padding: 25px;
}

/* Stats Cards */
.stats-card {
  position: relative;
  overflow: hidden;
}

.stats-card .card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Glass Icons with Glow */
.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.icon-wrapper:hover {
  transform: rotate(15deg) scale(1.1);
}

.icon-primary {
  background: rgba(0, 210, 255, 0.2);
  color: #00d2ff;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}
.icon-success {
  background: rgba(0, 255, 157, 0.2);
  color: #00ff9d;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}
.icon-danger {
  background: rgba(255, 0, 85, 0.2);
  color: #ff0055;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
}
.icon-warning {
  background: rgba(255, 207, 0, 0.2);
  color: #ffcf00;
  box-shadow: 0 0 20px rgba(255, 207, 0, 0.3);
}
.icon-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.stats-info {
  text-align: right;
  z-index: 2;
}

.stats-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 5px;
}

.stats-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Glass Tables */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-collapse: separate;
  border-spacing: 0 5px; /* Spacing between rows for floating effect */
}

.table th,
.table td {
  padding: 15px;
  vertical-align: middle;
  border-top: none; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.table tbody tr {
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.01);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Glass Details - Forms & Alerts */
.popup-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  min-width: 250px;
}

/* Glass Forms */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.1); /* Glass BG */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; /* White text */
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    color: #fff;
}

/* Dropdown Options Styling */
.form-select option {
    background-color: #1a1a2e; /* Dark background for options */
    color: #ffffff;
    padding: 10px;
}

.form-select option:hover,
.form-select option:checked,
.form-select option:focus {
    background-color: #2d2d44; /* Slightly lighter on hover/selection */
    color: #00d2ff; /* Primary color for selected */
}

/* SweetAlert2 Glassmorphism Fixes */
.swal2-popup {
    background: rgba(20, 20, 35, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    color: #fff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

.swal2-title {
    color: #fff !important;
    font-weight: 700 !important;
}

.swal2-content, .swal2-html-container {
    color: rgba(255, 255, 255, 0.8) !important;
}

.swal2-select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-size: 1rem !important;
    width: 90% !important;
    margin: 10px auto !important;
    display: block !important;
}

.swal2-select option {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    padding: 10px !important;
}

/* Ensure selected option stands out */
.swal2-select option:checked {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.swal2-confirm {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3) !important;
    border-radius: 10px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
}

.swal2-cancel {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
}

.form-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}
.btn-primary:hover {
  background: #2e59d9;
}

.btn-success {
  background: var(--success-color);
  color: #fff;
}
.btn-success:hover {
  background: #17a673;
}

.btn-danger {
  background: var(--danger-color);
  color: #fff;
}
.btn-danger:hover {
  background: #e74a3b;
}

.btn-warning {
  background: var(--warning-color);
  color: #fff;
}
.btn-info {
  background: var(--info-color);
  color: #fff;
}
.btn-secondary {
  background: var(--secondary-color);
  color: #fff;
}

.badge {
  padding: 0.35em 0.65em;
  border-radius: 0.35rem;
  font-size: 0.75em;
  font-weight: 700;
  color: #fff;
  display: inline-block;
}
.badge-success {
  background: var(--success-color);
}
.badge-secondary {
  background: var(--secondary-color);
}
.badge-warning {
  background: var(--warning-color);
  color: #fff;
}

/* Glass Footer */
.main-footer {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-top: var(--glass-border);
  padding: 30px 20px;
  margin-top: 40px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-text strong {
  color: var(--primary-color);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  #sidebar {
    margin-left: -250px;
  }
  #sidebar.active {
    margin-left: 0;
  }
  /* Mobile Navbar Optimization */
  .navbar-header {
    padding: 8px 10px;
    margin-bottom: 15px;
  }
  
  .navbar-header .container-fluid {
    gap: 10px;
  }
  
  .mobile-toggle {
    display: flex;
    padding: 8px 10px;
    font-size: 1.2rem;
  }
  
  /* Hide title on very small screens */
  .header-title {
    display: none;
  }
  
  /* Header Actions - Compact Mobile Layout */
  .header-actions {
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  /* Hide language toggle on mobile */
  .lang-toggle {
    display: none !important;
  }
  
  /* Hide separator */
  .header-actions .nav-item:has(div) {
    display: none;
  }
  
  /* Theme toggle - compact */
  .theme-toggle {
    padding: 6px 8px;
    font-size: 0.95rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* User info - vertical center, compact */
  .user-info {
    display: flex !important;
    margin-right: 6px;
    align-items: center;
    justify-content: center;
  }
  
  /* Hide user name, show only saldo */
  .user-info .user-name {
    display: none;
  }
  
  .saldo {
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
  }
  
  /* Avatar - smaller and aligned */
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  
  .user-avatar-icon {
    font-size: 1.5rem !important;
  }
  
  /* Center user info - compact mobile */
  .navbar-user-center {
    flex: 1;
    gap: 1px;
  }
  
  .center-user-name {
    font-size: 0.85rem;
  }
  
  .center-user-balance {
    font-size: 0.75rem;
  }
  
  /* Language toggle - smaller on mobile */
  .lang-toggle {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .lang-toggle i {
    font-size: 0.85rem;
  }
  
  .dropdown-menu {
    min-width: 160px !important;
  }
  
  /* Mobile Layout Improvements */
  body::before, body::after {
    opacity: 0.2 !important;
    filter: blur(60px);
  }
  
  /* Show mobile bottom nav */
  .mobile-bottom-nav {
    display: flex;
  }
  
  .main-panel {
    padding: 15px 10px 90px 10px !important;
  }
  
  .main-footer {
    margin-bottom: 70px;
  }
  
  .main-header {
    padding: 12px 15px !important;
    margin-bottom: 20px;
  }
  
  .card:hover {
    transform: none;
  }
  
  .card {
    margin-bottom: 20px;
    border-radius: 16px;
  }
  
  .card-header {
    padding: 15px 18px;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 18px;
  }
  
  /* Stats cards optimization */
  .stats-card .card-body {
    padding: 20px;
  }
  
  .stats-value {
    font-size: 2rem;
  }
  
  .stats-title {
    font-size: 0.75rem;
  }
  
  .icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  /* Grid spacing */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .row > * {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Responsive Table (Card View) */
  .table-responsive thead {
    display: none;
  }
  .table-responsive tbody tr {
    display: block;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .table-responsive tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
    white-space: normal;
  }
  .table-responsive tbody td:last-child {
    border-bottom: none;
  }
  .table-responsive tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 1rem;
    text-align: left;
    flex: 1;
  }
  .table-responsive .action-buttons {
    justify-content: flex-end;
  }
  
  /* Footer mobile */
  .main-footer {
    padding: 25px 15px;
    margin-top: 30px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

/* =========================================
   PROFESSIONAL INTER FONT IMPORT
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   ROOT VARIABLES - LIGHT THEME (DEFAULT)
   ========================================= */
:root {
    /* Professional Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 14px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* =========================================
   MODERN PREMIUM LOGIN THEME
   ========================================= */

body.login-page {
    /* Dark Premium Background with Subtle Gradient */
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: var(--font-family); /* Updated to use Inter */
}

/* Animated Gradient Orbs */
body.login-page::before,
body.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.15;
    animation: floatOrb 15s ease-in-out infinite alternate;
}

body.login-page::before {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    left: -200px;
}

body.login-page::after {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(50px, -50px) scale(1.1) rotate(180deg); }
    100% { transform: translate(-30px, 30px) scale(0.95) rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Premium Glass Card */
.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3.5rem 2.8rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

/* Logo Styling */
.login-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.login-logo i {
    color: #fff;
    font-size: 2.8rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* Form Labels */
.login-page .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    display: block;
    text-align: left;
    text-transform: uppercase;
}

/* Input Groups - Dark Glass Style */
.login-page .input-group {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    position: relative;
}

.login-page .input-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.login-page .input-group:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.login-page .input-group:focus-within::after {
    transform: scaleX(1);
}

.login-page .input-group-text {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding-left: 1.4rem;
    padding-right: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.login-page .form-control {
    background: transparent !important;
    border: none;
    color: #fff !important;
    padding: 1rem 1.4rem 1rem 0.5rem;
    font-size: 0.95rem;
    height: auto;
    width: 100%;
    font-weight: 500;
}

.login-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.login-page .form-control:focus {
    background: transparent !important;
    box-shadow: none;
    color: #fff !important;
    outline: none;
}

/* Chrome Autofill Fix */
.login-page input:-webkit-autofill,
.login-page input:-webkit-autofill:hover, 
.login-page input:-webkit-autofill:focus, 
.login-page input:-webkit-autofill:active {
    -webkit-backface-visibility: hidden;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.08) !important;
    caret-color: white;
}

/* Premium Gradient Button */
.login-page .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.login-page .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.login-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.login-page .btn-primary:hover::before {
    left: 100%;
}

.login-page .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.login-page .btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.login-page .footer-links a:hover i {
    transform: translateY(-3px);
}

/* =========================================
   MOBILE BOTTOM NAVIGATION
   ========================================= */

.mobile-bottom-nav {
    display: flex !important; /* DEBUG: Force show to test */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* Glass morphism background matching app theme */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 210, 255, 0.1);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.8); /* Brighter for visibility */
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.mobile-bottom-nav .nav-item span {
    font-size: 10px;
    font-weight: 600; /* Bolder for glass background */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Shadow for readability */
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary-color);
}

.mobile-bottom-nav .nav-item.active i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.mobile-bottom-nav .add-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .add-button i {
    font-size: 22px;
    margin: 0;
    color: #fff;
}

@media (hover: hover) {
    .mobile-bottom-nav .nav-item:hover {
        color: var(--primary-color);
    }
    
    .mobile-bottom-nav .nav-item:has(.add-button):active .add-button {
        transform: scale(1.1) rotate(90deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body.login-page::before,
    body.login-page::after {
        opacity: 0.08;
    }
    
    .login-card {
        padding: 2.5rem 2rem;
        max-width: 90%;
        border-radius: 24px;
    }
    
    .login-logo {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .login-logo i {
        font-size: 2.2rem;
    }
    
    .login-page .btn-primary {
        padding: 0.9rem 2rem;
    }
}

/* =========================================
   CUSTOM SWEETALERT2 GLASS THEME
   ========================================= */

/* Login Page Footer */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.login-footer-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 400;
}

.login-footer-content strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* =========================================
   CUSTOM SWEETALERT2 GLASS THEME
   ========================================= */

/* SweetAlert Container */
.swal2-popup {
    background: rgba(30, 30, 45, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    padding: 2rem !important;
    color: #fff !important;
}

/* Title */
.swal2-title {
    color: #fff !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

/* Content Text */
.swal2-html-container {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* Icons */
.swal2-icon {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.swal2-icon.swal2-success {
    border-color: #00ff9d !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #00ff9d !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(0, 255, 157, 0.3) !important;
}

.swal2-icon.swal2-error {
    border-color: #ff0055 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ff0055 !important;
}

.swal2-icon.swal2-warning {
    border-color: #ffcf00 !important;
    color: #ffcf00 !important;
}

.swal2-icon.swal2-info {
    border-color: #00d2ff !important;
    color: #00d2ff !important;
}

/* Buttons Container */
.swal2-actions {
    gap: 12px !important;
    margin-top: 1.5rem !important;
}

/* Primary/Confirm Button */
.swal2-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4) !important;
}

.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3) !important;
}

/* Cancel/Deny Button */
.swal2-cancel,
.swal2-deny {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel:hover,
.swal2-deny:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Input Fields in SweetAlert */
.swal2-input,
.swal2-textarea,
.swal2-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.95rem !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
    outline: none !important;
}

/* Close Button */
.swal2-close {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 2rem !important;
    transition: all 0.3s ease !important;
}

.swal2-close:hover {
    color: #fff !important;
    transform: rotate(90deg) !important;
}

/* Progress Bar (for timer) */
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #667eea, #764ba2) !important;
}

/* Toast Variant */
.swal2-toast {
    background: rgba(30, 30, 45, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.swal2-toast .swal2-title {
    color: #fff !important;
    font-size: 1rem !important;
}

.swal2-toast .swal2-close {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Loading Spinner */
.swal2-loader {
    border-color: rgba(102, 126, 234, 0.3) !important;
    border-left-color: #667eea !important;
}

/* Footer */
.swal2-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
}

/* Validation Message */
.swal2-validation-message {
    background: rgba(255, 0, 85, 0.15) !important;
    border: 1px solid rgba(255, 0, 85, 0.3) !important;
    border-radius: 8px !important;
    color: #ff0055 !important;
}

body.login-page {
    /* Complex Mesh Gradient Background (Aurora Effect) */
    background-color: #0f0c29;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 100%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    /* Adding a vibrant gradient overlay */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    /* Actually let's replicate the reference: Purple/Pink/Blue */
    background: conic-gradient(from 180deg at 50% 50%, #FF61D2 0deg, #FE9090 72deg, #FFD074 144deg, #FDFF8C 216deg, #5EE7DF 288deg, #4490E2 360deg);
    /* Soften it */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Floating Orb Decorations via Pseudo-elements */
body.login-page::before,
body.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Heavy blur for soft glow */
    z-index: 1;
    opacity: 0.6;
    animation: floatOrb 10s ease-in-out infinite alternate;
}

body.login-page::before {
    width: 500px;
    height: 500px;
    background: linear-gradient(#aa4b6b, #6b6b83, #3b8d99); /* Deep metallic/purple tones */
    top: -100px;
    left: -100px;
}

body.login-page::after {
    width: 400px;
    height: 400px;
    background: linear-gradient(#c31432, #240b36); /* Red/Purple */
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ultra Glassmorphism Card */
.login-card {
    /* Highly transparent white glass */
    background: rgba(255, 255, 255, 0.15); /* Very see-through */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px; /* More rounded */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border */
    padding: 3.5rem 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Dark Mode Tint */
[data-theme="dark"] .login-card {
    background: rgba(0, 0, 0, 0.25); /* Darker glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo Styling */
.login-logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff; /* White text looks best on colorful bg */
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-logo i {
    color: #fff;
    font-size: 2.5rem;
    background: none; /* Icon is white/solid */
}

/* Form Elements - "Glass Pill" Style */
.login-page .form-label {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    text-align: left;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.login-page .input-group {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent fill container */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px; /* Pill shape */
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
}

.login-page .input-group:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); /* Stronger Glow */
}

.login-page .input-group-text {
    background: transparent;
    border: none;
    color: #fff;
    padding-left: 1.5rem;
    padding-right: 0.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.login-page .form-control {
    background: transparent !important; /* Force transparent */
    border: none;
    color: #fff !important;
    padding: 0.8rem 1.5rem 0.8rem 0.5rem;
    font-size: 1rem;
    height: auto;
    width: 100%;
}

.login-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-page .form-control:focus {
    background: transparent !important;
    box-shadow: none;
    color: #fff;
}

/* Fix Chrome Autofill - Make it look transparent */
.login-page input:-webkit-autofill,
.login-page input:-webkit-autofill:hover, 
.login-page input:-webkit-autofill:focus, 
.login-page input:-webkit-autofill:active {
    -webkit-backface-visibility: hidden;
    -webkit-background-clip: content-box;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.0) !important; /* Transparent shadow */
    caret-color: white;
}


/* Button Styling (Gradient Pill) */
.login-page .btn-primary {
    background: linear-gradient(45deg, #FF512F 0%, #DD2476 100%); /* Vivid Pink/Orange */
    border: none;
    padding: 14px;
    border-radius: 10px; /* Pill shape */
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(221, 36, 118, 0.4); /* Colored shadow */
    color: #fff;
}

.login-page .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(221, 36, 118, 0.6);
    background: linear-gradient(45deg, #FF512F 0%, #DD2476 100%); /* Maintain gradient */
}

.login-page .btn-primary:active {
    transform: scale(0.98);
}

/* Theme Toggle (Hidden or blended) */
/* Theme Toggle (Hidden or blended) */
.theme-toggle-fixed {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.theme-toggle-fixed:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: rotate(15deg);
}

/* Alert Styling - Glassy */
.login-page .alert {
    background: rgba(231, 74, 59, 0.2);
    border: 1px solid rgba(231, 74, 59, 0.4);
    color: #fff;
    backdrop-filter: blur(5px);
    border-radius: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .login-card {
        padding: 2.5rem 1.5rem;
        width: 85%;
        max-width: 90%;
        margin: 0 auto;
    }
    .login-logo {
        font-size: 1.8rem;
    }
    body.login-page::before,
    body.login-page::after {
        opacity: 0.4; /* Fade background blobs on mobile to reduce distraction */
    }
}
