/* Swimming Academy Dashboards - base stylesheet */
/* Minimal styles to ensure asset loads without 404 */

/* Layout tweaks */
.sad-container { box-sizing: border-box; background: #F4F7F9; padding: 32px 32px; }
.sad-loading { color: #555; font-style: italic; }

.sad-student-profile { display: flex; flex-direction: column; gap: 16px; }
.sad-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sad-breadcrumb a { color: #4A90E2; text-decoration: none; }
.sad-breadcrumb span { color: #979ca5; }
.sad-profile-grid { display: flex; flex-direction: column; gap: 32px; }
.sad-profile-grid-lg { display: grid; grid-template-columns: 320px 1fr; gap: 32px; }
.sad-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(17,24,39,0.06); }
.sad-card.dark { background: #1F2937; border-color: #374151; }
.sad-profile-summary { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.sad-avatar { width: 112px; height: 112px; border-radius: 9999px; background: #e5e7eb; overflow: hidden; position: relative; }
.sad-avatar-ring { box-shadow: 0 0 0 4px rgba(74,144,226,0.2); border-radius: 9999px; }
.sad-profile-name { font-size: 20px; font-weight: 700; color: #111827; }
.sad-profile-name { font-size: 24px; font-weight: 700; color: #111827; }
.sad-profile-id { font-size: 13px; color: #979ca5; }
.sad-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sad-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 9999px; }
.sad-badge.success { color: #065f46; background: rgba(126,211,33,0.2); }
.sad-badge.primary { color: #4A90E2; background: rgba(74,144,226,0.15); }
.sad-info-list { display: flex; flex-direction: column; gap: 16px; width: 100%; font-size: 14px; }
.sad-info-item { display: flex; align-items: center; gap: 10px; color: #374151; }
.sad-actions-vertical { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.sad-btn-solid { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px; background: #4A90E2; color: #ffffff; font-weight: 700; border: none; cursor: pointer; }
.sad-btn-solid:hover { opacity: 0.9; }
.sad-btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px; background: rgba(74,144,226,0.15); color: #4A90E2; font-weight: 700; border: none; cursor: pointer; }
.sad-btn-ghost:hover { background: rgba(74,144,226,0.25); }
.sad-page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sad-page-title { font-size: 30px; font-weight: 900; color: #111827; }
.sad-page-subtitle { font-size: 14px; color: #979ca5; }
.sad-tabbar { display: flex; gap: 16px; border-bottom: 1px solid #e5e7eb; }
.sad-tabbar .sad-tab-link { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 16px; font-weight: 700; color: #979ca5; text-decoration: none; border-bottom: 3px solid transparent; letter-spacing: 0.015em; }
.sad-tabbar .sad-tab-link.active { color: #4A90E2; border-bottom-color: #4A90E2; }
.sad-section { display: flex; flex-direction: column; gap: 16px; }
.sad-section h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px; line-height: 1.25; }
.sad-section .sad-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.sad-detail-item { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.sad-detail-item .label { color: #979ca5; font-weight: 600; }
.sad-detail-item .value { color: #111827; }
.sad-alert-danger { border-radius: 16px; }
.sad-alert-danger h2 { color: #D0021B; }
.sad-payments-list { display: flex; flex-direction: column; }
.sad-payment-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.sad-payment-row:last-child { border-bottom: none; }
.sad-profile-aside { position: sticky; top: 32px; }
.sad-class-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sad-class-tag { display: inline-flex; padding: 4px 8px; font-size: 12px; border: 1px solid #c7d2fe; border-radius: 6px; background: #eef2ff; color: #3730a3; }
.sad-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: #E53C00;
    color: #ffffff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    margin: 20px 0;
    text-decoration: none;
}
.sad-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: #555;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.sad-btn-ghost:hover { background: #666; }
.sad-tabbar .sad-tab-link.active { color: #0198A6; border-bottom-color: #0198A6; }
.sad-tabbar { display: flex; gap: 16px; border-bottom: 1px solid #e5e7eb; margin-bottom: 20px; }
div#sad-panel-profile > div.sad-section { margin: 20px; }
.sad-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1000; align-items: center; justify-content: center; }
.sad-modal.open { display: flex; }
.sad-modal-content { background: #fff; border-radius: 8px; width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.sad-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid #e5e7eb; }
.sad-modal-body { padding: 20px; }
.sad-modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px; border-top: 1px solid #e5e7eb; }

/* Edit Student Profile form styling to match dashboard */
.sad-form-section { margin-bottom: 20px; }
.sad-form-section h4 { margin: 0 0 12px 0; font-size: 16px; font-weight: 700; color: #1f2937; border-bottom: 2px solid #e5e7eb; padding-bottom: 6px; }
.sad-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sad-form-group label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.sad-form-group input,
.sad-form-group select,
.sad-form-group textarea { width: 90%; height: auto; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #ffffff; color: #0f172a; font-size: 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; margin-bottom: 20px; }
.sad-form-group textarea { min-height: 80px; }
form#student-edit-form { padding: 10px; }
.sad-form-group input:focus,
.sad-form-group select:focus,
.sad-form-group textarea:focus { border-color: #0198A6; box-shadow: 0 0 0 2px rgba(1,152,166,.15); }

/* Buttons alignment with dashboard */
.sad-btn-solid { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px; background: #E53C00; color: #ffffff; font-weight: 700; border: none; cursor: pointer; margin: 0; text-decoration: none; }
.sad-btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px; background: #555; color: #fff; font-weight: 600; border: none; cursor: pointer; text-decoration: none; }
.sad-btn-ghost:hover { background: #666; }

@media (max-width: 768px) {
  .sad-modal-content { width: 95%; max-width: 640px; }
  .sad-form-row { grid-template-columns: 1fr; }
}

.sad-container { box-sizing: border-box; background: transparent; padding: 32px 32px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sad-profile-grid-lg { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.sad-profile-grid-lg { gap: 70px; }
.sad-profile-aside { width: 100%; }
@media (max-width: 1024px) {
  .sad-profile-grid-lg { grid-template-columns: 1fr; }
  .sad-profile-aside { position: static !important; top: auto; margin-bottom: 16px; }
  .sad-profile-aside, .sad-profile-grid-lg > .sad-card { width: 100%; box-sizing: border-box; }
  .sad-profile-grid-lg { gap: 30px; }
}
@media (max-width: 768px) {
  .sad-profile-grid-lg { grid-template-columns: 1fr; }
  .sad-page-header { flex-direction: column; gap: 12px; }
  .sad-tabbar { flex-wrap: wrap; }
  .sad-profile-aside { position: static !important; top: auto; margin-bottom: 12px; }
  .sad-profile-grid-lg .sad-card { padding: 12px; margin: 0; }
  div#sad-panel-profile > div.sad-section { margin: 12px; }
  .sad-profile-aside, .sad-profile-grid-lg > .sad-card { width: 100%; box-sizing: border-box; }
  .sad-profile-grid-lg { gap: 30px; }
}
.mobile-menu-toggle { background: transparent !important; }
.sad-profile-aside .sad-actions-vertical .sad-btn-solid { margin-top: 20px; }

/* Teacher/Admin Schedule essentials (fallback to ensure UI even if branch-admin.css isn't loaded) */
.sad-schedule-section { display: flex; flex-direction: column; gap: 18px; }
.sad-schedule-section .sad-section-header { display: flex; align-items: center; justify-content: space-between; }
.sad-schedule-section .sad-section-header h2 { margin: 0; font-size: 20px; font-weight: 600; color: #1e293b; }
.sad-schedule-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.sad-schedule-filters .sad-filter-group label { display: block; font-size: 12px; color: #475569; margin-bottom: 6px; }
.sad-schedule-filters .sad-filter-group select, .sad-schedule-filters .sad-filter-group input { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #0f172a; }
.sad-schedule-container { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.sad-monthly-schedule-header { display: flex; align-items: center; justify-content: space-between; }
.sad-monthly-schedule-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #1e293b; }
.sad-schedule-header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 30px; }
.sad-nav-btn { border: 1px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.sad-nav-btn:hover { background: #f8fafc; }
.sad-table-container { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
.sad-table-wrapper { overflow-x: auto; }
.sad-table { width: 100%; border-collapse: collapse; }
.sad-table th { text-align: left; padding: 12px 14px; font-weight: 600; font-size: 13px; color: #334155; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.sad-table td { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; vertical-align: top; font-size: 13px; color: #0f172a; }
.sad-table tr:hover td { background: #f8fafc; }
.sad-daily-slot { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 8px; background: #fff; }
.sad-no-classes { color: #64748b; font-size: 12px; }

/* DataTables visibility overrides */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_info {
  color: #1f2937;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.dataTables_wrapper .dataTables_filter input::placeholder {
  color: #64748b;
}
.dataTables_wrapper .dataTables_paginate a,
.dataTables_wrapper .dataTables_paginate span {
  color: #1f2937;
}
/* Premium table styling */
.sad-table { border-radius: 10px; overflow: hidden; }
.sad-table thead th { background: linear-gradient(180deg,#fafafa, #f3f4f6); border-bottom-color: #e5e7eb; }
.sad-table tbody tr { transition: background .15s ease; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { display:flex; align-items:center; gap:10px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 10px; margin: 0 2px; color: #334155 !important; background: #fff; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background:#f1f5f9; border-color:#cbd5e1; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background:#f8fafc; }
.dataTables_wrapper .dataTables_length label, .dataTables_wrapper .dataTables_filter label { font-weight:600; }

/* Attendees list styling */
.sad-att-list li { color: #111827; font-weight: 500; }
.sad-att-list .sad-badge-trial { display:inline-block; margin-left:8px; padding:2px 6px; font-size:11px; border-radius:999px; background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; }
/* Teal button for View attendees */
.sad-btn-teal { background: #0198A6; color: #fff; border: 1px solid #0198A6; }
.sad-btn-teal:hover { background: #E53C00; border-color: #E53C00; color: #fff; }

.sad-progress { --bg:#f8fafc; --card:#ffffff; --text:#111827; --muted:#64748b; --border:#e2e8f0; --teal:#019aa7; --teal-600:#018b97; --orange:#E53C00; }
.sad-progress .container { max-width: 64rem; margin: 0 auto; padding: 12px; }
.sad-progress .card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(17,24,39,0.06); padding: 16px; }
.sad-progress .row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.sad-progress .title { margin: 0; font-size: 24px; font-weight: 800; color: var(--text); }
.sad-progress .subtitle { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.sad-progress .badge { color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 8px; display: inline-block; background: #9ca3af; }
.sad-progress .icon-box { padding: 8px; border-radius: 10px; display: grid; place-items: center; }
.sad-progress .icon-teal { background: var(--teal); }
.sad-progress .icon-orange { background: var(--orange); }
.sad-progress .prog-wrap { margin-top: 8px; }
.sad-progress .prog-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.sad-progress .prog-head .count { color: var(--teal-600); font-weight: 800; font-size: 18px; }
.sad-progress .bar { position: relative; height: 12px; background: #f1f5f9; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.sad-progress .bar > .fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.sad-progress .bar .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #374151; }
.sad-progress .grid { display: grid; gap: 12px; }
.sad-progress .grid.cols-1 { grid-template-columns: 1fr; }
.sad-progress .grid.md-cols-2 { grid-template-columns: repeat(2,1fr); }
.sad-progress .grid.lg-cols-3 { grid-template-columns: repeat(3,1fr); }
.sad-progress .skill { position: relative; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 12px; box-shadow: 0 1px 2px rgba(17,24,39,0.06); transition: transform .15s ease, box-shadow .15s ease; }
.sad-progress .skill:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,.06); }
.sad-progress .skill.completed { border-color: #99f6e4; }
.sad-progress .week { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sad-progress .skill.completed .badge { background: var(--teal); }
.sad-progress .status { display: flex; align-items: center; justify-content: space-between; }
.sad-progress .status .txt { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; }
.sad-progress .skill.completed .status .txt { color: var(--teal-600); }
.sad-progress .skill p { margin: 4px 0 8px; font-size: 14px; line-height: 1.25rem; color: #4b5563; }
.sad-progress .skill.completed p { color: #111827; }
.sad-progress .check { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: #f1f5f9; border: 2px solid #d1d5db; }
.sad-progress .skill.completed .check { background: var(--orange); border: none; }
.sad-progress .pending-dot { width: 20px; height: 20px; border-radius: 999px; border: 2px dashed #9ca3af; }
.sad-progress .chev { width: 16px; height: 16px; transition: transform .15s ease; }
.sad-progress .skill:hover .chev { transform: translateX(4px); }
.sad-progress .stats { margin-top: 12px; }
.sad-progress .stat { text-align: center; }
.sad-progress .stat .label { font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.sad-progress .stat .value { font-size: 24px; font-weight: 800; }
.sad-progress .label.teal { color: var(--teal-600); }
.sad-progress .label.orange { color: var(--orange); }
.sad-progress .label.muted { color: var(--muted); }
.sad-progress .mt-1 { margin-top: 4px; }
.sad-progress .mb-1 { margin-bottom: 4px; }
.sad-progress .mb-2 { margin-bottom: 8px; }
.sad-progress .gap-3 { gap: 12px; }
.sad-progress .rounded { border-radius: 10px; }
.sad-progress .w-24 { width: 24px; height: 24px; }
.sad-progress .w-20 { width: 20px; height: 20px; }

.sad-progress .dot-status-passed { background:#16a34a; }
.sad-progress .dot-status-attempted { background:#f59e0b; }
.sad-progress .dot-status-pending { background:#94a3b8; }

@media (min-width:768px){ .sad-progress .grid.md-cols-2{ grid-template-columns:repeat(2,1fr) } }
@media (min-width:1024px){ .sad-progress .grid.lg-cols-3{ grid-template-columns:repeat(3,1fr) } }
