:root {
    /* ════════════════ 1. BRAND CORE COLORS ════════════════ */
    --wsh-navy: #1B365D;
    --wsh-navy-dark: #102340;
    --wsh-navy-light: #2A4B7C;
    --wsh-cyan: #38C8F4;
    --wsh-cyan-dark: #1CA8D4;
    --wsh-cyan-light: #EBF8FE;

    /* ════════════════ 2. BACKGROUND & SURFACES ════════════════ */
    --wsh-bg-canvas: #F8FAFC;
    --wsh-bg-subtle: #F1F5F9;
    --wsh-bg-card: #FFFFFF;
    --wsh-bg-input: #FFFFFF;

    /* ════════════════ 3. TYPOGRAPHY & TEXT ════════════════ */
    --wsh-text-primary: #0F172A;
    --wsh-text-secondary: #475569;
    --wsh-text-muted: #64748B;
    --wsh-text-dim: #94A3B8;

    /* ════════════════ 4. BORDERS & ACCENTS ════════════════ */
    --wsh-border: #E2E8F0;
    --wsh-border-hover: #CBD5E1;
    --wsh-border-focus: #38C8F4;
    --wsh-accent-live: #EF4444;
    --wsh-accent-success: #10B981;
    --wsh-accent-warning: #F59E0B;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--wsh-bg-canvas);
    color: var(--wsh-text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ════════════════ DASHBOARD LAYOUT ════════════════ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.wsh-sidebar {
    width: 250px;
    background: #FFFFFF;
    border-right: 1px solid var(--wsh-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    height: 60px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--wsh-border);
    box-sizing: border-box;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--wsh-border);
}

.brand-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--wsh-navy);
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: var(--wsh-text-muted);
    letter-spacing: 0.05em;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 10px;
}

.nav-category {
    font-size: 10px;
    font-weight: 700;
    color: var(--wsh-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 10px 4px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--wsh-text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 3px;
    transition: all 0.15s ease;
}

.nav-item i {
    font-size: 13px;
    width: 16px;
    text-align: center;
    color: var(--wsh-text-dim);
    transition: color 0.15s ease;
}

.nav-item:hover {
    background-color: var(--wsh-bg-subtle);
    color: var(--wsh-text-primary);
}

.nav-item:hover i {
    color: var(--wsh-navy);
}

.nav-item.active {
    background-color: var(--wsh-cyan-light);
    color: var(--wsh-navy);
    font-weight: 600;
    border-left: 3px solid var(--wsh-cyan);
}

.nav-item.active i {
    color: var(--wsh-cyan);
}

/* App Main & Navbar */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--wsh-bg-canvas);
}

.wsh-navbar {
    height: 60px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--wsh-border);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-sizing: border-box;
}

.page-heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--wsh-navy);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-email-text {
    font-size: 13px;
    color: var(--wsh-text-muted);
}

.app-content {
    flex: 1;
    padding: 28px;
    max-width: 1280px;
    width: 100%;
}

/* ════════════════ REUSABLE UI COMPONENTS ════════════════ */

/* Form controls */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--wsh-text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: var(--wsh-bg-input);
    border: 1px solid var(--wsh-border-hover);
    color: var(--wsh-text-primary);
    font-family: inherit;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    border-color: var(--wsh-navy);
    box-shadow: 0 0 0 3px var(--wsh-cyan-light);
}

.form-input.is-invalid {
    border-color: var(--wsh-accent-live);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--wsh-navy);
    color: #FFFFFF;
    border: 1px solid var(--wsh-navy);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--wsh-navy-dark);
    border-color: var(--wsh-navy-dark);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #FFFFFF;
    color: var(--wsh-text-secondary);
    border: 1px solid var(--wsh-border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background-color: var(--wsh-bg-subtle);
    color: var(--wsh-text-primary);
}

/* Cards */
.wsh-card {
    background: var(--wsh-bg-card);
    border: 1px solid var(--wsh-border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Tables */
.wsh-table-container {
    background: var(--wsh-bg-card);
    border: 1px solid var(--wsh-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wsh-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.wsh-table th {
    background: var(--wsh-bg-subtle);
    color: var(--wsh-text-muted);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 18px;
    border-bottom: 1px solid var(--wsh-border);
}

.wsh-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--wsh-border);
    color: var(--wsh-text-primary);
    vertical-align: middle;
}

.wsh-table tr:last-child td {
    border-bottom: none;
}

.wsh-table tr:hover td {
    background-color: #F8FAFC;
}

/* Badges & Pills */
.wsh-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
}

.badge-active, .badge-published {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.badge-inactive, .badge-draft {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
}

.badge-archived {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.badge-ethnic {
    background: var(--wsh-cyan-light);
    color: var(--wsh-navy);
    border: 1px solid #BAE6FD;
}

/* Alerts */
.alert-danger {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.alert-success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 20px;
}

