/* ==========================================================
   GLOBAL PAGE STYLING
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Roboto:wght@400;700&display=swap');

body {
  margin: 0;
  background: #f3f4f7;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1a1a1a;
}

/* For login screen */
body.centered {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 100vh !important;
  padding: 20px;
}

/* ==========================================================
   TOP BAR
   ========================================================== */
.top-bar {
  padding: 10px 20px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo-small {
  width: 120px;
  height: auto;
  cursor: pointer;
}

.logo-login {
  width: 220px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto 20px auto !important;
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */
.wrap > h1 {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  color: #002244;
  margin-bottom: 25px;
  letter-spacing: -0.01em;
}

#videoTitle {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  color: #002244;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.wrap-small h1 {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  color: #002244;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  text-align: center;
}

/* ==========================================================
   LINKS
   ========================================================== */
.link {
  color: #002244;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 12px;
  font-weight: bold;
}

/* ==========================================================
   ADMIN DASHBOARD
   ========================================================== */
.section-header {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  color: #002244;
  margin: 30px 0 20px 0;
  letter-spacing: -0.01em;
  border-bottom: 3px solid #69BE28;
  padding-bottom: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.admin-card {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #69BE28;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.admin-card-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.admin-card-content {
  flex: 1;
}

.admin-card h3 {
  margin: 0 0 2px 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Roboto Condensed', sans-serif;
  color: #0f172a;
}

.admin-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.table-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.9rem;
}

th, td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

tbody tr {
  transition: background-color 0.15s ease;
}

tbody tr:hover {
  background-color: #f9fafb;
}

tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  
  .table-container {
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    font-size: 0.8rem;
    min-width: 650px;
  }
  
  th, td {
    padding: 10px 8px;
  }
  
  th {
    font-size: 0.7rem;
  }
  
  .btn-wrap {
    font-size: 0.7rem !important;
    padding: 6px 8px !important;
    min-width: 60px;
  }
  
  .admin-card {
    padding: 12px 14px;
  }
  
  .admin-card-icon {
    font-size: 22px;
  }
  
  .admin-card h3 {
    font-size: 0.9rem;
  }
  
  .admin-card p {
    font-size: 0.75rem;
  }
  
  .section-header {
    font-size: 1.25rem;
  }
}

/* ==========================================================
   PROGRESS BAR
   ========================================================== */
.progress-dashboard {
  margin: 20px 0;
  padding: 25px;
  background: linear-gradient(135deg, #002244 0%, #003366 100%);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 34, 68, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.progress-rings-group {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.progress-ring-container {
  position: relative;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 8;
}

.progress-ring-circle {
  fill: none;
  stroke: #ffffff;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 263.9;
  stroke-dashoffset: 263.9;
  transition: stroke-dashoffset 0.8s ease;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.progress-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-value {
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 2px;
}

.progress-label {
  font-size: 9px;
.welcome-section {
  text-align: left;
  padding-left: 10px;
}

.progress-dashboard .welcome-text {
  font-size: 24px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 400 !important;
  margin-bottom: 8px;
}

.progress-dashboard .welcome-name {
  font-size: 42px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .progress-dashboard {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 25px;
  }
  
  .progress-rings-group {
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  .progress-ring-container {
    transform: scale(0.75);
  }
  
  .welcome-section {
    text-align: center;
    padding-left: 0;
  }
  
  .welcome-text {
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  .welcome-name {
    font-size: 32px !important;
    color: #ffffff !important;
  }
}



/* ==========================================================
   MESSAGE STYLES
   ========================================================== */
.msg {
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.msg.error {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.msg.success {
  background-color: #efe;
  color: #3c3;
  border: 1px solid #cfc;
}

/* ==========================================================
   QUIZ STYLES
   ========================================================== */
.quiz-question {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}

.quiz-question h3 {
  margin-top: 0;
  color: #1e293b;
}

.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-choices label {
  padding: 12px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-choices label:hover {
  background: #f1f5f9;
  border-color: #2c66c3;
}

.quiz-choices input[type="radio"] {
  margin-right: 10px;
}

.quiz-summary {
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 20px;
}

.quiz-complete {
  text-align: center;
  padding: 30px;
}

.quiz-complete h2 {
  color: #059669;
  margin-bottom: 16px;
}

.quiz-retry {
  text-align: center;
  padding: 30px;
}

.quiz-retry h2 {
  color: #dc2626;
  margin-bottom: 16px;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.quiz-progress {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.small-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.small-table th,
.small-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.small-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.pass {
  color: #059669;
  font-weight: 600;
}

.fail {
  color: #dc2626;
  font-weight: 600;
}

/* ==========================================================
   WRAPPERS (Cards)
   ========================================================== */
.wrap {
  max-width: 900px;
  margin: 24px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.wrap-small {
  max-width: 380px;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  text-align: center;
}

/* Login card — labels & inputs left aligned */
.wrap-small label {
  text-align: left !important;
}
.wrap-small input,
.wrap-small select {
  text-align: left !important;
}

/* ==========================================================
   FORM INPUTS
   ========================================================== */
label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  color: #002244;
}

input, select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-top: 4px;
  border: 1px solid #ccd;
  border-radius: 8px;
  font-size: 15px;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
button {
  padding: 10px 14px;
  background: #69BE28;
  color: white;
  border: none;
  border-radius: 8px;
  margin-top: 16px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background .2s;
}

button:hover {
  background: #5aa522;
}
button:disabled {
  background: #9cb4dc !important;
  cursor: not-allowed !important;
}

.btn-primary { background: #002244 !important; }
.btn-secondary { background: #9ca3af !important; color: #111 !important; }
.btn-small { padding: 6px 10px !important; font-size: 0.8rem !important; }

.btn-wrap {
  white-space: normal !important;
  min-width: 75px;
  line-height: 1.3;
  padding: 8px 10px !important;
}

/* ==========================================================
   SUCCESS BOX
   ========================================================== */
.success {
  margin-top: 16px;
  padding: 12px;
  background: #e7f9ee;
  color: #0c5831;
  border-radius: 8px;
  display: none;
}

/* ==========================================================
   VIDEO PLAYER
   ========================================================== */
.player-wrap {
  margin-top: 18px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
#player {
  width: 100%;
  height: 520px;
}

/* ==========================================================
   PROGRESS BAR
   ========================================================== */
#progressBar {
  height: 16px;
  background: #d9dce2;
  border-radius: 8px;
  margin-top: 12px;
}
#progressFill {
  height: 100%;
  width: 0%;
  background: #129e4a;
  border-radius: 8px;
  transition: width .2s;
}

/* ==========================================================
   ADMIN TABLE
   ========================================================== */
/* ==========================================================
   QUIZ — **FINAL CORRECT WORKING VERSION**
   ========================================================== */

.quiz-card {
  margin-top: 20px;
  padding: 20px;
  background: #f3f4f6;
  border-radius: 10px;
}

.quiz-answers {
  display: block !important;
  margin-top: 15px;
}

/* FULLY FIXED — clean, correct, no duplicates */
.quiz-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;

  width: 100% !important;
  box-sizing: border-box !important;

  padding: 12px 16px;
  gap: 0 !important;

  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.quiz-option input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 12px 0 0 !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  transform: none !important;
}

.quiz-option span {
  font-size: 1.05rem;
  color: #111;
  flex: 1 !important;
  text-align: left !important;
  line-height: 1.5;
  font-weight: normal !important;
}

.quiz-option .feedback-icon {
  font-size: 1.4rem;
  font-weight: bold;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Correct answer feedback */
.quiz-option.correct {
  background: #d1fae5 !important;
  border-color: #10b981 !important;
}

.quiz-option.correct .feedback-icon {
  color: #059669;
}

/* Incorrect answer feedback */
.quiz-option.incorrect {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
}

.quiz-option.incorrect .feedback-icon {
  color: #dc2626;
}

/* Hover */
.quiz-option:hover {
  border-color: #002244;
  background: #e6f2ff;
}

.quiz-option.correct:hover {
  background: #d1fae5 !important;
}

.quiz-option.incorrect:hover {
  background: #fee2e2 !important;
}

/* ==========================================================
   ADMIN MODAL
   ========================================================== */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.quiz-panel {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 95%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

/* ==========================================================
   MOBILE
   ========================================================== */
@media(max-width: 600px) {
  #player { height: 230px !important; }
  .wrap { 
    padding: 15px;
    margin: 12px auto;
  }
  .quiz-card { padding: 15px; }
  .video-grid { grid-template-columns: 1fr !important; }
  
  /* Better spacing on mobile */
  h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  
  .wrap > h1 {
    font-size: 1.75rem;
  }
  
  /* Larger touch targets */
  .btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    min-height: 44px;
  }
  
  /* Stack progress info vertically on small screens */
  .progress-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  /* Better video card layout */
  .video-card {
    margin-bottom: 16px;
  }
  
  /* Improve top bar spacing */
  .top-bar {
    padding: 6px 10px;
  }
  
  .logo-small {
    width: 60px;
  }
  
  .link {
    padding: 4px 6px;
    font-size: 12px;
    margin-left: 6px;
  }
  
  #videoTitle {
    font-size: 1.1rem;
  }
  
  .video-card-header h3 {
    font-size: 0.85rem;
  }
}

/* ==========================================================
   VIDEO DASHBOARD GRID
   ========================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.video-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #69BE28;
}

.video-card-header {
  padding: 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.video-card-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Roboto Condensed', sans-serif;
  color: #0f172a;
  flex: 1;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  white-space: nowrap;
}

.status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.video-card-body {
  padding: 0;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #69BE28;
  transition: all 0.3s ease;
}

.video-card:hover .play-overlay {
  background: #69BE28;
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 16px;
}

.quiz-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.quiz-badge.passed {
  background: #e6f7e6;
  color: #69BE28;
}

.completion-text {
  margin: 8px 0 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ==========================================================
   TIMECLOCK SECTION
   ========================================================== */
.timeclock-section {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.timeclock-status {
  background: #f3f4f7;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  margin-top: 20px;
}

.status-text {
  font-size: 16px;
  color: #002244;
  font-weight: 600;
  margin-bottom: 5px;
}

.status-time {
  font-size: 14px;
  color: #6b7280;
}

.timeclock-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.timeclock-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.timeclock-btn .btn-icon {
  font-size: 18px;
}

.timeclock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.timeclock-btn:active {
  transform: translateY(0);
}

.clock-in {
  background: #69BE28;
  color: white;
}

.clock-in:hover {
  background: #5aa522;
}

.clock-out {
  background: #2c66c3;
  color: white;
}

.clock-out:hover {
  background: #1e4a8a;
}

.meal-start {
  background: #69BE28;
  color: white;
}

.meal-start:hover {
  background: #5aa522;
}

.meal-end {
  background: #2c66c3;
  color: white;
}

.meal-end:hover {
  background: #1e4a8a;
}

.timeclock-link {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 600px) {
  .timeclock-buttons {
    grid-template-columns: 1fr 1fr;
  }
  
  .timeclock-section {
    padding: 15px;
  }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.site-footer a {
  color: #69BE28;
  text-decoration: none;
  margin: 0 5px;
  cursor: pointer;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-divider {
  margin: 0 10px;
  color: #d1d5db;
}

/* ==========================================================
   GENERIC MODAL STYLES
   ========================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex !important;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-header {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Feedback Modal */
.feedback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.feedback-modal.active {
  display: flex;
}

.feedback-modal-content {
  background: white;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.feedback-modal h2 {
  margin: 0 0 20px 0;
  color: #111827;
  font-size: 24px;
}

.feedback-modal label {
  display: block;
  margin: 15px 0 5px 0;
  font-weight: 600;
  color: #374151;
}

.feedback-modal select,
.feedback-modal textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.feedback-modal textarea {
  min-height: 120px;
  resize: vertical;
}

.feedback-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.feedback-modal-buttons button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-submit {
  background: #69BE28;
  color: white;
}

.feedback-submit:hover {
  background: #5aa922;
}

.feedback-cancel {
  background: #e5e7eb;
  color: #374151;
}

.feedback-cancel:hover {
  background: #d1d5db;
}

/* Policy Item Styles */
.policy-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.policy-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.policy-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.policy-item-number {
  font-weight: 700;
  color: #002244;
  font-size: 14px;
  margin-right: 12px;
  min-width: 40px;
}

.policy-item-title {
  font-size: 15px;
  color: #1e293b;
  font-weight: 500;
}

.policy-item-category {
  font-size: 13px;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

/* Close button for modals */
.close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close:hover {
  color: #475569;
}

/* Collapse Icon */
.collapse-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 24px;
  font-size: 32px;
  font-weight: 900;
  color: #002244;
  line-height: 1;
  transition: all 0.2s;
}

.section-title:hover .collapse-icon {
  color: #1e3a8a;
}

