:root {
    --sidebar-bg: #111827;
    --sidebar-link: #d1d5db;
    --sidebar-link-active: #facc15;
    --content-bg: #f5f7fb;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
    --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--content-bg);
    color: var(--text-main);
}

a { text-decoration: none; }

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(320px, 520px);
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
}

.login-brand {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand-badge {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #facc15;
    color: #111827;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.login-brand h1 {
    margin: 0;
    font-size: 2rem;
}

.login-brand p {
    margin: .35rem 0 0;
    color: rgba(255,255,255,.75);
}

.login-card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 18px 48px rgba(0,0,0,.20);
}

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

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

.app-sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: #fff;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 2rem;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-copy {
    font-size: .9rem;
    color: rgba(255,255,255,.65);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.nav-item {
    border-radius: 12px;
    padding: .85rem 1rem;
    color: var(--sidebar-link);
    transition: all .2s ease;
    font-weight: 600;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,.08);
    color: var(--sidebar-link-active);
}

.nav-item.disabled {
    opacity: .55;
    cursor: not-allowed;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-header {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.header-subtitle {
    color: var(--text-muted);
    font-size: .9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-pill {
    background: #f9fafb;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: .55rem .9rem;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-name {
    font-size: .92rem;
    font-weight: 700;
}

.user-role {
    color: var(--text-muted);
    font-size: .8rem;
}

.app-content {
    padding: 1.5rem;
    flex: 1;
}

.hero-panel {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.eyebrow {
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.hero-title {
    margin: 0 0 .35rem;
    font-size: 1.8rem;
}

.hero-copy {
    margin: 0;
    max-width: 780px;
    color: rgba(255,255,255,.82);
}

.hero-badge {
    background: rgba(250, 204, 21, .18);
    color: #fde68a;
    border: 1px solid rgba(250, 204, 21, .35);
    padding: .8rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 700;
}

.metric-card,
.content-card,
.mini-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eef0f4;
}

.metric-card {
    padding: 1.25rem;
}

.metric-title {
    color: var(--text-muted);
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: .5rem;
}

.metric-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: .4rem;
}

.metric-subtitle {
    color: var(--text-muted);
    font-size: .9rem;
}

.content-card {
    padding: 1.35rem;
}

.content-card-header {
    margin-bottom: 1rem;
}

.content-card-header h2,
.section-subtitle {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.mini-card {
    padding: 1rem;
    height: 100%;
}

.mini-card-title {
    font-weight: 700;
    margin-bottom: .35rem;
}

.mini-card-copy {
    color: var(--text-muted);
    font-size: .9rem;
}

.module-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.module-list li {
    border-bottom: 1px solid var(--border-soft);
    padding: .9rem 0;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
}

.module-list li:last-child {
    border-bottom: 0;
}

.module-list span {
    color: var(--text-muted);
    font-size: .9rem;
}

.app-footer {
    background: #fff;
    border-top: 1px solid var(--border-soft);
    padding: .95rem 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
    font-size: .9rem;
}

@media (max-width: 992px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-brand {
        justify-content: center;
        text-align: center;
    }

    .app-layout {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
    }

    .app-header,
    .hero-panel,
    .app-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
