/* =============================================================
   GLOBALWAVE STAFF SUITE — MASTER STYLESHEET
   Brand: Purple #5B2C4F | Teal #2596BE | Gold #F4C430
   ============================================================= */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #1e293b;
    background: #f4f6f9;
}

/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
    --purple:      #5B2C4F;
    --purple-dark: #47223e;
    --teal:        #2596BE;
    --teal-dark:   #1e7fa1;
    --gold:        #F4C430;
    --gold-dark:   #d89e00;
    --green:       #16a34a;
    --red:         #dc2626;
    --amber:       #f59e0b;
    --gray:        #64748b;
    --light-bg:    #f4f6f9;
    --white:       #ffffff;
    --border:      #e2e8f0;
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   14px;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.admin-layout { min-height: 100vh; }

.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 220px;
    height: 100vh;
    background: var(--purple);
    padding: 24px 16px 20px;
    overflow-y: auto;
    z-index: 200;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.sidebar h3 {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.menu-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin: 20px 0 6px 4px;
}

.sidebar a {
    display: block;
    padding: 9px 12px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 2px;
    transition: background 0.2s, color 0.2s;
}

.sidebar a:hover  { background: rgba(255,255,255,0.12); color: var(--white); }
.sidebar a.active { background: var(--teal); color: var(--white); font-weight: 600; }

.logout-btn {
    background: var(--gold) !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    margin-top: 24px;
    text-align: center;
}
.logout-btn:hover { background: var(--gold-dark) !important; }

.sidebar-bottom {
    margin-top: auto;
    padding-top: 16px;
}

.sidebar-version {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
    margin-top: 8px;
}


.main-content {
    margin-left: 220px;
    padding: 30px;
    min-height: 100vh;
    background: var(--light-bg);
    overflow-x: auto;
}

/* ── PAGE HEADER ──────────────────────────────────────────── */
.page-header {
    margin-bottom: 24px;
}
.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--purple);
}
.page-header p {
    color: var(--gray);
    font-size: 13px;
    margin-top: 4px;
}

/* ── CARDS ────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-icon.teal   { background: #eff8fd; }
.stat-icon.green  { background: #f0fdf4; }
.stat-icon.amber  { background: #fffbeb; }
.stat-icon.red    { background: #fef2f2; }
.stat-icon.purple { background: #fdf4ff; }

.stat-value { font-size: 28px; font-weight: 700; color: #1e293b; line-height: 1; }
.stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
    line-height: 1.4;
}
.btn:hover  { opacity: 0.88; }
.btn:active { transform: scale(0.98); }

.btn-primary   { background: var(--teal);   color: var(--white); }
.btn-secondary { background: var(--purple); color: var(--white); }
.btn-success   { background: var(--green);  color: var(--white); }
.btn-danger    { background: var(--red);    color: var(--white); }
.btn-warning   { background: var(--amber);  color: var(--white); }
.btn-gray      { background: #e2e8f0;       color: #374151; }
.btn-gradient  { background: linear-gradient(90deg, var(--purple), var(--teal)); color: var(--white); }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-full { width: 100%; text-align: center; padding: 12px; }

/* Time Recording specific */
.punch-in-btn  { background: var(--teal);   color: var(--white); }
.punch-out-btn { background: var(--purple); color: var(--white); }
.leave-btn     { background: var(--gold);   color: #1e293b; }

/* ── FORMS ────────────────────────────────────────────────── */
.form-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 36px 40px;
    width: 100%;
    max-width: 700px;
    border-top: 5px solid var(--purple);
}

.form-card h2 {
    color: var(--purple);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 28px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea,
.input-group input,
.input-group select,
.input-group textarea {
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    color: #1e293b;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,150,190,0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* Legacy class support */
.input-row  { display: flex; gap: 20px; margin-bottom: 18px; }
.input-group { flex: 1; display: flex; flex-direction: column; }
.input-group label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }

.submit-btn { @extend .btn; @extend .btn-gradient; width: 100%; padding: 12px; margin-top: 8px; font-size: 14px; }
.submit-btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    font-size: 14px;
    background: linear-gradient(90deg, var(--purple), var(--teal));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.submit-btn:hover { opacity: 0.9; }

.back-btn {
    display: inline-block;
    margin-top: 16px;
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}
.back-btn:hover { color: var(--teal); text-decoration: underline; }

/* Validation states */
.field-error   { display: block; color: var(--red); font-size: 12px; margin-top: 4px; min-height: 16px; }
input.invalid, select.invalid { border-color: var(--red) !important; }
input.valid,   select.valid   { border-color: var(--green) !important; }

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13px;
}
.alert-error ul { margin: 0; padding-left: 16px; }

/* ── TABLES ───────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table thead tr { background: var(--purple); }
.data-table th {
    padding: 13px 16px;
    text-align: left;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
    color: #334155;
}
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Teal header variant */
.data-table.teal-head thead tr { background: var(--teal); }

.table-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── STATUS BADGES ────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-amber  { background: #fef3c7; color: #92400e; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }

/* Legacy badge aliases */
.present { background: #d1fae5; color: #065f46; }
.absent  { background: #fee2e2; color: #991b1b; }
.leave   { background: #fef3c7; color: #92400e; }

/* ── EMPLOYEE DASHBOARD ────────────────────────────────────── */
.emp-dashboard { padding: 0; }

/* Welcome header */
.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}
.dash-welcome__greeting { font-size: 13px; color: var(--gray); margin-bottom: 2px; font-weight: 500; }
.dash-welcome__name { font-size: 22px; font-weight: 700; color: var(--purple); margin: 0; }
.dash-welcome__date { text-align: right; }
.dash-welcome__date-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); margin-bottom: 2px; }
.dash-welcome__date-value { font-size: 13px; font-weight: 600; color: #334155; }

/* Punch bar — compact single-row strip */
.punch-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #5B2C4F 0%, #2596BE 100%);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(91,44,79,0.2);
    color: white;
    flex-wrap: wrap;
}

.punch-bar__label { min-width: 140px; }
.punch-bar__title { font-size: 13px; font-weight: 700; letter-spacing: 0.1px; }
.punch-bar__date  { font-size: 11px; opacity: 0.75; margin-top: 2px; }

.punch-bar__times {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.punch-bar__clock {
    font-size: 26px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    line-height: 1;
}
.punch-bar__splits {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
}
.punch-bar__split        { font-weight: 600; font-family: 'Courier New', monospace; }
.punch-bar__split--in    { color: #86efac; }
.punch-bar__split--out   { color: #fca5a5; }
.punch-bar__split-sep    { opacity: 0.4; }
.punch-bar__duration     { font-weight: 700; background: rgba(255,255,255,0.15); padding: 1px 7px; border-radius: 999px; font-size: 11px; }

.punch-bar__actions { display: flex; gap: 8px; flex-shrink: 0; }

.punch-bar__btn {
    padding: 8px 18px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    color: white;
    white-space: nowrap;
    transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}
.punch-bar__btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.2); }
.punch-bar__btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.punch-bar__btn--in  { background: rgba(76,175,80,0.85);  border-color: rgba(76,175,80,0.5); }
.punch-bar__btn--out { background: rgba(244,67,54,0.85);  border-color: rgba(244,67,54,0.5); }
.punch-bar__btn--in:hover:not(:disabled)  { background: rgba(76,175,80,1); }
.punch-bar__btn--out:hover:not(:disabled) { background: rgba(244,67,54,1); }

/* Stat cards */
.emp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.emp-card {
    padding: 20px 20px 16px;
    border-radius: var(--radius-md);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.emp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.emp-card__icon { font-size: 22px; margin-bottom: 8px; opacity: 0.85; }
.emp-card span  { font-size: 12px; opacity: 0.9; font-weight: 500; letter-spacing: 0.2px; display: block; }
.emp-card h3    { font-size: 26px; font-weight: 700; margin-top: 6px; }

.emp-card.teal   { background: var(--teal); }
.emp-card.purple { background: var(--purple); }
.emp-card.gold   { background: var(--gold); color: #1e293b; }
.emp-card.dark   { background: #334155; }

/* Legend */
.attendance-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid;
    display: inline-block;
    flex-shrink: 0;
}

/* Attendance section */
.attendance-section { display: flex; gap: 24px; margin-top: 0; flex-wrap: wrap; align-items: flex-start; }
.attendance-section .mini-chart-card { flex: 1; min-width: 280px; }

.mini-chart-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* Section heading with left bar accent */
.section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 14px;
}
.section-heading__bar {
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--purple);
    border-radius: 2px;
    flex-shrink: 0;
}
.section-heading__month {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Calendar */
.cal-day-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin: 12px 0 4px;
}
.cal-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    padding: 4px 0;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-cell {
    border-radius: 6px;
    padding: 6px 2px;
    text-align: center;
    border: 1px solid;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}
.cal-cell:hover { transform: scale(1.06); z-index: 1; position: relative; }
.cal-cell__num   { font-size: 15px; font-weight: 700; line-height: 1; }
.cal-cell__label { font-size: 9px; margin-top: 3px; font-weight: 600; }
.cal-cell__badge { font-size: 10px; font-weight: 700; margin-top: 2px; line-height: 1; }
.cal-cell--weekend-present { border-top: 2px solid #0369a1; }

/* Attendance table */
.attendance-table-wrap {
    max-height: 340px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
}
.attendance-table { width: 100%; border-collapse: collapse; }
.attendance-table thead th {
    background: var(--purple);
    color: var(--white);
    padding: 10px 12px;
    font-size: 13px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1;
}
.attendance-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.attendance-table tbody tr:last-child td { border-bottom: none; }
.attendance-table tbody tr:hover { background: #f8fafc; }

.status-pill {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.attendance-empty {
    text-align: center;
    color: var(--gray);
    font-size: 13px;
    padding: 24px;
}

/* Section heading link */
.section-heading__link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    white-space: nowrap;
}
.section-heading__link:hover { text-decoration: underline; }

/* ── RECENT PUNCH LOG ─────────────────────────────────────── */
.activity-list { display: flex; flex-direction: column; gap: 6px; }

.activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid var(--border);
    transition: background 0.15s;
}
.activity-row:hover { background: #f1f5f9; }

.activity-row__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
    background: var(--purple);
    color: white;
    border-radius: 6px;
    padding: 4px 6px;
    line-height: 1.2;
}
.activity-row__day { font-size: 9px; font-weight: 700; text-transform: uppercase; opacity: 0.85; }
.activity-row__num { font-size: 16px; font-weight: 700; }

.activity-row__times {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.activity-time { font-size: 12px; font-weight: 600; font-family: 'Courier New', monospace; }
.activity-time--in  { color: #16a34a; }
.activity-time--out { color: #dc2626; }

.activity-row__dur {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.activity-row__dur--done { background: #d1fae5; color: #065f46; }
.activity-row__dur--open { background: #fef3c7; color: #92400e; }

/* ── LEAVE REQUEST LIST ───────────────────────────────────── */
.leave-list { display: flex; flex-direction: column; gap: 6px; }

.leave-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid var(--border);
}
.leave-row__dates  { font-size: 12px; font-weight: 700; color: #334155; white-space: nowrap; min-width: 90px; }
.leave-row__reason { font-size: 12px; color: var(--gray); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.leave-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.leave-pill--approved { background: #d1fae5; color: #065f46; }
.leave-pill--rejected { background: #fee2e2; color: #991b1b; }
.leave-pill--pending  { background: #fef3c7; color: #92400e; }

/* ── TIME RECORDING ───────────────────────────────────────── */
.time-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 380px;
    box-shadow: var(--shadow-sm);
}
.time-title { color: var(--purple); font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.time-card form { margin-bottom: 12px; }

/* ── RESPONSIVE — EMPLOYEE DASHBOARD ─────────────────────── */
@media (max-width: 768px) {
    .dash-welcome { flex-direction: column; align-items: flex-start; gap: 8px; }
    .dash-welcome__date { text-align: left; }

    .punch-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .punch-bar__times { align-items: flex-start; }
    .punch-bar__actions { width: 100%; }
    .punch-bar__btn { flex: 1; text-align: center; }

    .emp-cards { grid-template-columns: 1fr 1fr; }

    .attendance-section { flex-direction: column; }
    .attendance-section .mini-chart-card { min-width: unset; flex: unset; width: 100%; }
}
@media (max-width: 480px) {
    .emp-cards { grid-template-columns: 1fr; }
}

/* ── PROFILE ──────────────────────────────────────────────── */
.profile-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 480px;
    box-shadow: var(--shadow-sm);
}
.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.profile-item:last-child { border-bottom: none; }
.profile-item b { color: #374151; }

/* ── MASTER PAGES (Clients / Shifts / Departments) ────────── */
.master-header {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.master-header .form-group { margin-bottom: 0; min-width: 140px; }
.master-header input[type="time"] { min-width: 130px; }

/* ── FILTER BAR ───────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.filter-bar label { font-size: 12px; font-weight: 600; color: var(--gray); display: block; margin-bottom: 4px; }
.filter-bar input,
.filter-bar select {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 140px;
    font-family: inherit;
}
.filter-bar input:focus, .filter-bar select:focus {
    border-color: var(--teal);
    outline: none;
}

/* ── MODERN TABLE ALIAS ───────────────────────────────────── */
.modern-table { @extend .data-table; }
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.modern-table thead tr { background: var(--purple); }
.modern-table th { padding: 13px 16px; color: var(--white); font-size: 13px; font-weight: 600; text-align: left; }
.modern-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }
.modern-table tbody tr:hover { background: #f8fafc; }
.modern-table tbody tr:last-child td { border-bottom: none; }
.action-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-edit   { background: var(--teal);   color: var(--white); padding: 5px 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: 12px; font-weight: 600; }
.btn-delete { background: var(--red);    color: var(--white); padding: 5px 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: 12px; font-weight: 600; }
.btn-edit:hover   { opacity: 0.85; }
.btn-delete:hover { opacity: 0.85; }

/* ── LOGIN PAGE ───────────────────────────────────────────── */
.brand-login { margin: 0; height: 100vh; font-family: 'Segoe UI', sans-serif; }

.login-layout {
    display: flex;
    height: 100vh;
}

.brand-panel {
    flex: 1;
    background: linear-gradient(160deg, var(--purple), #7a3f6b);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 40px;
    position: relative;
}

.brand-panel__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-panel__footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.brand-logo { width: 400px; max-width: 80%; margin-bottom: 28px; filter: brightness(1.4) contrast(1.2); }
.brand-panel h1 { font-size: 26px; letter-spacing: 2px; margin-bottom: 6px; }
.brand-panel h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.brand-panel p  { font-size: 14px; opacity: 0.8; text-align: center; max-width: 320px; }

.login-panel {
    flex: 1;
    background: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-card {
    background: var(--white);
    padding: 44px;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.10);
}

.login-card h3 { text-align: center; color: var(--purple); margin-bottom: 28px; font-size: 20px; font-weight: 700; }

.login-card input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-card input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(37,150,190,0.15); }

.login-card button {
    width: 100%;
    padding: 13px;
    background: var(--purple);
    border: none;
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.login-card button:hover { background: var(--teal); }

/* ── REPORT PAGES ─────────────────────────────────────────── */
.report-wrapper { padding: 0; }
.report-header  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.report-header h2 { font-size: 20px; font-weight: 700; }

/* ── COMPLAINT / ISSUE BOX ────────────────────────────────── */
.complaint-container {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 640px;
    box-shadow: var(--shadow-sm);
}
.complaint-container h2 { color: var(--purple); margin-bottom: 20px; }

/* ── UTILITY ──────────────────────────────────────────────── */
.text-muted  { color: var(--gray); }
.text-purple { color: var(--purple); }
.text-teal   { color: var(--teal); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-amber  { color: var(--amber); }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
