:root {
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --secondary: #eab308;
  --bg-dark: #1a1a1a;        /* was #060e14 — now light black */
  --bg-card: #2a2a2a;        /* was #111a24 — now lighter dark */
  --text-main: #ffffff;
  --text-muted: #a0aec0;     /* slightly lighter muted */
  --accent: #bbcb2f;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Navbar */
.public-navbar {
  background: rgba(30, 30, 30, 0.88);   /* was rgba(12,20,33,0.85) */
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Hero Section */
.hero-section {
  margin-top: -1px;
  padding-top: 0px;
}

/* ── REFINED HERO TYPOGRAPHY (Desktop / Base) ── */
.hero-section h1 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hero-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 660px;
  margin: 0 auto 36px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.nav-item {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Cards */
.premium-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: var(--transition);
}

.premium-card:hover {
  border-color: var(--primary-light);
  background: #333333;          /* was #1c2a3f */
  transform: translateY(-10px);
}

/* Form Elements */
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  transition: all var(--transition);
  margin-bottom: 20px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
  color: #ffffff !important;
}

select option {
  background-color: #2a2a2a !important; 
  color: #ffffff !important;              
  padding: 12px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.08);
}

select:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: var(--bg-card) !important;
  color: #ffffff !important;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Search Input Fix */
.search-container {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.search-container input {
  margin-bottom: 0;
  padding-left: 44px;
}

.search-container i,
.search-container svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}

/* Loading States & Utilities */
.btn-loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}
.btn-loading::after {
  content: "\f110";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 8px;
  animation: fa-spin 1s infinite linear;
}
@keyframes fa-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sidebar Layout Base */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background-color: #1a1a1a;      
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-light);
  margin-bottom: 48px;
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sidebar-link i {
  font-size: 1.1rem;
  width: 24px;
  display: flex;
  justify-content: center;
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: rgba(13, 148, 136, 0.12);
  color: var(--primary-light);
}

.sidebar-link.logout-link {
  margin-top: auto;
  color: rgba(239, 68, 68, 0.8);
}

.sidebar-link.logout-link:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 60px 40px;
  background-color: #222222;      
}

.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  background-color: var(--primary);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Dashboard Specific Styles */
.dashboard-header {
  color: var(--primary-light);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 40px;
}

.form-card {
  max-width: 800px;
  background-color: #2e2e2e;      
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.form-label {
  color: #f1f5f9;
  font-size: 1rem;
  margin-bottom: 12px;
}

.form-input {
  background-color: rgba(34, 34, 34, 0.7);   
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.form-input:focus {
  border-color: var(--primary-light);
  background-color: rgba(34, 34, 34, 0.9);   
}

/* ==========================================================================
   ENHANCED RESPONSIVE DESIGN (BREAKPOINTS ENGINE)
   ========================================================================== */

/* Laptop / Large Tablets Layout Updates */
@media (max-width: 1024px) {
  .sidebar { 
    transform: translateX(-100%); 
  }
  .sidebar.active { 
    transform: translateX(0); 
  }
  .main-content { 
    margin-left: 0; 
    padding: 40px 20px; 
  }
  .mobile-nav-toggle { 
    display: flex !important; 
  }
  .dashboard-header { 
    margin-top: 40px;
    font-size: 1.8rem;
  }
}

/* Regular Tablets & Phablets */
@media (max-width: 768px) {
  .container { 
    padding: 0 20px !important; 
  }
  .public-navbar { 
    height: auto; 
    padding: 15px 0; 
  }
  .public-navbar .container { 
    flex-direction: column; 
    gap: 15px; 
  }
  .nav-links { 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 15px !important; 
  }
  .hero-section h1 { 
    font-size: 2.25rem !important; 
    letter-spacing: -0.6px;
    line-height: 1.22;
    margin-top: 0; 
  }
  .hero-section p { 
    font-size: 1rem !important; 
    line-height: 1.7;
    padding: 0 10px; 
  }
  .hero-section > div > i { 
    display: none; 
  }
  .feature-grid { 
    grid-template-columns: 1fr !important; 
    gap: 20px; 
  }
  .hero-content > div { 
    flex-direction: column; 
    align-items: stretch; 
  }
  .btn-primary, .btn-secondary { 
    width: 100%; 
    justify-content: center; 
  }
  
  /* Form structural safety layouts */
  .le-form-grid { 
    grid-template-columns: 1fr !important; 
    gap: 0 !important; 
  }
  .premium-card { 
    padding: 30px 20px; 
  }
}

/* Smartphones & Tiny Screens */
@media (max-width: 480px) {
  .hero-section h1 { 
    font-size: 1.85rem !important; 
    letter-spacing: -0.5px;
    line-height: 1.25;
  }
  .hero-section p {
    font-size: 0.95rem !important;
    line-height: 1.65;
  }
  .premium-card, .form-card { 
    padding: 24px 16px !important; 
    border-radius: 16px; 
  }
  .le-type-selector { 
    flex-direction: column; 
    gap: 8px !important; 
    background: transparent !important; 
    border: none !important; 
    padding: 0 !important; 
  }
  .le-type-btn { 
    width: 100%; 
    background: rgba(13, 27, 42, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
  }
  .le-form-title { 
    font-size: 1.8rem !important; 
  }
}