/* ==========================================================================
   GTS CUSTOM PREMIUM STYLING - VANILLA CSS DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Theme Colors - Dark Mode (Default) */
  --bg-primary: #0a0f1d;
  --bg-secondary: #121829;
  --bg-tertiary: #192239;
  
  --primary: #0F4C81;          /* Royal Blue */
  --primary-rgb: 15, 76, 129;
  --primary-hover: #18609f;
  --secondary: #d4af37;        /* Gold */
  --secondary-rgb: 212, 175, 55;
  --secondary-hover: #bda030;
  
  --text-main: #f1f3f9;
  --text-muted: #8b98b5;
  --border-color: #242f4c;
  
  --success: #16a34a;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  
  /* Layout Variables */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: #f4f6fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f2f7;
  
  --primary: #0F4C81;
  --primary-hover: #0b3b66;
  --secondary: #c59b27;
  --secondary-hover: #ab851d;
  
  --text-main: #1e2538;
  --text-muted: #5e6b8c;
  --border-color: #dbe0eb;
  
  --shadow-sm: 0 2px 8px rgba(15, 76, 129, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 76, 129, 0.12);
}

/* CSS Reset & Core Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  transition: var(--transition-smooth);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Scrollbar - Standard & Webkit Fallbacks */
body {
  scrollbar-color: var(--primary) var(--bg-secondary);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
  }
}

/* ==========================================================================
   GRID & UTILITY CLASSES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  padding: 0 24px;
}

.container-sm {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

.hidden {
  display: none !important;
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-padding { padding: 50px 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

.btn-xs {
  padding: 6px 12px;
  font-size: 10px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 14px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #0c101b !important;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  box-shadow: 0 0 15px rgba(var(--secondary-rgb), 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

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

/* Badges */
.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success { background: rgba(22, 163, 74, 0.15); color: #22c55e; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-info { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.glass-card {
  background: rgba(18, 24, 41, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition-smooth);
}

.light-theme .main-header {
  background: rgba(244, 246, 250, 0.85);
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(var(--primary-rgb), 0.25));
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.05) rotate(-2deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-title);
  letter-spacing: 1px;
  color: var(--text-main);
}

.brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.nav-special-highlight {
  color: #ffffff !important;
  font-weight: 700;
  border: 1.5px solid var(--secondary);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(var(--secondary-rgb), 0.15);
  box-shadow: 0 0 15px rgba(var(--secondary-rgb), 0.22);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.nav-link.nav-special-highlight:hover {
  background: var(--secondary);
  color: #0c0f1d !important;
  box-shadow: 0 0 25px rgba(var(--secondary-rgb), 0.5);
  transform: translateY(-2px);
}

.nav-link.nav-special-highlight::after {
  display: none !important;
}

/* Light Theme overrides for highlighted tab */
.light-theme .nav-link.nav-special-highlight {
  color: var(--secondary) !important;
  background: rgba(197, 155, 39, 0.08);
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(197, 155, 39, 0.15);
}

.light-theme .nav-link.nav-special-highlight:hover {
  background: var(--secondary);
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(197, 155, 39, 0.35);
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--bg-tertiary);
  color: var(--secondary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* User Badge in Nav */
.user-badge-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.user-name-span {
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 40px 24px;
    align-items: flex-start;
    gap: 30px;
    transition: left 0.4s ease;
    border-top: 1px solid var(--border-color);
  }
  .nav-menu.open {
    left: 0;
  }
  .nav-link {
    font-size: 18px;
    width: 100%;
  }
  .login-nav-btn {
    width: 100%;
  }
}

/* ==========================================================================
   PAGE SECTIONS & LAYOUTS
   ========================================================================== */

.app-container {
  margin-top: 80px;
  min-height: calc(100vh - 180px);
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
  display: block;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background-image: url('gts_hero_bg.jpg'); /* Local premium security background */
  background-size: cover;
  background-position: center;
  color: #ffffff; /* Always force white text base inside hero */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 11, 25, 0.95), rgba(15, 76, 129, 0.8));
}

.light-theme .hero-overlay {
  background: linear-gradient(135deg, rgba(6, 11, 25, 0.95), rgba(15, 76, 129, 0.8)); /* Keep dark overlay in light theme */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  /* Redefine variables locally to enforce dark-theme gold and Slate text colors */
  --secondary: #d4af37;
  --secondary-rgb: 212, 175, 55;
  --text-muted: #c3cbde;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--secondary-rgb), 0.15);
  color: var(--secondary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  color: #ffffff !important; /* Force white text for heading in both themes */
}

.accent-text {
  color: var(--secondary);
  background: linear-gradient(to right, var(--secondary), #f5d77f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted) !important; /* Force readable light muted color in both themes */
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-content .btn-outline {
  border-color: #ffffff !important;
  color: #ffffff !important;
}

.hero-content .btn-outline:hover {
  background-color: #ffffff !important;
  color: #0F4C81 !important;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 36px; }
  .hero-content p { font-size: 15px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
}

/* Section Header */
.section-header {
  margin-bottom: 50px;
}

.section-header h2, .section-header h3 {
  font-size: 36px;
  margin-bottom: 12px;
}

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

/* Service Card details */
.service-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px auto;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #ffffff;
  transform: rotateY(180deg);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Metrics Row */
.metrics-row {
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

.metric-card {
  padding: 30px 20px;
}

.metric-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--secondary);
  font-family: var(--font-title);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   SECURITY+ ENTERPRISE PAGE (NIBER THEMED)
   ========================================================================== */

.security-hero-banner {
  background: linear-gradient(135deg, #0e1a35, #0F4C81);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
  /* Local overrides to force dark-theme color tokens inside the banner */
  --secondary: #d4af37;
  --secondary-rgb: 212, 175, 55;
}

.security-plus-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: #0c101b;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.security-hero-banner h2 {
  font-size: 40px;
  color: #ffffff !important; /* Force white text in both themes */
  margin-bottom: 16px;
}

.security-hero-banner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85) !important; /* Force readable light text in both themes */
  max-width: 750px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.features-list-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.features-list-row span {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.roles-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.role-chip {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.role-chip i {
  color: var(--primary);
}

.role-chip:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.info-card h4 {
  font-size: 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bullet-list {
  list-style: none;
  margin-top: 12px;
}

.bullet-list li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* ==========================================================================
   CAREERS & JOB LISTINGS
   ========================================================================== */

.careers-tracker-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  margin-bottom: 40px;
  background: rgba(var(--primary-rgb), 0.05);
  border-left: 4px solid var(--primary);
}

@media (max-width: 600px) {
  .careers-tracker-cta { flex-direction: column; gap: 16px; text-align: center; }
}

.job-card {
  margin-bottom: 20px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .job-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .job-card .btn { width: 100%; }
}

.job-details h4 {
  font-size: 20px;
  margin-bottom: 6px;
}

.job-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.5;
}

/* ==========================================================================
   FORMS & INPUT FIELDS
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

textarea.form-control {
  resize: vertical;
}

.form-text {
  display: block;
  margin-top: 6px;
  font-size: 11px;
}

/* ==========================================================================
   PORTAL GENERAL LAYOUT
   ========================================================================== */

.portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  min-height: calc(100vh - 180px);
}

.portal-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.sidebar-header i {
  font-size: 32px;
  color: var(--primary);
}

.sidebar-header h4 {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

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

.sidebar-link {
  background: none;
  border: none;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
}

.sidebar-link.active {
  border-left: 3px solid var(--primary);
  padding-left: 13px;
}

.portal-panel {
  min-height: 500px;
}

.portal-tab {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.portal-tab.active {
  display: block;
}

@media (max-width: 900px) {
  .portal-layout { grid-template-columns: 1fr; }
}

/* Stat Card Details */
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.icon-bg {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 80px;
  opacity: 0.05;
  pointer-events: none;
}

.stat-title {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Table Style overrides */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.table th, .table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  background-color: rgba(255,255,255,0.02);
}

.table tbody tr:hover {
  background-color: rgba(255,255,255,0.01);
}

/* ==========================================================================
   QUIZ COMPONENT (Security+ Modules)
   ========================================================================== */

.training-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.training-progress {
  font-size: 11px;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 10px;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.option-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition-smooth);
  width: 100%;
}

.option-btn:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.option-btn.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.15);
  font-weight: 600;
}

.option-btn.correct {
  border-color: var(--success);
  background: rgba(22, 163, 74, 0.15);
  color: #22c55e;
}

.option-btn.incorrect {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ==========================================================================
   DIALOG MODALS (NATIVE MODALS STYLING)
   ========================================================================== */

.modal-dialog {
  border: none;
  background: transparent;
  width: 100%;
  max-width: 580px;
  padding: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.modal-dialog[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.modal-dialog::backdrop {
  background: rgba(4, 8, 17, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-dialog[open]::backdrop {
  opacity: 1;
}

.modal-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main) !important;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted) !important;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

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

/* Niber Quote Term Banner */
.niber-banner {
  background: rgba(15, 76, 129, 0.1);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 12px;
  color: var(--text-main);
}

.niber-banner-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.light-theme .niber-banner-title {
  color: #0b3b66;
}

/* ==========================================================================
   TOAST NOTIFICATIONS (NATIVE POPOVER THEMED)
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 96px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--primary);
}

.toast-success::before { background-color: var(--success); }
.toast-danger::before { background-color: var(--danger); }
.toast-warning::before { background-color: var(--warning); }
.toast-info::before { background-color: var(--info); }

.toast-icon {
  font-size: 18px;
}

.toast-success .toast-icon { color: var(--success); }
.toast-danger .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-title);
}

.toast-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   LOGIN CARD SYSTEM & FOOTER
   ========================================================================== */

.login-card {
  max-width: 450px;
  margin: 40px auto;
  padding: 40px;
}

.login-logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px auto;
}

.login-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
  gap: 8px;
}

.login-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-smooth);
}

.login-tab:hover, .login-tab.active {
  color: var(--text-main);
}

.login-tab.active {
  border-bottom-color: var(--primary);
}

.login-form {
  display: none;
}

.login-form.active {
  display: block;
}

/* Contacts & Footer */
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h5 {
  font-size: 14px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-item p {
  font-size: 15px;
  font-weight: 600;
}

.main-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 80px;
}

/* Contact Page Big Floating Logo */
.contact-logo-container {
  margin-top: 35px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.contact-logo {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(var(--primary-rgb), 0.22));
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* Floating WhatsApp Chat Bubble */
.whatsapp-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366; /* WhatsApp official green */
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
  animation: pulseGreen 2.5s infinite;
}

.whatsapp-bubble:hover {
  transform: scale(1.1) rotate(8deg);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: var(--transition-smooth);
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}

.whatsapp-bubble:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
