@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
  line-height: 1.6;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #ecc94b;
  color: #1a202c;
  padding: 10px 20px;
  font-weight: 700;
  border-radius: 8px;
  z-index: 10000;
  transition: top 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid #1a202c !important;
}


/* REGISTER */

.register-card {
  width: 100%;
  max-width: 720px;
}

.register-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.register-card h3 {
  margin-top: 20px;
  margin-bottom: 5px;
  color: #0b3d91;
  font-size: 20px;
}

.register-card textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  resize: vertical;
  min-height: 100px;
  font-size: 15px;
  font-family: inherit;
}

.register-card button {
  display: block;
  margin: 25px auto 0 auto;
  min-width: 220px;
}

.auth-footer-link {
  margin-top: 25px;
  text-align: center;
}

.auth-footer-link p {
  margin-bottom: 8px;
  color: #666;
}

.auth-footer-link a {
  color: #0b3d91;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

/* PAGE */

.page-container {
  width: 90%;
  max-width: 1300px;
  margin: auto;
  padding: 40px 0;
}

/* BUTTONS */

.primary-btn {
  background: #0b3d91;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn:hover {
  background: #072b68;
  color: #fff;
}

.secondary-btn {
  border: 2px solid #0b3d91;
  color: #0b3d91;
  background: white;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.secondary-btn:hover {
  background: #0b3d91;
  color: white;
}

.danger-btn {
  background: #dc2626;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

/* INPUTS */

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 2px solid #d7dfea;
  font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #93c5fd;
}

/* LOGIN */

.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.login-card {
  background: white;
  width: 100%;
  max-width: 560px;
  padding: 45px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
  color: #0b3d91;
  margin-bottom: 10px;
}

.login-card button:not(.password-toggle),
.auth-card button:not(.password-toggle) {
  display: block;
  margin: 22px auto 0 auto;
  min-width: 180px;
}
.portal-description {
  color: #666;
  margin-bottom: 25px;
}

.error-message {
  background: #ffe5e5;
  color: #cc092d;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* MOBILE */

@media (max-width: 768px) {
  .stats-grid,
  .profile-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .top-bar {
    flex-direction: column;
    gap: 15px;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  .modern-job-card {
    padding: 18px;
  }

  .custom-modal-content {
    width: 95%;
  }
}

/* Focus Indicator global setting */
*:focus-visible {
    outline: 3px solid #ecc94b !important;
    outline-offset: 2px !important;
}

/* Accessibility classes (Large, Readable Fonts scaling overrides) */
body.font-lg {
    font-size: 18px !important;
}
body.font-lg h1, 
body.font-lg .content-page-title {
    font-size: 34px !important;
}
body.font-lg h2,
body.font-lg .hero-subtitle {
    font-size: 28px !important;
}
body.font-lg h3,
body.font-lg .stat-number {
    font-size: 26px !important;
}
body.font-lg p, 
body.font-lg li, 
body.font-lg td, 
body.font-lg th,
body.font-lg a, 
body.font-lg label, 
body.font-lg input, 
body.font-lg button, 
body.font-lg select, 
body.font-lg textarea,
body.font-lg .sidebar-nav a,
body.font-lg .nav-links a,
body.font-lg .btn-text-link,
body.font-lg .job-company,
body.font-lg .dashboard-welcome {
    font-size: 18px !important;
}
body.font-lg .stat-label,
body.font-lg .logo-tagline,
body.font-lg .sidebar-slogan,
body.font-lg .sidebar-footer span,
body.font-lg .feature-tag,
body.font-lg .skill-tag,
body.font-lg .job-type-tag,
body.font-lg .verified-tag,
body.font-lg .job-category-tag,
body.font-lg .job-details-meta span,
body.font-lg .candidate-meta,
body.font-lg .candidate-skills span {
    font-size: 14px !important;
}

body.font-xl {
    font-size: 21px !important;
}
body.font-xl h1, 
body.font-xl .content-page-title {
    font-size: 40px !important;
}
body.font-xl h2,
body.font-xl .hero-subtitle {
    font-size: 32px !important;
}
body.font-xl h3,
body.font-xl .stat-number {
    font-size: 30px !important;
}
body.font-xl p, 
body.font-xl li, 
body.font-xl td, 
body.font-xl th,
body.font-xl a, 
body.font-xl label, 
body.font-xl input, 
body.font-xl button, 
body.font-xl select, 
body.font-xl textarea,
body.font-xl .sidebar-nav a,
body.font-xl .nav-links a,
body.font-xl .btn-text-link,
body.font-xl .job-company,
body.font-xl .dashboard-welcome {
    font-size: 21px !important;
}
body.font-xl .stat-label,
body.font-xl .logo-tagline,
body.font-xl .sidebar-slogan,
body.font-xl .sidebar-footer span,
body.font-xl .feature-tag,
body.font-xl .skill-tag,
body.font-xl .job-type-tag,
body.font-xl .verified-tag,
body.font-xl .job-category-tag,
body.font-xl .job-details-meta span,
body.font-xl .candidate-meta,
body.font-xl .candidate-skills span {
    font-size: 17px !important;
}


/* High Contrast Class (Accessibility-First Site-Wide Overlay) */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast .main-content,
body.high-contrast .layout,
body.high-contrast .content-topbar,
body.high-contrast .app-sidebar,
body.high-contrast .content-body,
body.high-contrast .modern-job-card,
body.high-contrast .job-item-card,
body.high-contrast .stat-card,
body.high-contrast .profile-main-card,
body.high-contrast .custom-modal-content,
body.high-contrast .table-wrapper,
body.high-contrast table,
body.high-contrast tr,
body.high-contrast td,
body.high-contrast th,
body.high-contrast .alert {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
}

/* Sidebar Overrides */
body.high-contrast .app-sidebar {
    border-right: 2px solid #ffffff !important;
}
body.high-contrast .sidebar-brand {
    border-bottom: 2px solid #ffffff !important;
}
body.high-contrast .sidebar-logo-mark {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffff00 !important;
}
body.high-contrast .sidebar-site-name,
body.high-contrast .sidebar-slogan {
    color: #ffff00 !important;
}
body.high-contrast .sidebar-nav a {
    color: #ffffff !important;
}
body.high-contrast .sidebar-nav li.active a,
body.high-contrast .sidebar-nav a:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}
body.high-contrast .sidebar-logout,
body.high-contrast .sidebar-close-mobile {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}
body.high-contrast .sidebar-logout:hover,
body.high-contrast .sidebar-close-mobile:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}
body.high-contrast .sidebar-footer {
    border-top: 1px solid #ffffff !important;
    color: #ffffff !important;
}

body.high-contrast .dashboard-footer {
    border-top: 1px solid #ffffff !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}
body.high-contrast .dashboard-footer-container p {
    color: #ffffff !important;
}

/* Topbar & Header */
body.high-contrast .content-topbar {
    border-bottom: 2px solid #ffffff !important;
}
body.high-contrast .topbar-notif-btn {
    color: #ffff00 !important;
}
body.high-contrast .topbar-notif-dropdown {
    background-color: #000000 !important;
    border: 2px solid #ffffff !important;
}
body.high-contrast .topbar-notif-dropdown ul li {
    background-color: #121212 !important;
    border-bottom: 1px solid #ffffff !important;
}
body.high-contrast .topbar-notif-dropdown ul li a {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Typography & Headings */
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast .logo-text,
body.high-contrast strong,
body.high-contrast .content-page-title,
body.high-contrast .dashboard-welcome strong {
    color: #ffff00 !important;
}
body.high-contrast p,
body.high-contrast li,
body.high-contrast span,
body.high-contrast label,
body.high-contrast .dashboard-welcome,
body.high-contrast .content-page-subtitle {
    color: #ffffff !important;
}
body.high-contrast a {
    color: #00ffff !important;
    text-decoration: underline !important;
}
body.high-contrast a:hover {
    color: #ffff00 !important;
}

/* Statistics Widgets */
body.high-contrast .stat-card {
    border: 2px solid #ffffff !important;
}
body.high-contrast .stat-number {
    color: #ffff00 !important;
}
body.high-contrast .stat-label {
    color: #ffffff !important;
}

/* Buttons */
body.high-contrast .primary-btn,
body.high-contrast button[type="submit"],
body.high-contrast .login-btn {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffff00 !important;
    font-weight: 700 !important;
}
body.high-contrast .primary-btn:hover,
body.high-contrast button[type="submit"]:hover,
body.high-contrast .login-btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}
body.high-contrast .secondary-btn,
body.high-contrast button[type="button"],
body.high-contrast .topbar-notif-btn {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    background: #000000 !important;
}
body.high-contrast .secondary-btn:hover,
body.high-contrast button[type="button"]:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}
body.high-contrast .applied-btn {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}
body.high-contrast .applied-btn:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

/* Form Inputs */
body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}
body.high-contrast input:focus,
body.high-contrast select:focus,
body.high-contrast textarea:focus {
    outline: 3px solid #ffff00 !important;
}

/* Badge Tags */
body.high-contrast .feature-tag,
body.high-contrast .skill-tag,
body.high-contrast .job-type-tag,
body.high-contrast .verified-tag,
body.high-contrast .job-category-tag {
    background-color: #000000 !important;
    color: #00ffff !important;
    border: 2px solid #00ffff !important;
}

/* Tables */
body.high-contrast table {
    border: 2px solid #ffffff !important;
}
body.high-contrast th {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-bottom: 2px solid #ffffff !important;
}
body.high-contrast tr:hover td {
    background-color: #242424 !important;
}

/* High Contrast overrides for auth, settings and dashboard cards */
body.high-contrast .auth-card,
body.high-contrast .settings-card,
body.high-contrast .credentials-card,
body.high-contrast .dashboard-card {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
}

/* High Contrast active highlights for accessibility buttons */
body.high-contrast .acc-btn.active,
body.high-contrast .acc-btn-sz.active,
body.high-contrast #glob-contrast-btn.active,
body.high-contrast #btn-contrast.active {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}


