/* Dark blue professional theme */
:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #1e3a8a;
  --primary-600: #1e40af;
  --success: #16a34a;
  --success-600: #15803d;
  --danger: #ef4444;
  --danger-600: #dc2626;
  --warning: #f59e0b;
  --border: #e2e8f0;
  --ring: rgba(30,58,138,0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

h1, h2, h3 { margin: 0 0 16px; font-weight: 700; letter-spacing: 0.2px; }
p { margin: 0 0 12px; color: var(--muted); }

.container { max-width: 1100px; margin: 48px auto; padding: 0 20px; }

/* Upload page specific styles */
.upload-container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 16px;
}

.logo-section {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 20px;
}

.school-logo {
  max-height: 80px;
  max-width: 300px;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Hide logo if image fails to load */
.school-logo[src=""], .school-logo:not([src]) {
  display: none;
}

.upload-header {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.upload-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  color: #111827;
}

.student-info {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-info-icon {
  font-size: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.06);
}
.panel-body { padding: 28px; }
.panel-body.scrollable-small { max-height: 380px; overflow-y: auto; }
.panel-body.scrollable-tall { max-height: 600px; overflow-y: auto; }

/* Attachment / image picker enhancements */
.file-drop-zone { border:2px dashed var(--border); padding:16px; border-radius:12px; text-align:center; background:#f8fafc; cursor:pointer; transition:border-color .2s, background .2s; }
.file-drop-zone.dragover { border-color: var(--primary); background:#eef2ff; }
.image-attachment-grid { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
.image-attachment { position:relative; width:120px; height:120px; border:1px solid var(--border); border-radius:10px; overflow:hidden; background:#fff; display:flex; align-items:center; justify-content:center; }
.image-attachment img { max-width:100%; max-height:100%; display:block; }
.image-attachment button { position:absolute; top:4px; right:4px; background:rgba(0,0,0,0.55); color:#fff; border:none; border-radius:6px; padding:2px 6px; font-size:11px; cursor:pointer; }
.image-attachment button:hover { background:rgba(0,0,0,0.75); }

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

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.label { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  transition: box-shadow .2s, border-color .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.textarea { min-height: 100px; resize: vertical; }

.button { 
  appearance: none; border: none; cursor: pointer;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 16px;
  transition: transform .02s ease, background .2s ease, box-shadow .2s ease;
  display: inline-block; text-align: center; text-decoration: none;
  white-space: nowrap;
}
.button .icon{ display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; margin-right:8px; }
.button .icon svg{ width:16px; height:16px; display:block; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-600); }
.button-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.button-outline:hover { background: rgba(14,165,233,0.1); }
.button-muted { background: #f1f5f9; color: var(--text); border: 1px solid var(--border); }
.button-muted:hover { background: #e2e8f0; }

.section { margin-bottom: 28px; }
.section h2 { font-size: 18px; color: var(--text); }
.section .desc { font-size: 14px; color: var(--muted); margin-top: -8px; margin-bottom: 12px; }

/* Flash messages */
.flashes { margin-bottom: 16px; }
.flash { margin-bottom: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); }
.flash-success { background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }
.flash-info { background:#eff6ff; border-color:#bfdbfe; color:#1e3a8a; }
.flash-danger, .flash-error { background:#fef2f2; border-color:#fecaca; color:#7f1d1d; }
.flash-warning { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.flash-default { background:#f1f5f9; border-color:#e2e8f0; color:#0f172a; }

/* Enhanced professional flash messages */
.flash-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #16a34a;
    border-left: 4px solid #16a34a;
    color: #15803d;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
}

.flash-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    color: #d97706;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.flash-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
    border-left: 4px solid #ef4444;
    color: #dc2626;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
}

.flash-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #3b82f6;
    border-left: 4px solid #3b82f6;
    color: #2563eb;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Supporting docs */
.supporting-docs-section { background:#fff; border:1px solid var(--border); border-radius: 14px; padding: 24px; }
.supporting-docs-section h2 { border-bottom: 1px dashed var(--border); padding-bottom: 10px; margin-bottom: 16px; }
.supporting-docs-section .file-info { color: var(--muted); font-size: 14px; margin-top: 4px; }
.supporting-docs-section .form-group { margin-bottom: 16px; }
.supporting-docs-section .form-group:last-child { margin-bottom: 0; }
.supporting-docs-section label { font-weight: 600; margin-bottom: 6px; display: block; color: var(--text); }
.supporting-docs-section input[type="file"] { margin-bottom: 4px; }

/* Utility */
.mt-2{margin-top:8px} .mt-3{margin-top:12px} .mt-4{margin-top:16px} .mt-6{margin-top:24px}
.mb-2{margin-bottom:8px} .mb-3{margin-bottom:12px} .mb-4{margin-bottom:16px} .mb-6{margin-bottom:24px}
.mb-1{margin-bottom:4px} 
.flex{display:flex} .items-center{align-items:center} .justify-between{justify-content:space-between} .gap-2{gap:8px} .gap-3{gap:12px}
.badge { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; background:#f1f5f9; color:var(--muted); border:1px solid var(--border); }
.badge-success { background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }
.badge-danger { background:#fef2f2; border-color:#fecaca; color:#7f1d1d; }
.badge-warning { background:#fefce8; border-color:#fde68a; color:#92400e; }
.badge-primary { background:#eff6ff; border-color:#bfdbfe; color:#1e40af; }
.badge-secondary { background:#f8fafc; border-color:#e2e8f0; color:#475569; }
.note { color: var(--muted); font-size: 13px; }

/* Verified email banner */
.banner { background:#eff6ff; border:1px solid #bfdbfe; color:#1e3a8a; padding:12px 16px; border-radius: 12px; }
.banner a { color: var(--primary-600); text-decoration: none; font-weight: 700; }
.banner a:hover { text-decoration: underline; }

/* Tables */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(2,8,23,0.06);
}
.table th, .table td { padding: 14px 16px; text-align: left; }
.table thead th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.table tbody tr + tr td { border-top: 1px solid var(--border); }
/* Improve action button alignment and spacing in table cells */
.table td { vertical-align: middle; }
.table td form { display: inline-block; margin: 0; }
.table td .button { margin-right: 8px; margin-bottom: 8px; min-width: 120px; }
.table td .button:last-child { margin-right: 0; }

/* Accessible focus ring for buttons */
.button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }

/* Avatars */
.avatar { width: 44px; height: 44px; border-radius: 999px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); background:#f1f5f9; font-weight:700; color: var(--muted); }
.avatar.male { background:#e0f2fe; color:#075985; }
.avatar.female { background:#fde2e8; color:#9d174d; }

/* Button variants */
.button-success { background: var(--success); color:#fff; }
.button-success:hover { background: var(--success-600); }
.button-danger { background: var(--danger); color:#fff; }
.button-danger:hover { background: var(--danger-600); }
.button-warning { background: var(--warning); color:#fff; }
.button-warning:hover { background: #d97706; }
.button-info { background: #0ea5e9; color:#fff; }
.button-info:hover { background: #0284c7; }
.button-secondary { background: #6b7280; color:#fff; }
.button-secondary:hover { background: #4b5563; }

/* Form layout (compat with existing templates) */
.form-section { margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.required-asterisk { color: var(--danger); font-weight: 700; margin-left: 4px; }

/* Generic form controls inside panels */
.panel-body form label { font-weight: 600; color: var(--text); }
.panel-body form input[type="text"],
.panel-body form input[type="email"],
.panel-body form input[type="number"],
.panel-body form input[type="date"],
.panel-body form input[type="tel"],
.panel-body form select,
.panel-body form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  transition: box-shadow .2s, border-color .2s;
}
.panel-body form input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #fff;
}
.panel-body form input:focus,
.panel-body form select:focus,
.panel-body form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.panel-body form textarea { min-height: 110px; resize: vertical; }
.panel-body form input[type="submit"] {
  appearance: none;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.panel-body form input[type="submit"]:hover { background: var(--primary-600); }

/* Utilities */
.w-full { width: 100%; }

/* Errors */
.error { color: var(--danger-600); font-size: 14px; margin-top: 4px; }

/* Responsive actions: inline on desktop, dropdown on small screens */
.actions-inline { display: inline-block; }
.actions-dropdown { display: none; position: relative; }
/* actions-toggle uses existing .button .button-muted classes in markup */
.menu { position: absolute; right: 0; top: 100%; margin-top: 6px; background:#fff; border:1px solid var(--border); border-radius: 10px; min-width: 220px; box-shadow: 0 10px 30px rgba(2,8,23,0.12); z-index: 10; display:none; }
.menu.open { display:block; }
.menu a, .menu button { display:flex; align-items:center; gap:10px; width:100%; padding:10px 12px; background:#fff; border:none; color:var(--text); text-decoration:none; cursor:pointer; }
.menu a:hover, .menu button:hover { background:#f8fafc; }
.menu .icon { margin-right: 6px; }

@media (max-width: 720px) {
  .table td .button { min-width: 0; }
  .actions-inline { display: none; }
  .actions-dropdown { display: inline-block; }
}

/* Print-friendly styles for regular pages */
@media print {
  body { 
    background: white !important;
    color: black !important;
  }
  .button { 
    color: black !important;
    border: 1px solid black !important;
    background: white !important;
  }
  .panel { 
    border: 1px solid black !important;
    box-shadow: none !important;
  }
  .table th, .table td { 
    border: 1px solid black !important;
  }
  /* Hide interactive elements when printing */
  .actions-inline, .actions-dropdown, 
  button:not(.print-button),
  .button[href*="upload"], 
  .button[href*="edit"],
  .button[href*="send"] {
    display: none !important;
  }
}

/* Delete button styling handled by main button variants above */

/* Delete modal styling */
#deleteModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

#deleteModal > div {
  background: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#deleteModal .modal-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

#deleteModal .modal-header h3 {
  margin: 0;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 8px;
}

#deleteModal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

#deleteModal input[type="text"] {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#deleteModal input[type="text"]:focus {
  border-color: var(--danger);
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* Delete modal responsive design */
@media (max-width: 600px) {
  #deleteModal > div {
    margin: 5% auto;
    width: 95% !important;
    max-width: none !important;
  }
  
  #deleteModal .modal-footer {
    flex-direction: column;
    gap: 8px;
  }
  
  #deleteModal .modal-footer button {
    width: 100%;
  }
}

/* Document Upload Styling */
.document-section {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.section-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.section-header.administrator {
  background: var(--primary);
  color: white;
}

.section-header.required {
  background: var(--primary);
  color: white;
}

.section-header.optional {
  background: var(--primary);
  color: white;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.section-icon {
  font-size: 16px;
}

.header-content h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.section-count {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

.section-description {
  font-size: 13px;
  opacity: 0.85;
  margin: 0;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  padding: 16px;
}

.document-card {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 14px;
  background: #fff;
}

.document-card.administrator {
  border-left: 3px solid var(--primary);
}

.document-card.required {
  border-left: 3px solid var(--primary);
}

.document-card.optional {
  border-left: 3px solid var(--primary);
}

.document-card.uploaded {
  background: #f0f9f0;
  border-color: #16a34a;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 400;
}

.status-indicator.uploaded {
  background: #d4edda;
  color: #155724;
}

.status-indicator.required {
  background: #f8d7da;
  color: #721c24;
}

.status-indicator.optional {
  background: #e2e3e5;
  color: #383d41;
}

.status-icon {
  font-size: 14px;
}

.document-title {
  margin: 6px 0 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
}

.uploaded-file-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.file-details {
  margin-bottom: 8px;
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.file-meta {
  font-size: 12px;
  color: var(--muted);
}

.file-actions {
  text-align: right;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-download:hover {
  background: var(--primary-600);
  color: white;
}

.replace-controls {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 12px;
}

.replace-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 8px;
}

.replace-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.checkmark {
  margin-left: 4px;
}

.replace-upload {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
}

.upload-warning {
  font-size: 12px;
  color: #92400e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.upload-area {
  background: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 4px;
  padding: 12px;
  text-align: center;
}

.upload-area.required {
  border-color: #dc3545;
  background: #f8f9fa;
}

.requirement-notice, .optional-notice {
  font-size: 12px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.requirement-notice {
  background: #fee2e2;
  color: #dc2626;
}

.optional-notice {
  background: #eff6ff;
  color: #1d4ed8;
}

.file-input-container {
  position: relative;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 400;
}

.file-input-label:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.upload-icon {
  font-size: 16px;
}

.upload-text {
  font-size: 14px;
}

.upload-guidelines {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.guidelines-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.guidelines-icon {
  font-size: 18px;
  color: var(--primary);
}

.guidelines-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.guideline-icon {
  font-size: 16px;
  color: var(--primary);
  margin-top: 2px;
}

.guideline-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.guideline-content span {
  font-size: 13px;
  color: var(--muted);
}

.submit-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.btn-submit:hover {
  background: #0056b3;
}

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

.submit-info {
  margin-top: 16px;
}

.security-notice {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.submit-hint {
  font-size: 14px;
  color: var(--muted);
}

.contact-section {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.contact-section h4 {
  margin: 0 0 12px 0;
  color: var(--primary);
  font-size: 16px;
}

.contact-info {
  color: var(--muted);
  line-height: 1.6;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.footer-section {
  background: var(--primary);
  color: white;
  padding: 16px;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 20px;
}

.footer-content {
  margin: 0;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
}

.footer-content a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* Daily Care Options Styling */
.care-description {
  margin-top: 8px !important;
  padding: 12px !important;
  background: #f8fafc !important;
  border-radius: 6px !important;
  font-size: 0.9rem !important;
  color: #4b5563 !important;
  border-left: 3px solid var(--primary) !important;
  line-height: 1.5 !important;
}

.care-description strong {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.lunch-info {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* Information box styling for care programs */
.care-info-box {
  margin-bottom: 24px !important;
  color: var(--primary) !important;
  background: #f0f7ff !important;
  padding: 16px !important;
  border-radius: 8px !important;
  border-left: 4px solid var(--primary) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.care-info-box strong {
  font-weight: 600 !important;
  color: var(--primary) !important;
}

/* Admin Actions Section */
.admin-actions-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 4px 12px rgba(2, 8, 23, 0.06);
}

.action-row {
  margin-bottom: 24px;
}

.action-row:last-child {
  margin-bottom: 0;
}

.action-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.action-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.action-group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 140px;
  justify-content: center;
}

.admin-action-btn svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.admin-action-btn span {
  font-size: 14px;
}

/* Admin Action Button Variants */
.admin-action-back {
  background: var(--panel);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
  width: fit-content;
}

.admin-action-back:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.admin-action-primary {
  background: var(--primary);
  color: #fff;
}

.admin-action-primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.admin-action-success {
  background: var(--success);
  color: #fff;
}

.admin-action-success:hover {
  background: var(--success-600);
  transform: translateY(-1px);
}

.admin-action-warning {
  background: var(--warning);
  color: #fff;
}

.admin-action-warning:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.admin-action-danger {
  background: var(--danger);
  color: #fff;
}

.admin-action-danger:hover {
  background: var(--danger-600);
  transform: translateY(-1px);
}

.admin-action-info {
  background: #0ea5e9;
  color: #fff;
}

.admin-action-info:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.admin-action-secondary {
  background: #6b7280;
  color: #fff;
}

.admin-action-secondary:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

.admin-action-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.admin-action-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.admin-action-muted {
  background: #f1f5f9;
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: default;
}

/* Hide the old actions-inline on desktop when admin-actions-section is shown */
.admin-actions-section ~ .actions-inline {
  display: none;
}

/* Student Status Badges */
.student-status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-approved {
  background: #dcfce7;
  color: #166534;
}

.status-rejected {
  background: #fecaca;
  color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .document-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  .guidelines-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .section-count {
    margin-left: 0;
  }
  
  /* Mobile admin actions */
  .admin-actions-section {
    display: none;
  }
  
  .admin-actions-section ~ .actions-inline {
    display: inline-block !important;
  }
  
  .action-group-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-action-btn {
    min-width: auto;
    width: 100%;
    justify-content: flex-start;
  }
}
