/* ===========================================
   JADWAL LIVE TIKTOK — MAIN CSS
   Sky Blue Gradient Theme
   =========================================== */

:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --sky-800: #075985;
    --sky-900: #0c4a6e;

    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --indigo-500: #6366f1;

    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --green-50: #f0fdf4;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --red-50: #fef2f2;
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --amber-50: #fffbeb;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;

    --sidebar-width: 260px;
    --topbar-height: 60px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1), 0 8px 32px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12), 0 16px 48px rgba(0,0,0,.1);

    --gradient: linear-gradient(135deg, var(--sky-500) 0%, var(--blue-600) 50%, var(--indigo-500) 100%);
    --gradient-light: linear-gradient(135deg, var(--sky-50) 0%, #eff6ff 100%);
    --gradient-card: linear-gradient(135deg, var(--sky-400) 0%, var(--blue-500) 100%);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; }

/* ---- Auth (Login) Page ---- */
.auth-body {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
}
.auth-logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}
.auth-logo p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.auth-card .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all .2s;
    background: var(--white);
    color: var(--gray-800);
}
.auth-card .form-control:focus {
    outline: none;
    border-color: var(--sky-500);
    box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.auth-card .form-control.is-invalid { border-color: var(--red-500); }
.auth-card .invalid-feedback { color: var(--red-500); font-size: 12px; margin-top: 4px; }
.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--gray-600);
}
.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}
.btn-login:hover { opacity: .9; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

/* ---- App Layout ---- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--gray-900);
    background: linear-gradient(180deg, #0f172a 0%, #0c1628 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 16px;
}
.sidebar-logo svg { color: var(--sky-400); flex-shrink: 0; }
.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-xs);
}
.sidebar-close:hover { color: white; background: rgba(255,255,255,.1); }
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    margin: 8px 12px;
    background: rgba(14,165,233,.12);
    border: 1px solid rgba(14,165,233,.2);
    border-radius: var(--radius-sm);
}
.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-role {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 2px;
}
.badge-role-admin { background: rgba(239,68,68,.2); color: #fca5a5; }
.badge-role-talent { background: rgba(14,165,233,.2); color: var(--sky-300); }
.badge-role-absen { background: rgba(245,158,11,.2); color: #fcd34d; }
.badge-role-viewer { background: rgba(99,102,241,.2); color: #a5b4fc; }

.sidebar-nav { padding: 8px 12px; flex: 1; }
.nav-section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-500);
    padding: 12px 8px 4px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-xs);
    color: var(--gray-400);
    font-size: 13.5px;
    font-weight: 500;
    transition: all .15s;
    margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: white; }
.nav-item.active {
    background: var(--gradient);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(14,165,233,.3);
}
.nav-item svg { flex-shrink: 0; }
.sidebar-logout {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--radius-xs);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}
.logout-btn:hover { background: rgba(239,68,68,.2); color: white; }

/* ---- Sidebar Overlay ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ---- Main Content ---- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* ---- Topbar ---- */
.topbar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-xs);
}
.hamburger:hover { background: var(--gray-100); }
.topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    flex: 1;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-user { display: flex; align-items: center; gap: 8px; }
.topbar-name { font-size: 13px; font-weight: 500; color: var(--gray-600); }
.d-none-mobile { display: inline; }

/* ---- Page Content ---- */
.page-content { padding: 24px; flex: 1; }
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
}
.page-header p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ---- Avatar ---- */
.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.avatar-xs {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Stats Cards ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon.blue { background: linear-gradient(135deg, var(--sky-100), var(--sky-200)); color: var(--sky-600); }
.stat-icon.green { background: linear-gradient(135deg, var(--green-50), #dcfce7); color: var(--green-600); }
.stat-icon.amber { background: linear-gradient(135deg, var(--amber-50), #fef3c7); color: var(--amber-500); }
.stat-icon.purple { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: var(--indigo-500); }
.stat-info { min-width: 0; }
.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 3px;
}

/* ---- Cards ---- */
.card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
}
.card-body { padding: 20px; }
.card-gradient {
    background: var(--gradient);
    color: white;
    border: none;
}
.card-gradient .card-title { color: white; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all .2s;
    background: white;
    color: var(--gray-800);
}
.form-control:focus {
    outline: none;
    border-color: var(--sky-500);
    box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-control.is-invalid { border-color: var(--red-500); }
.invalid-feedback { color: var(--red-500); font-size: 12px; margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(14,165,233,.3);
}
.btn-primary:hover { box-shadow: 0 4px 14px rgba(14,165,233,.4); }
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger {
    background: var(--red-500);
    color: white;
}
.btn-danger:hover { background: var(--red-600); }
.btn-success {
    background: var(--green-500);
    color: white;
}
.btn-success:hover { background: var(--green-600); }
.btn-outline {
    background: transparent;
    color: var(--sky-600);
    border: 1.5px solid var(--sky-300);
}
.btn-outline:hover { background: var(--sky-50); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 9px; font-size: 11px; }
.btn-icon { padding: 7px; }

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}
.badge-sky { background: var(--sky-100); color: var(--sky-700); }
.badge-green { background: var(--green-50); color: var(--green-600); }
.badge-red { background: var(--red-50); color: var(--red-600); }
.badge-amber { background: var(--amber-50); color: var(--amber-500); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-indigo { background: #eef2ff; color: var(--indigo-500); }
.badge-appearances {
    background: linear-gradient(135deg, var(--amber-50), #fef3c7);
    color: var(--amber-500);
    font-weight: 700;
    font-size: 11px;
}

/* ---- Tables ---- */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.table th {
    padding: 11px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--sky-50); }
.table-actions { display: flex; gap: 6px; align-items: center; }

/* ---- Alerts ---- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 18px;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--green-50); color: var(--green-600); border: 1px solid #bbf7d0; }
.alert-error { background: var(--red-50); color: var(--red-600); border: 1px solid #fecaca; }
.alert-info { background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--sky-200); }
.alert-warning { background: var(--amber-50); color: var(--amber-500); border: 1px solid #fde68a; }

/* ---- Calendar / Availability Grid ---- */
.availability-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.avail-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    padding: 6px 0;
    text-transform: uppercase;
}
.avail-day-cell {
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    text-align: center;
    transition: all .15s;
    cursor: default;
}
.avail-day-cell.other-month { opacity: .3; }
.avail-day-cell .day-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.avail-day-cell.today .day-num {
    width: 24px;
    height: 24px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 12px;
}
.session-toggles { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
.session-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 3px 4px;
    border-radius: 4px;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-50);
    transition: all .15s;
    min-width: 30px;
}
.session-toggle:hover { border-color: var(--sky-400); }
.session-toggle.active {
    background: var(--sky-50);
    border-color: var(--sky-400);
}
.session-toggle .s-label { font-size: 9px; font-weight: 700; color: var(--gray-500); }
.session-toggle.active .s-label { color: var(--sky-600); }
.session-toggle .s-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: background .15s;
}
.session-toggle.active .s-dot { background: var(--sky-500); }

/* ---- Session Cards ---- */
.session-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.session-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--gradient);
    border-radius: 4px 0 0 4px;
}
.session-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.session-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
}
.session-time {
    font-size: 13px;
    color: var(--sky-600);
    font-weight: 600;
    margin-top: 2px;
}
.talent-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.talent-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--sky-50);
    border: 1px solid var(--sky-200);
    color: var(--sky-700);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all .15s;
    cursor: pointer;
}
.talent-chip:hover { background: var(--sky-100); }
.talent-chip.selected {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 6px rgba(14,165,233,.3);
}
.talent-chip .chip-appearances {
    font-size: 10px;
    opacity: .8;
    font-weight: 500;
}

/* ---- Dynamic Sessions Builder ---- */
.sessions-builder { display: flex; flex-direction: column; gap: 16px; }
.session-row {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px;
    position: relative;
}
.session-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.session-row-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--sky-700);
    background: var(--sky-50);
    border: 1px solid var(--sky-200);
    padding: 4px 12px;
    border-radius: 20px;
}
.session-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.talent-selector {
    margin-top: 14px;
    border-top: 1px solid var(--gray-200);
    padding-top: 14px;
}
.talent-selector-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
}

/* ---- Availability Toggle (Quick) ---- */
.quick-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.toggle-switch {
    width: 36px;
    height: 20px;
    background: var(--gray-300);
    border-radius: 20px;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 3px; left: 3px;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch.on { background: var(--sky-500); }
.toggle-switch.on::after { transform: translateX(16px); }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.page-link {
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xs);
    font-size: 13px;
    color: var(--gray-600);
    background: white;
    cursor: pointer;
    transition: all .15s;
}
.page-link:hover, .page-link.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}
.page-link.disabled { opacity: .4; cursor: not-allowed; }

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-400);
}
.empty-state svg { margin-bottom: 12px; opacity: .5; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ---- Date Badge ---- */
.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* ---- Comment Cards ---- */
.comment-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
}
.comment-card.kritik { border-left: 3px solid var(--red-400); }
.comment-card.saran { border-left: 3px solid var(--green-400); }
.comment-card.umum { border-left: 3px solid var(--sky-400); }
.comment-meta { font-size: 11px; color: var(--gray-500); margin-bottom: 6px; }
.comment-text { font-size: 13.5px; color: var(--gray-700); }

/* ---- Attendance Row ---- */
.attendance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 8px;
    background: white;
    gap: 12px;
}
.attendance-talent { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.attendance-talent-name { font-size: 13.5px; font-weight: 600; color: var(--gray-800); }

/* ---- Responsive Grid Utilities ---- */
/* Form layout: info panel left (fixed) + sessions right */
.grid-form-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    align-items: start;
}
/* 2-column equal grid (dashboard cards) */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
/* Sidebar layout: main content + fixed sidebar (right) */
.grid-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}
/* Sidebar layout: fixed panel left + main content right */
.grid-sidebar-left {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,.3);
    }
    .sidebar-close { display: flex; }
    .hamburger { display: flex; }
    .main-content { margin-left: 0; }
    .session-fields { grid-template-columns: 1fr 1fr; }
    .topbar { padding: 0 16px; }
    .page-content { padding: 16px; }
    /* Collapse fixed-width form layout */
    .grid-form-layout { grid-template-columns: 1fr; }
    .grid-sidebar { grid-template-columns: 1fr; }
    .grid-sidebar-left { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 22px; }
    .stat-icon { width: 40px; height: 40px; }
    .session-fields { grid-template-columns: 1fr; }
    .availability-grid { grid-template-columns: repeat(7, 1fr); gap: 3px; }
    .avail-day-cell { padding: 5px 3px; }
    .avail-day-cell .day-num { font-size: 11px; }
    .session-toggle { min-width: 26px; padding: 2px 3px; }
    .session-toggle .s-label { font-size: 8px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .table { font-size: 12px; }
    .table th, .table td { padding: 8px 10px; }
    .auth-card { padding: 28px 20px; }
    .topbar-title { font-size: 14px; }
    .d-none-mobile { display: none; }
    .talent-chip { font-size: 11px; padding: 3px 8px; }
    .btn { font-size: 12.5px; padding: 8px 14px; }
    /* Collapse 2-column dashboard grid */
    .grid-2col { grid-template-columns: 1fr; }
    /* Form footer action buttons: stack on mobile */
    .form-actions-row { flex-direction: column-reverse; }
    .form-actions-row .btn { width: 100%; justify-content: center; }
    /* Attendance radio labels */
    .attendance-row { flex-wrap: wrap; gap: 8px; }
    /* Session row header */
    .session-row-header { flex-wrap: wrap; gap: 8px; }
    /* Table action buttons smaller */
    .table-actions { flex-wrap: wrap; }
    .btn-xs { padding: 3px 7px; font-size: 10.5px; }
    /* Page content tighter */
    .page-content { padding: 12px; }
    /* Card body padding reduced */
    .card-body { padding: 14px; }
    /* Session card padding */
    .session-card { padding: 14px; }
}

@media (max-width: 400px) {
    .stats-grid { grid-template-columns: 1fr; }
    .availability-grid { gap: 2px; }
    /* On very small screens, hide less critical table cols */
    .table .hide-xs { display: none; }
}
