@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
  --primary-blue: #003B7C;
  --secondary-blue: #0066CC;
  --accent-yellow: #FFB800;
  --light-blue: #E8F0FE;
  --dark-text: #1A1A1A;
  --gray-text: #666666;
  --light-gray: #F5F7FA;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
}


body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at 50% 40%, #d0e3fa 0%, #3a5a8c 80%, #1a2a4d 100%);
  /* Prevent tiling/mirroring and keep gradient fixed to viewport */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  color: var(--dark-text);
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}



/* Headings use Inter with heavier weights for stability while keeping a modern sans-serif feel */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 0.5rem 0;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

/* shorter heading line-height for compact, authoritative headers */
h1, h2 { line-height: 1.15; }

.hero-background {
  position: fixed;
  top: -5%;
  left: -5%;
  right: -5%;
  bottom: -5%;
  /*
    Use a pre-blurred raster image for the hero background for best performance.
    If `background-index-blur.jpg` exists in `public/assets/` it will be used. If not,
    the SVG placeholder will serve as a fallback.
  */
  background-image: url('../assets/background-index-blur.jpg'), url('../assets/background-index-blur.svg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.03);
  opacity: 0.98;
  transition: opacity 400ms ease-in-out;
}

/* When the large image is loaded we add this class to fade it in. The heavy visual effects (blur/backdrop-filter)
   should be applied to a pre-blurred image asset instead of using CSS filters at runtime. */
.hero-background.hero-bg-loaded {
  opacity: 1;
}

/* Navigation Styles */
.topbar {
  background: #2c3e50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-bottom: 3px solid var(--accent-yellow);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-title {
  color: var(--white);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.main-nav {
  margin-left: 2.5rem;
  display: flex;
  gap: 0.5rem;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-weight: 500;
  position: relative;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--accent-yellow);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent-yellow);
}

/* Ensure active nav link text is accent yellow */
.topbar .main-nav a.active-text {
  color: var(--accent-yellow) !important;
}

.security-badge {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--accent-yellow);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Button Styles */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-yellow);
  color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: #FFD000;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--light-blue);
}

/* Card and Container Styles */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.2),
    0 4px 6px -2px rgba(0, 0, 0, 0.1),
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 2;
}

/* Content Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  min-height: calc(100vh - 72px); /* Subtract header height */
  display: flex;
  flex-direction: column;
}

.centered-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.centered-main .lookup-section {
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
}

.case-lookup-container {
  max-width: 720px;
  margin: 40px auto;
}

.secure-header {
  text-align: center;
  margin-bottom: 32px;
}

.secure-header h1 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin: 16px 0 8px;
}

.secure-header .subtitle {
  color: var(--gray-text);
  font-size: 1.1rem;
  margin: 0;
}

.text-center {
  text-align: center;
}

.text-center h1 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin: 0 0 1rem;
}

.text-center .subtitle {
  color: var(--gray-text);
  font-size: 1.1rem;
  margin: 0.5rem 0 2rem;
  line-height: 1.5;
}

.lookup-form-container {
  max-width: 480px;
  margin: 0 auto;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.input-group input {
  padding-left: 44px !important;
}

.secure-input {
  width: 100%;
  padding: 14px;
  border: 2px solid #DDE1E6;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.secure-input:focus {
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  outline: none;
}

.input-help {
  display: block;
  color: var(--gray-text);
  font-size: 0.875rem;
  margin-top: 8px;
}

.lookup-btn {
  width: 100%;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 26px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
}

.loading {
  display: none;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-text);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #DDE1E6;
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th {
  background-color: var(--light-blue);
  color: var(--primary-blue);
  font-weight: 600;
  text-align: left;
  padding: 16px;
}

td {
  padding: 16px;
  border-bottom: 1px solid #DDE1E6;
}

/* Status Badges */
.badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.badge-success {
  background-color: #E6F4EA;
  color: #1E7E34;
}

.badge-warning {
  background-color: #FFF3E0;
  color: #E65100;
}

.badge-pending {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

/* Dashboard specific styles */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stat-card h3 {
  color: var(--gray-text);
  font-size: 16px;
  margin: 0 0 8px 0;
}

.stat-card .value {
  color: var(--primary-blue);
  font-size: 28px;
  font-weight: 600;
}

/* Loading States */
.loading {
  color: var(--gray-text);
  text-align: center;
  padding: 40px;
}

/* Error States */
.error-message {
  background-color: #FEE8E7;
  color: #D13212;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

/* Success States */
.success-message {
  background-color: #E6F4EA;
  color: #1E7E34;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

/* Floating Contact Button */
.floating-contact-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 2000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 0.75rem 1.5rem; /* match about.css */
  font-size: 1rem;
  border-radius: 50px; /* match about.css */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* match about.css */
  transition: transform 0.2s;
}

.floating-contact-btn.btn-primary {
  background-color: var(--accent-yellow);
  color: var(--primary-blue);
}

.floating-contact-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
