/* ==========================================================================
   1. GLOBAL RESETS & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f7f6;
  color: #2c3e50;
  line-height: 1.6;
}

/* ==========================================================================
   2. HEADER & NAVIGATION BAR
   ========================================================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 15px 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  max-height: 45px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #2c3e50;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #34495e;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #27ae60;
}

/* ==========================================================================
   3. CENTRALIZED HERO BANNER
   ========================================================================== */
.hero-banner {
  display: block;
  margin: 20px auto 0 auto;
  max-width: 1100px;
  width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   CENTERED NAVY BLUE CTA BUTTON SYSTEM
   ========================================================================== */

/* Centered Flex Container for CTAs */
.cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin: 25px auto 0 auto;
}

/* Base CTA Button - Navy Blue Theme */
.cta,
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(15, 43, 72, 0.15);
}

/* Primary CTA Button (Solid Navy) */
.cta.primary,
.btn-primary-navy {
  background-color: #0f2b48;
  color: #ffffff !important;
  border: 2px solid #0f2b48;
}

@media (hover: hover) {
  .cta.primary:hover,
  .btn-primary-navy:hover {
    background-color: #1a365d;
    border-color: #1a365d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 43, 72, 0.25);
  }
}

/* Secondary CTA / Login Button (Navy Outline) */
.cta.login,
.cta.secondary,
.btn-login {
  background-color: transparent;
  color: #0f2b48 !important;
  border: 2px solid #0f2b48;
}

@media (hover: hover) {
  .cta.login:hover,
  .cta.secondary:hover,
  .btn-login:hover {
    background-color: #0f2b48;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 43, 72, 0.25);
  }
}

/* Active / Tap State */
.cta:active,
.btn-login:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 4px rgba(15, 43, 72, 0.1);
}

/* Modal Form Submit Button (Navy Blue) */
button[type="submit"].btn-submit-login,
.modal form button[type="submit"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background-color: #0f2b48;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(15, 43, 72, 0.2);
}

@media (hover: hover) {
  button[type="submit"].btn-submit-login:hover,
  .modal form button[type="submit"]:hover {
    background-color: #1a365d;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 43, 72, 0.3);
  }
}

/* Mobile Alignment Override */
@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cta,
  .btn-login {
    width: 100%;
    max-width: 320px;
  }
}
/* ==========================================================================
   MOBILE & TABLET ADJUSTMENTS
   ========================================================================== */
@media (max-width: 768px) {
  .cta-container {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .cta.login, 
  .btn-login {
    width: 100%; /* Expands to full container width on small screens */
    padding: 12px;
  }
}
/* ==========================================================================
   5. IMAGE SLIDER (LEFT-TO-RIGHT CONTINUOUS LOOP)
   ========================================================================== */
.slider {
  width: 90%;
  max-width: 1100px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.slides {
  display: flex;
  width: 500%; /* 5 slides side-by-side */
  animation: slideLeftToRight 20s infinite ease-in-out;
}

.slide {
  width: 20%;
  text-align: center;
  flex-shrink: 0;
  padding: 10px;
}

.slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
}

.slide h3 {
  margin-top: 12px;
  color: #2c3e50;
  font-size: 17px;
  font-weight: 600;
}

@keyframes slideLeftToRight {
  0%, 15%   { transform: translateX(0%); }
  20%, 35%  { transform: translateX(-20%); }
  40%, 55%  { transform: translateX(-40%); }
  60%, 75%  { transform: translateX(-60%); }
  80%, 95%  { transform: translateX(-80%); }
  100%      { transform: translateX(0%); }
}

/* ==========================================================================
   6. SERVICES GRID & CARDS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1100px;
  width: 90%;
  margin: 40px auto;
}

.card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 38px;
  color: #27ae60;
  margin-bottom: 15px;
}

.card h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  text-decoration: none;
  color: #27ae60;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #1e8449;
  text-decoration: underline;
}

/* ==========================================================================
   7. MODAL POPUPS (LOGIN & SIGNUP)
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px 0;
}

.modal-content {
  background-color: #ffffff;
  margin: 40px auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}
/* Modal background overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999; /* Higher than any button or header */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Slightly darkens the page behind */
}

/* Modal Content Box */
.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  z-index: 10000;
}

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

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: #333;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 22px;
}

/* Form Controls Inside Modals */
.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #34495e;
}

.form-group input, 
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus {
  border-color: #27ae60;
}

button[type="submit"], 
.btn-primary {
  width: 100%;
  background-color: #27ae60;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

button[type="submit"]:hover, 
.btn-primary:hover {
  background-color: #219150;
}

#loginFeedback, 
#formFeedback {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none; /* Can be toggled with JS via .menu-toggle */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .slide img {
    height: 240px;
  }
}
/* ==========================================================================
   9. DASHBOARD SPECIFIC STYLES
   ========================================================================== */

/* Dashboard Container Layout */
.dashboard-container {
  max-width: 1100px;
  width: 90%;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* User Welcome Banner Card */
.welcome-card {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 5px solid #27ae60;
  flex-wrap: wrap;
  gap: 15px;
}

.welcome-card .user-info h2 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 5px;
}

.welcome-card .user-info p {
  color: #7f8c8d;
  font-size: 14px;
}

.welcome-card .user-info i {
  color: #27ae60;
  margin-right: 4px;
  margin-left: 8px;
}

.welcome-card .user-info i:first-child {
  margin-left: 0;
}

.user-badge span {
  background-color: #e8f8f0;
  color: #27ae60;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dashboard Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.metric-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.metric-card .icon {
  font-size: 28px;
  color: #2c3e50;
  background-color: #f4f7f6;
  padding: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
}

.metric-card .icon.pending {
  color: #e67e22;
  background-color: #fdf2e9;
}

.metric-card .icon.approved {
  color: #27ae60;
  background-color: #e8f8f0;
}

.metric-card .icon.refund {
  color: #2980b9;
  background-color: #ebf5fb;
}

.metric-card .details h3 {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.metric-card .details .number {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
}

/* Recent Claims Activity Table */
.activity-section {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.activity-section h3 {
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-section h3 i {
  color: #27ae60;
}

/* Data Table Styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: #f8f9fa;
  color: #34495e;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 15px;
  border-bottom: 2px solid #eef2f5;
  text-transform: uppercase;
}

.data-table td {
  padding: 14px 15px;
  border-bottom: 1px solid #eef2f5;
  font-size: 14px;
  color: #2c3e50;
}

.data-table tbody tr:hover {
  background-color: #fcfcfc;
}

/* Status Badges */
.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  text-transform: capitalize;
}

.status-badge.approved {
  background-color: #e8f8f0;
  color: #27ae60;
}

.status-badge.pending {
  background-color: #fdf2e9;
  color: #e67e22;
}

.status-badge.rejected {
  background-color: #fadbd8;
  color: #e74c3c;
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  padding: 30px 15px;
  color: #7f8c8d;
  font-size: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px dashed #cccccc;
}

/* Header Logout Button Override */
.btn-logout {
  background-color: #e74c3c !important;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background-color 0.2s ease !important;
}

.btn-logout:hover {
  background-color: #c0392b !important;
}

/* Mobile Responsiveness for Tables */
@media (max-width: 768px) {
  .activity-section {
    overflow-x: auto;
  }
  
  .welcome-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ==========================================================================
   10. CLAIMS APPLICATION FORM STYLES
   ========================================================================== */

.form-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-header h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-header h2 i {
  color: #27ae60;
}

.form-header p {
  color: #7f8c8d;
  font-size: 14px;
  margin-bottom: 25px;
}

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

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #27ae60;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 25px;
}

.btn-primary {
  background-color: #27ae60;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #219150;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #4a5568;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}

/* Alert Notifications */
.alert {
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-success {
  background-color: #e8f8f0;
  color: #27ae60;
  border: 1px solid #a3e4d7;
}

.alert-danger {
  background-color: #fadbd8;
  color: #e74c3c;
  border: 1px solid #f5b7b1;
}

.alert-warning {
  background-color: #fcf3cf;
  color: #b7950b;
  border: 1px solid #f9e79f;
}
/* ==========================================================================
   ANALYTICS & CHART STYLES
   ========================================================================== */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.chart-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.chart-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #0f2b48;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Ensure buttons sit above invisible page overlays */
button, .btn, .btn-primary {
  position: relative !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Fix invisible modal backdrops swallowing clicks */
.modal:not([style*="display: block"]) {
  pointer-events: none !important;
}