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

:root {
  /* Colors */
  --bg-dark: #070f1e;
  --bg-card: rgba(15, 32, 67, 0.65);
  --bg-card-hover: rgba(22, 45, 93, 0.85);
  --border-glass: rgba(255, 215, 0, 0.15);
  --border-glass-active: rgba(255, 215, 0, 0.4);
  
  --primary-navy: #0b192c;
  --primary-navy-light: #1e3e62;
  --accent-gold: #ffd700;
  --accent-gold-rgb: 255, 215, 0;
  --accent-gold-dark: #ccac00;
  --accent-gold-light: #ffeb7a;
  
  --text-white: #f8f9fa;
  --text-muted: #a0aec0;
  --text-muted-light: #cbd5e0;
  
  --status-pending: #f6ad55;
  --status-approved: #48bb78;
  --status-rejected: #f56565;
  --status-info: #4299e1;
  
  /* Font Family */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadow & Transitions */
  --shadow-gold: 0 8px 32px 0 rgba(255, 215, 0, 0.08);
  --shadow-gold-hover: 0 12px 40px 0 rgba(255, 215, 0, 0.18);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 10% 20%, rgba(30, 62, 98, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(255, 215, 0, 0.03) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(7, 15, 30, 0.8) 0px, var(--bg-dark) 100%);
  background-attachment: fixed;
  color: var(--text-white);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Utilities */
.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-active);
  box-shadow: var(--shadow-gold-hover);
  transform: translateY(-4px);
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--primary-navy) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  background: transparent;
  color: var(--accent-gold) !important;
  border: 1px solid var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline-gold:hover {
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--primary-navy-light);
  color: var(--text-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-navy:hover {
  background: rgba(30, 62, 98, 0.8);
  transform: translateY(-2px);
}

/* Custom Input Fields */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--accent-gold-light);
}

.form-control {
  width: 100%;
  background: rgba(15, 32, 67, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(15, 32, 67, 0.8);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

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

.custom-table th {
  background: rgba(11, 25, 44, 0.95);
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-weight: 600;
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-glass);
}

.custom-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 32, 67, 0.3);
  color: var(--text-muted-light);
}

.custom-table tr:hover td {
  background: rgba(15, 32, 67, 0.6);
  color: var(--text-white);
}

/* Badges for status */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.badge-pending {
  background: rgba(246, 173, 85, 0.15);
  color: var(--status-pending);
  border: 1px solid rgba(246, 173, 85, 0.3);
}

.badge-approved {
  background: rgba(72, 187, 120, 0.15);
  color: var(--status-approved);
  border: 1px solid rgba(72, 187, 120, 0.3);
}

.badge-rejected {
  background: rgba(245, 101, 101, 0.15);
  color: var(--status-rejected);
  border: 1px solid rgba(245, 101, 101, 0.3);
}

.badge-info {
  background: rgba(66, 153, 225, 0.15);
  color: var(--status-info);
  border: 1px solid rgba(66, 153, 225, 0.3);
}

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

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, var(--primary-navy) 0%, #050b15 100%);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: var(--transition-smooth);
}

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

.sidebar-brand img {
  width: 45px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.brand-text h2 {
  font-size: 1.25rem;
  color: var(--accent-gold);
  font-weight: 800;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-menu {
  list-style: none;
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--text-muted-light);
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.sidebar-menu li a i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
  color: var(--primary-navy);
  background: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.sidebar-menu li a:hover i,
.sidebar-menu li.active a i {
  color: var(--primary-navy);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

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

.avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-navy-light);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-gold);
}

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

.user-info-sm span {
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 700;
}

/* Main Content Layout */
.main-content {
  margin-left: 280px;
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.topbar {
  height: 80px;
  background: rgba(11, 25, 44, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.topbar-title h1 {
  font-size: 1.5rem;
  color: var(--text-white);
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.content-body {
  padding: 40px;
  flex-grow: 1;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.15);
}

/* Grid System for Dashboard */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 35px;
}

.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-details h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.2;
}

.stat-details span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted-light);
  font-weight: 500;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.8rem;
}

/* Auth Pages (Glassmorphic) */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 45px;
}

.auth-header {
  text-align: center;
  margin-bottom: 35px;
}

.auth-header img {
  width: 75px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.auth-header h2 {
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-weight: 800;
  margin-bottom: 5px;
}

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

/* Public Landing Page CSS */
.landing-navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.landing-navbar .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.landing-navbar .logo img {
  width: 40px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.landing-navbar .logo h1 {
  font-size: 1.25rem;
  color: var(--accent-gold);
  font-weight: 800;
  line-height: 1.1;
}

.landing-navbar .logo span {
  font-size: 0.65rem;
  display: block;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.landing-nav-links a {
  color: var(--text-muted-light);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.landing-nav-links a:hover {
  color: var(--accent-gold);
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 10% 80px 10%;
  position: relative;
}

.hero-content {
  max-width: 650px;
  z-index: 2;
}

.hero-badge {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--accent-gold);
  padding: 8px 18px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 25px;
  display: inline-block;
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
  background: linear-gradient(135deg, var(--text-white) 30%, var(--accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-muted-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-visual {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 62, 98, 0.4) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-logo-large {
  width: 250px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 15px 40px rgba(255, 215, 0, 0.2));
}

/* Info Section style */
.section-padding {
  padding: 100px 10%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 2.2rem;
  margin: 0 auto 25px auto;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background: var(--accent-gold);
  color: var(--primary-navy);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.45);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
  color: var(--text-white);
}

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

/* Document Viewer & Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 900px;
  background: var(--bg-dark);
  border: 1px solid var(--border-glass-active);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-gold-hover);
}

.modal-header {
  padding: 20px 30px;
  background: var(--primary-navy);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  color: var(--accent-gold);
  font-size: 1.25rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.modal-body {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Map placeholder / location selector styles */
.map-container {
  height: 350px;
  background: rgba(15, 32, 67, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  color: var(--text-muted);
}

/* Steps Progress Tracking Line */
.track-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 45px;
}

.track-progress::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.track-progress-fill {
  position: absolute;
  top: 25px;
  left: 5%;
  height: 4px;
  background: var(--accent-gold);
  z-index: 1;
  transition: var(--transition-smooth);
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 20%;
}

.step-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-navy-light);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.track-step.active .step-icon {
  background: var(--primary-navy);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.track-step.completed .step-icon {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--primary-navy);
}

.step-label {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
}

.track-step.active .step-label {
  color: var(--accent-gold);
}

.track-step.completed .step-label {
  color: var(--text-white);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 160px;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 50px;
  }
  
  .hero-content p {
    margin: 0 auto 40px auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    width: 320px;
    height: 320px;
  }
  
  .hero-logo-large {
    width: 180px;
  }
  
  .sidebar {
    width: 80px;
  }
  
  .sidebar-brand .brand-text,
  .sidebar-footer .user-info-sm {
    display: none;
  }
  
  .sidebar-menu li a span {
    display: none;
  }
  
  .sidebar-menu li a {
    padding: 14px;
    justify-content: center;
  }
  
  .main-content {
    margin-left: 80px;
  }
}

@media (max-width: 768px) {
  .landing-navbar {
    padding: 0 5%;
  }
  
  .landing-nav-links {
    display: none;
  }
  
  .topbar {
    padding: 0 20px;
  }
  
  .content-body {
    padding: 20px;
  }
  
  .track-progress {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .track-progress::before,
  .track-progress-fill {
    display: none;
  }
  
  .track-step {
    width: 45%;
  }
}
