/* =======================================
   CertGuardian - Main Stylesheet
   ======================================= */

/* #region 1. Globals */

/* CTA button WORDPRESS CLASS */
.cg-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

/* Welcome User */
.cg-cert-welcome-message {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #e0f7ff, #f0fcff);
  color: #003b73;
  border-left: 6px solid #007acc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.notice.success {
  background-color: #d7f5d0;
  border: 1px solid #8bc34a;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  color: #3c763d;
}

.cg-error-message {
  color: #b91c1c;
  background: #fee2e2;
  padding: 0.75rem 1rem;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* #endregion */

/* #region SELECT 2 CSS */
/* Adjust font size, padding, etc. for the visible dropdown */
.select2-container .select2-selection--single {
  width: 100%;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  line-height: 1.5;
  margin-left: 10px;
}

/* Optional: adjust the arrow */
.select2-container--default,
.select2-selection--single,
.select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 10px;
  transform: none;
  display: flex;
  align-items: center;
}

/* Placeholder style */
.select2-container--default,
.select2-selection--single,
.select2-selection__placeholder {
  color: #888;
}

/* #endregion */

/* #region 2. HOME */

/* NOTIFICATION BAR */
.cg-home-top-notification-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #1e293b;
  color: #facc15;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.cg-home-top-notification-bar a {
  color: #facc15;
  text-decoration: underline;
  font-weight: 700;
}

.cg-home-notification-message {
  padding-right: 4rem;
}

.cg-home-notification-close {
  background-color: transparent;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #facc15;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.cg-home-notification-close:hover {
  background-color: transparent !important;
  color: #fff !important; /* White on hover for contrast */
  transform: translateY(-50%) scale(1.2); /* Slight pop on hover */
}

/* Base layout */
.cg-home-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

/* Wavy divider */
.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 100px;
}
.wave-divider.flip svg {
  transform: rotate(180deg);
}

/* Hero section */
.cg-home-hero {
  background-color: #f1f5f9 !important;
  text-align: center;
}

.cg-home-login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  border: 2px solid #0073e6;
  border-radius: 12px;
  background: linear-gradient(
    to bottom right,
    #fff8f0,
    #e0ecff
  ); /* soft light blue */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cg-home-login-container:hover {
  transform: translateY(-5px);
}

.cg-home-login-message {
  font-size: 1.1rem;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 500;
  opacity: 0.85;
}

.cg-home-js-animated-title {
  text-align: center;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1e3a8a;
}

.cg-home-title span {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
  letter-spacing: 1px;
  will-change: transform, opacity;
}

.cg-home-title:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

.cg-home-subtitle {
  font-size: 1.25rem;
  color: #334155;
}

/* Targets section */
.cg-home-heading {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 2px solid #b8860b;
  display: inline-block;
  padding-bottom: 0.25rem;
  color: #1e3a8a !important;
}

.cg-home-grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* Features section */
.cg-home-heading {
  text-align: center;
  margin-bottom: 2rem;
  color: #0f172a;
}

.cg-home-grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.cg-home-feature {
  flex: 1 1 280px;
  background: linear-gradient(to bottom right, #fff8f0, #e0ecff);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cg-home-feature h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1e3a8a; /* Deep blue for trust */
  font-weight: 700;
  letter-spacing: 0.5px;
  border-left: 4px solid #3b82f6;
  padding-left: 0.75rem;
}

.cg-home-feature:hover {
  transform: translateY(-5px);
}

/* Final CTA */
.cg-home-cta-final {
  background: #f1f5f9;
  text-align: center;
}

.cg-home-cta-final h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

/* Responsive design */
@media (max-width: 600px) {
  .cg-home-grid-2,
  .cg-home-grid-3 {
    flex-direction: column;
    align-items: center;
  }

  .cg-home-title {
    font-size: 2.2rem;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
    padding: 0 1rem;
  }

  .cg-home-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
    text-align: center;
  }

  .cg-home-top-notification-bar {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  .cg-home-notification-close {
    align-self: flex-end;
  }
}

/* #endregion */

/* #region 3. Layout Containers (Reusable Blocks)*/
.cg-container {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
/* #endregion */

/* #region 4. Cert Dashboard Page */
/* Certificate Dashboard
----------------------------------------- */
:root {
  --alert-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --container-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --alert-expired: #dc3545;
  --alert-warning: #ff8c00;
  --highlight-color: #ffffcc;
  --hover-color: #f0f8ff;
  --border-light: #eee;
  --border-medium: #ddd;
  --bg-alt: #fafafa;
  --link-color: #0073aa;

  --expired-bg: rgba(220, 53, 69, 0.1); /* Light red background */
  --expired-border: #dc3545; /* Red border */
  --expired-text: #dc3545; /* Red text */

  --expiring-bg: rgba(255, 140, 0, 0.1); /* Light orange background */
  --expiring-border: #ff8c00; /* Orange border */
  --expiring-text: #cc7000; /* Dark orange text */
}

/* Main Container
----------------------------------------- */
.cg-cert-dashboard-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--container-shadow);
  overflow-x: auto;
}

/* Table Styles
----------------------------------------- */
.cg-cert-dashboard-table {
  table-layout: fixed;
  text-align: center;
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.cg-cert-dashboard-table thead th {
  z-index: 2;
  background: #f5f5f5;
  font-weight: bold;
  padding: 0.75rem;
  border-bottom: 2px solid var(--border-medium);
}

.cg-cert-dashboard-table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.cg-col-select {
  width: 40px;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.cg-cert-dashboard-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.cg-cert-dashboard-table tbody tr:hover {
  background: var(--hover-color);
}

.cg-cert-dashboard-table a {
  color: var(--link-color);
  text-decoration: none;
}

.cg-cert-dashboard-table a:hover {
  text-decoration: underline;
}

/* Personal Development & Toggle Button */
.cg-cert-section-heading {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto 1em auto; /* center it */
  margin-top: 2em;
  font-size: 1.5em;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.25em;
}

.cg-cert-wrapper {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto 1em auto; /* center it */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cg-toggle-button {
  background: linear-gradient(135deg, #010151, #0056b3);
  color: white;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 2em;
}

.cg-toggle-button:hover {
  background: linear-gradient(135deg, #0056b3, #003d80);
}

/* Bottom Button */
.cg-bottom-button {
  display: flex;
  justify-content: center;
  margin-top: 2em;
}

/* Description Row */
.cg-cert-table-description {
  display: flex;
  justify-content: center;
  font-size: 0.95em;
  font-style: italic;
  color: #cc0000;
  margin-bottom: 0.5rem;
}

/* Expired Certificate Row */
.cg-cert-dashboard-table tr.cg-cert-expired {
  background-color: var(--expired-bg);
  border-left: 4px solid var(--expired-border);
  border-right: 4px solid var(--expired-border);
}

.cg-cert-dashboard-table tr.cg-cert-expired td {
  color: var(--expired-text);
}

.cg-cert-dashboard-table tr.cg-cert-expired:hover {
  background-color: rgba(220, 53, 69, 0.15);
}

/* Expiring Soon Row */
.cg-cert-dashboard-table tr.cg-cert-expiring-soon {
  /*background-color: var(--expiring-bg);*/
  border-left: 4px solid var(--expiring-border);
  border-right: 4px solid var(--expiring-border);
}

.cg-cert-dashboard-table tr.cg-cert-expiring-soon td {
  color: var(--expiring-text);
}

.cg-cert-dashboard-table tr.cg-cert-expiring-soon:hover {
  background-color: rgba(255, 140, 0, 0.15);
}

/* Status Icons */
.cg-cert-dashboard-table tr.cg-cert-expired td:first-child::before,
.cg-cert-dashboard-table tr.cg-cert-expiring-soon td:first-child::before {
  margin-right: 8px;
  font-size: 1.1em;
}

.cg-cert-dashboard-table tr.cg-cert-expired td.cg-cert-name-cell::before {
  content: "🚫 ";
}

.cg-cert-dashboard-table tr.cg-cert-expiring-soon td.cg-cert-name-cell::before {
  content: "⚠️ ";
}

/* Links within status rows */
.cg-cert-dashboard-table tr.cg-cert-expired a,
.cg-cert-dashboard-table tr.cg-cert-expiring-soon a {
  font-weight: 600;
}

.cg-cert-dashboard-table tr.cg-cert-expired a {
  color: var(--expired-text);
}

.cg-cert-dashboard-table tr.cg-cert-expiring-soon a {
  color: var(--expiring-text);
}

/* Alert System
----------------------------------------- */
.cg-cert-expiry-warning {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  margin-bottom: 1.5em;
  box-shadow: var(--alert-shadow);
  overflow: hidden;
  animation: fadeIn 0.4s ease-in-out;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.cg-cert-expiry-warning::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.cg-cert-expired::before {
  background-color: var(--alert-expired);
}

.cg-cert-expiry-warning:not(.cg-cert-expired)::before {
  background-color: var(--alert-warning);
}

.cg-cert-alert-content {
  display: flex;
  align-items: center;
  padding: 16px 48px 16px 20px;
  position: relative;
}

/* Alert Icons
----------------------------------------- */
.cg-cert-expiry-icon {
  font-size: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  animation: pulseIcon 2s infinite;
}

.cg-cert-expired .cg-cert-expiry-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
  animation: pulseIconRed 2s infinite;
}

/* Close Button
----------------------------------------- */
.cg-cert-close-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cg-cert-close-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); /* accessibility focus ring */
}

/* State Classes
----------------------------------------- */
.cg-cert-highlight-edit {
  background-color: var(--highlight-color);
}

/* Animations
----------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseIcon {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulseIconRed {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design
----------------------------------------- */
@media (max-width: 768px) {
  .cg-cert-welcome-message {
    font-size: large;
  }

  .cg-cert-dashboard-container,
  .cg-cert-expiry-warning,
  .cg-cert-welcome-message {
    overflow-x: auto;
    padding: 1em;
  }

  .cg-cert-dashboard-table {
    min-width: 700px;
  }

  .cg-toggle-button {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 1em;
  }
}

/* #endregion */

/* #region 5. Quiz Dashboard */

/* ===============================
   CertGuardian Quiz Styles
   =============================== */

/* Employer form */
.cg-quiz-step {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", sans-serif;
}

.cg-quiz-step h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.5em;
}

.cg-employer-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

/*.cg-employer-form select {
        width: 100%;
        font-size: 1rem;
        border-radius: 6px;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
     line-height: 1.5;
   }*/

.cg-btn {
  display: block;
  width: 100%;
  background-color: #0073aa;
  color: white;
  padding: 12px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cg-btn:hover {
  background-color: #005e8a;
}

/* Overall card */
.quiz-card {
  background: #ffffff;
  border: 2px solid #0066cc;
  border-radius: 12px;
  padding: 30px;
  max-width: 800px;
  margin: 20px auto;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
  text-align: center;
}

/* Heading */
.quiz-card h1 {
  font-size: 1.8em;
  color: #003366;
  margin-bottom: 10px;
}

.quiz-card h4 {
  font-weight: normal;
  color: #555;
  margin-top: 0;
}

/* Container for questions & forms */
.quiz-container {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Single question */
.quiz-question {
  font-size: 1.2em;
  margin: 20px 0 10px;
  font-weight: bold;
  color: #333;
}

/* Options */
.quiz-option {
  display: block;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 12px 15px;
  margin: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option:hover {
  border-color: #0073e6;
  background: #eef6fc;
}

.quiz-option input[type="radio"] {
  margin-right: 10px;
}

/* Feedback messages */
.quiz-feedback {
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 6px;
  font-weight: bold;
}

.quiz-feedback.correct {
  background: #e6f9e6;
  border: 2px solid #28a745;
  color: #155724;
}

.quiz-feedback.wrong {
  background-color: #fff4e5;
  border: 1px solid #ffc107;
  color: #664d03;
}

.quiz-highlight-block {
  background-color: #ffe6e6;
  border: 2px solid #cc0000;
  padding: 10px;
  border-radius: 5px;
}

.quiz-explanation {
  background-color: #fffbea;
  /* soft yellow highlight */
  border-left: 5px solid #facc15;
  /* golden accent */
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #92400e;
  /* dark amber text */
  border-radius: 6px;
  font-weight: 500;
}

/* Buttons */
.quiz-submit,
.quiz-restart {
  display: inline-block;
  background: #0073e6;
  color: #fff !important;
  border: none;
  padding: 12px 30px;
  margin-top: 20px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

.quiz-submit:hover,
.quiz-restart:hover {
  background: #005bb5;
}

/* Restart link inside card */
.quiz-restart {
  background: transparent;
  color: #0073e6 !important;
  border: 2px solid #0073e6;
}

.quiz-restart:hover {
  background: #0073e6;
  color: #fff !important;
}

/* Separator for multi-questions */
.quiz-form hr {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 30px 0;
}

/* Responsive */
@media (max-width: 600px) {
  .quiz-card,
  .quiz-container {
    padding: 20px;
  }

  .quiz-option {
    padding: 10px 12px;
  }

  .quiz-submit,
  .quiz-restart {
    width: 100%;
    text-align: center;
  }
}
/* #endregion */

/* #region 6. Certificate Upload Page */

/* === Upload Form Container === */
.cg-upload-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === Labels === */
.cg-upload-form label {
  display: block;
  font-weight: bold;
}

/* === Inputs & Textareas === */
.cg-upload-form input,
.cg-upload-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.5;
}

/* === Select === */
.cg-upload-form select {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.5;
}
/* #endregion */

/* #region 7. Company Dashboard Styles */

.cg-company-dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.cg-company-dashboard-title-card {
  background: linear-gradient(135deg, #f5f7fa, #e2e8f0);
  border-left: 5px solid #2563eb;
  /* Blue accent bar */
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease;
}

.cg-company-dashboard-title-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.cg-company-dashboard-title-card h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  color: #1e293b;
}

.cg-company-dashboard-highlight-title {
  color: #2563eb;
  font-weight: 600;
}

.cg-company-dashboard-title-card h4 {
  margin: 0;
  color: #475569;
  font-weight: 400;
}

.cg-company-dashboard-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px; /* optional: keep it readable */
  margin-bottom: 2rem;
}

.cg-company-dashboard-filters input[type="text"],
.cg-company-dashboard-filters select {
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.cg-company-dashboard-filters button {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.cg-company-dashboard-filters button:hover {
  background: #005f8d;
}

.cg-company-dashboard-filter-group {
  display: flex;
  flex-direction: column;
}

.cg-company-dashboard-filter-group label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* #endregion */

/* #region 8. About Page */
.cg-about {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cg-about__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  text-align: center;
}

.cg-about__intro {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.cg-about__section-title {
  margin-top: 1.75rem;
  font-size: 1.25rem;
  color: #1a73e8;
}

.cg-about__list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  color: #444;
}

.cg-about__text {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #444;
}

.cg-about__contact {
  margin-top: 2rem;
  font-weight: bold;
  font-size: 1rem;
  color: #2c3e50;
}

.cg-about__contact a {
  color: #1a73e8;
  text-decoration: none;
}

.cg-about__contact a:hover {
  text-decoration: underline;
}
/* #endregion */

/* #region 9. Email Verification Page */

/* =======================================
   Email Verification Styles
   ======================================= */

.cg-verification-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
}

.cg-verification-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

/* Processing State */
.cg-verification-card.cg-verification-processing {
  border-color: #0073aa;
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

/* Waiting State */
.cg-verification-card.cg-verification-waiting {
  border-color: #ddd;
  background: #f8f9fa;
}

/* Success State (for future use) */
.cg-verification-card.cg-verification-success {
  border-color: #28a745;
  background: linear-gradient(135deg, #f8fff8 0%, #e6f9e6 100%);
}

/* Error State (for future use) */
.cg-verification-card.cg-verification-error {
  border-color: #dc3545;
  background: linear-gradient(135deg, #fff8f8 0%, #ffe6e6 100%);
}

/* Icon Styling */
.cg-verification-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulseIcon 2s infinite;
}

.cg-verification-processing .cg-verification-icon {
  animation: rotateIcon 2s linear infinite;
}

/* Typography */
.cg-verification-card h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cg-verification-card h3 {
  color: #0073aa;
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.cg-verification-card h4 {
  color: #555;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.cg-verification-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Token Display */
.cg-verification-token {
  background: #f1f3f4;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: "Courier New", monospace;
  word-break: break-all;
}

.cg-verification-token code {
  background: transparent;
  color: #0073aa;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Info Section */
.cg-verification-info {
  background: #f8f9fa;
  border-left: 4px solid #0073aa;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  text-align: left;
}

.cg-verification-info ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  color: #555;
}

.cg-verification-info li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Help Section */
.cg-verification-help {
  background: #fff4e5;
  border: 1px solid #ffc107;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 6px;
}

.cg-verification-help h4 {
  color: #cc7000;
  margin-top: 0;
}

.cg-verification-help p {
  color: #664d03;
  margin-bottom: 1rem;
}

/* Action Buttons */
.cg-verification-actions {
  margin-top: 1.5rem;
}

.cg-verification-actions .cg-btn {
  margin: 0.5rem;
}

/* Button Styles (extending existing cg-btn) */
.cg-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 120px;
}

.cg-btn-primary {
  background: #0073aa;
  color: #fff;
}

.cg-btn-primary:hover {
  background: #005f8d;
  color: #fff;
  text-decoration: none;
}

.cg-btn-secondary {
  background: #6c757d;
  color: #fff;
}

.cg-btn-secondary:hover {
  background: #545b62;
  color: #fff;
  text-decoration: none;
}

.cg-btn-success {
  background: #28a745;
  color: #fff;
}

.cg-btn-success:hover {
  background: #218838;
  color: #fff;
  text-decoration: none;
}

.cg-btn-danger {
  background: #dc3545;
  color: #fff;
}

.cg-btn-danger:hover {
  background: #c82333;
  color: #fff;
  text-decoration: none;
}

/* Animations */
@keyframes rotateIcon {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseIcon {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .cg-verification-container {
    margin: 1rem;
    padding: 0.5rem;
  }

  .cg-verification-card {
    padding: 1.5rem 1rem;
  }

  .cg-verification-icon {
    font-size: 2.5rem;
  }

  .cg-verification-card h2 {
    font-size: 1.5rem;
  }

  .cg-btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* #endregion */

/* #region 10. Registration Success Overlay */
.cg-registration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cg-registration-content {
  background-color: #ffffff;
  padding: 50px;
  border-radius: 15px;
  text-align: center;
  max-width: 600px;
  margin: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cg-registration-icon {
  font-size: 80px;
  margin-bottom: 30px;
  animation: bounce 1s infinite;
}

.cg-registration-title {
  color: #28a745;
  margin-bottom: 25px;
  font-size: 32px;
  font-weight: bold;
}

.cg-registration-greeting {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.cg-registration-subtitle {
  font-size: 16px;
  margin-bottom: 25px;
  color: #666;
}

.cg-registration-email-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  border-radius: 10px;
  margin: 30px 0;
  border-left: 5px solid #007cba;
}

.cg-registration-email-title {
  margin: 0;
  font-weight: bold;
  color: #007cba;
  font-size: 16px;
}

.cg-registration-email-subtitle {
  margin: 10px 0 0 0;
  color: #495057;
}

.cg-registration-email-address {
  margin: 5px 0 0 0;
  font-weight: bold;
  color: #212529;
  font-size: 16px;
}

.cg-registration-instruction {
  margin-bottom: 35px;
  font-size: 16px;
  color: #495057;
  line-height: 1.6;
}

.cg-registration-button {
  display: inline-block;
  background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
  color: white;
  padding: 18px 35px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
  margin-bottom: 25px;
}

.cg-registration-button:hover {
  color: white; /* Enforce white on hover too */
  background: linear-gradient(135deg, #0056b3 0%, #003e80 100%);
  box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
  transform: translateY(-2px);
  text-decoration: none; /* Optional: removes underline */
}

.cg-registration-countdown {
  color: #6c757d;
  font-size: 14px;
}

.cg-registration-timer {
  font-weight: bold;
  color: #007cba;
}

@keyframes bounce {
  0%,
  20%,
  60%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(-5px);
  }
}

@media (max-width: 600px) {
  .cg-registration-content {
    width: 90%;
    padding: 30px 20px;
    margin: 10px;
  }

  .cg-registration-title {
    font-size: 24px;
  }

  .cg-registration-greeting,
  .cg-registration-subtitle,
  .cg-registration-instruction {
    font-size: 14px;
  }

  .cg-registration-button {
    padding: 14px 25px;
    font-size: 14px;
  }

  .cg-registration-email-box {
    padding: 20px;
  }

  .cg-registration-email-title,
  .cg-registration-email-address {
    font-size: 14px;
  }

  .cg-registration-icon {
    font-size: 60px;
  }
}

/* #endregion */

/* #region 11. My Account & Password Reset */

/* Base wrapper */
.cg-my-account-top {
  background: linear-gradient(to right, #e0f7fa, #f0fdfa);
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 2px solid #0f766e;
}

.cg-my-account-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.cg-my-account-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.cg-my-account-header p {
  font-size: 1.1rem;
  color: #334155;
  opacity: 0.85;
}

/* Logout layout */
.cg-my-account-logout {
  margin-top: 2rem;
  text-align: center;
}

/* Section layout */
.cg-my-account-your-info {
  padding: 1rem 1.5rem;
  background: #f8fafc;
}

.cg-account-grid {
  max-width: 900px;
  margin: 0 auto;
}

.cg-account-grid h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #0f766e;
  text-align: left;
  border-left: 4px solid #0f766e;
  padding-left: 1rem;
}

/* Card styling */
.cg-account-card {
  background: linear-gradient(to bottom right, #e0f7fa, #f1f5f9);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.cg-account-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cg-account-card li {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.cg-account-card li strong {
  color: #0f766e;
  font-weight: 600;
}

.cg-my-account-password {
  padding: 3rem 1.5rem;
  background: #f8fafc;
}

.cg-password-row {
  margin-bottom: 1.5rem;
}

.cg-password-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #0f172a;
}

.cg-password-row input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 1rem;
}

.cg-password-strength {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
}

.cg-password-submit {
  background-color: #0f766e;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cg-password-submit:hover {
  background-color: #115e59;
}

.cg-password-error,
.cg-password-success {
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  line-height: 1.4;
}

.cg-password-error {
  background-color: #fee2e2;
  color: #b91c1c;
  border-left: 4px solid #ef4444;
}

.cg-password-success {
  background-color: #dcfce7;
  color: #166534;
  border-left: 4px solid #22c55e;
}

.cg-password-row {
  margin-bottom: 1.5rem;
}

.cg-password-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cg-password-input-wrapper input[type="password"],
.cg-password-input-wrapper input[type="text"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}

.cg-toggle-password {
  background: none;
  border: 1px solid #ccc;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
}
.cg-toggle-password svg {
  width: 20px;
  height: 20px;
  stroke: #ff7b00;
  fill: none;
}

@media (max-width: 600px) {
  .cg-my-account-header h2 {
    font-size: 1.5rem;
  }

  .cg-account-grid h3 {
    font-size: 1.25rem;
    padding-left: 0.75rem;
  }

  .cg-account-card {
    padding: 1.5rem;
  }

  .cg-password-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .cg-toggle-password {
    margin-top: 0.5rem;
    width: 20%;
  }
}

/* #endregion */

/* #region 12. Weekly Report Dashboard Styles */
.cg-weekly-report-container {
  padding: 1rem;
}

.cg-weekly-report-form table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cg-weekly-report-form th,
.cg-weekly-report-form td {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.cg_enrolled_in {
  background-color: #f5f7fa;
  border: 1px solid #d3dce6;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 14px;
  flex-wrap: wrap;
}

.cg_enrolled_in label {
  margin-right: 0.5rem;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.cg_enrolled_in input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 1rem;
  cursor: pointer;
}

.cg-weekly-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #f9f9f9;
  padding: 1rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cg-weekly-left,
.cg-weekly-right {
  flex: 1 1 300px;
}

.cg-weekly-left h4,
.cg-weekly-right h4 {
  margin: 0.5rem 0;
  font-weight: normal;
}

.cg-weekly-worker-section-header {
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.cg-weekly-workers-checklist {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.cg-weekly-workers-checklist th,
.cg-weekly-workers-checklist td {
  padding: 0.75rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

.cg-weekly-workers-checklist thead th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.cg-weekly-workers-checklist th:first-child,
.cg-weekly-workers-checklist td:first-child {
  width: 60px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.cg-weekly-workers-checklist .certificates-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cg-weekly-workers-checklist {
  background-color: #f9f9f9;
  padding: 0.5rem;
  border-radius: 5px;
  min-width: 120px;
}

.cg-weekly-workers-checklist th:nth-child(2),
.cg-weekly-workers-checklist td:nth-child(2) {
  width: 200px;
  white-space: nowrap;
}

.cg-weekly-cert-legend {
  margin-bottom: 1rem;
  font-size: 0.9em;
  color: #444;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cg-weekly-cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cg-weekly-cert-tag {
  background-color: #f1f1f1;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  white-space: nowrap;
}

.cg-weekly-cert-tag.expired {
  background-color: #ffd6d6;
  color: #900;
}

.cg-weekly-cert-tag.expiring-soon {
  background-color: #fff4cc;
  color: #a60;
}

.cg-tooltip-icon {
  margin-left: 6px;
  cursor: help;
  font-size: 0.85rem;
  color: #777;
  border-bottom: 1px dotted #777;
}

.cg-mobile-tooltip {
  display: none;
  font-size: 0.85rem;
  color: #555;
  margin: 1rem 0 -0.5rem;
}

@media (max-width: 768px) {
  .cg-weekly-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cg-weekly-left,
  .cg-weekly-right {
    flex: 1 1 100%;
  }

  .cg_enrolled_in {
    flex-direction: column;
    align-items: flex-start;
  }

  .cg-weekly-workers-checklist thead {
    display: none;
    /* Hide table headers on mobile */
  }

  .cg-weekly-workers-checklist tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    padding: 0.75rem;
  }

  .cg-weekly-workers-checklist td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border: none;
    width: 100%;
  }

  .cg-weekly-workers-checklist td:before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 1rem;
    flex: 1;
    color: #555;
  }

  .cg-weekly-cert-list {
    flex-direction: column;
    gap: 4px;
  }

  .cg-weekly-cert-tag {
    width: 100%;
  }

  .cg-weekly-cert-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .cg-registration-button {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-size: 1rem;
  }

  .cg-mobile-tooltip {
    display: block;
  }

  .cg-weekly-workers-checklist thead {
    display: none;
  }
}

/* #endregion */
