:root {
    --wp-primary: #0b4f6c;
    --wp-primary-dark: #083d54;
    --wp-accent: #01baef;
    --wp-sidebar: #0a3a4f;
    --wp-bg: #f3f6f9;
    --wp-card: #ffffff;
    --wp-text: #1f2937;
    --wp-muted: #6b7280;
    --wp-border: #e5e7eb;
    --wp-sidebar-width: 260px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    background: var(--wp-bg);
    color: var(--wp-text);
}

a { text-decoration: none; }

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: var(--wp-sidebar-width);
    background: linear-gradient(180deg, var(--wp-sidebar) 0%, #072c3c 100%);
    color: #fff;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    overflow-y: auto;
    transition: transform .2s ease;
}

.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: #fff;
    text-decoration: none;
}

.sidebar-brand-link:hover {
    color: #fff;
}

.brand-logo {
    flex: 0 0 auto;
    border-radius: .65rem;
}

.brand-text {
    min-width: 0;
}

.sidebar-brand .brand-name {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.1;
}

.sidebar-brand .brand-accent {
    color: var(--wp-accent);
}

.sidebar-brand .brand-tag {
    display: block;
    font-size: .72rem;
    color: rgba(255,255,255,.65);
    margin-top: .2rem;
    line-height: 1.3;
}

.sidebar-nav { padding: 1rem .75rem 2rem; }

.sidebar-nav .nav-link {
    color: rgba(255,255,255,.78);
    border-radius: .55rem;
    padding: .7rem .9rem;
    margin-bottom: .2rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(1, 186, 239, .16);
    color: #fff;
}

.sidebar-nav .nav-link.active { border-left: 3px solid var(--wp-accent); }

.main-content {
    margin-left: var(--wp-sidebar-width);
    flex: 1;
    min-width: 0;
}

.topbar {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--wp-border);
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.content-area { padding: 1.5rem; }

.page-title {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.page-subtitle { color: var(--wp-muted); margin: .15rem 0 0; font-size: .95rem; }

.stat-card {
    background: var(--wp-card);
    border: 1px solid var(--wp-border);
    border-radius: .85rem;
    padding: 1.15rem 1.25rem;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 79, 108, .08);
}

.stat-card .stat-label {
    color: var(--wp-muted);
    font-size: .85rem;
    margin-bottom: .35rem;
}

.stat-card .stat-value {
    font-family: "Outfit", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--wp-primary);
}

.card-panel {
    background: var(--wp-card);
    border: 1px solid var(--wp-border);
    border-radius: .85rem;
    overflow: hidden;
}

.card-panel .panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--wp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-panel .panel-body { padding: 1.25rem; }

.btn-primary {
    --bs-btn-bg: var(--wp-primary);
    --bs-btn-border-color: var(--wp-primary);
    --bs-btn-hover-bg: var(--wp-primary-dark);
    --bs-btn-hover-border-color: var(--wp-primary-dark);
    --bs-btn-active-bg: var(--wp-primary-dark);
    --bs-btn-active-border-color: var(--wp-primary-dark);
}

.table thead th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--wp-muted);
    background: #f8fafc;
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top right, rgba(1,186,239,.18), transparent 40%),
        linear-gradient(135deg, #083d54 0%, #0b4f6c 45%, #0a3a4f 100%);
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.auth-brand {
    text-align: center;
    margin-bottom: .75rem;
}

.auth-brand-logo {
    width: min(100%, 220px);
    height: auto;
    display: inline-block;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

.sidebar-toggle { display: none; }

.dashboard-welcome {
    background: linear-gradient(135deg, rgba(11, 79, 108, .06) 0%, rgba(1, 186, 239, .08) 100%);
    border: 1px solid var(--wp-border);
    border-radius: .85rem;
    padding: 1.25rem 1.5rem;
}

.dashboard-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--wp-card);
    border: 1px solid var(--wp-border);
    border-radius: .85rem;
    padding: 1rem .75rem;
    height: 100%;
    min-height: 88px;
    color: var(--wp-text);
    font-weight: 600;
    font-size: .9rem;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dashboard-quick-link i {
    font-size: 1.35rem;
    color: var(--wp-primary);
}

.dashboard-quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 79, 108, .08);
    border-color: rgba(1, 186, 239, .35);
    color: var(--wp-primary);
}

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
}
