:root {
    --sidebar-width: 280px;
    --white: #f1f1f1;
    --black: #1f1f1f;
    --primary: #FED420;
    --secondary: #1565CB;
    --page-bg: var(--white);
    --card-bg: #ffffff;
    --border: rgba(31, 31, 31, 0.10);
    --text: var(--black);
    --muted: #64748b;
    --accent-2: #22c55e;
    --accent-gradient: linear-gradient(135deg, var(--secondary) 0%, #1d4ed8 55%, var(--primary) 140%);
    --shadow: 0 10px 25px rgba(31, 31, 31, 0.06);
    --shadow-sm: 0 6px 14px rgba(31, 31, 31, 0.06);
    --bs-body-bg: var(--white);
    --bs-body-color: var(--black);
    --bs-primary: var(--secondary);
    --bs-primary-rgb: 21, 101, 203;
    --bs-link-color: var(--secondary);
    --bs-link-hover-color: #2b74d6;
    --bs-border-color: rgba(31, 31, 31, 0.10);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--page-bg);
    color: var(--text);
    overflow-x: hidden;
}

.login-illustration {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}

.login-kicker {
    letter-spacing: -0.02em;
}

.login-title {
    letter-spacing: -0.03em;
}

.app {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    z-index: 1000;
    overflow: hidden;
}

.sidebar-scroll {
    height: calc(100vh - 64px);
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 10px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.25);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
}

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

.brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-sm);
    border: 0;
    padding: 0;
}

.brand-badge:focus-visible {
    outline: 2px solid rgba(21, 101, 203, 0.55);
    outline-offset: 3px;
}

.mobile-sidebar-toggle {
    display: none;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 950;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.brand-title {
    line-height: 1.05;
}

.brand-title strong {
    display: block;
    font-size: 14px;
}

.brand-title span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-section {
    padding: 12px 10px 6px 10px;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-pills .nav-link {
    color: #334155;
    border-radius: 10px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.nav-pills .nav-link:hover {
    background: rgba(21, 101, 203, 0.08);
    color: var(--secondary);
}

.nav-pills .nav-link.active {
    background: rgba(21, 101, 203, 0.12);
    color: var(--secondary);
}

.nav-pills .nav-link i {
    width: 18px;
    text-align: center;
    opacity: 0.9;
}

.main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(246, 247, 251, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 31, 31, 0.06);
}

.topbar-inner {
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search {
    position: relative;
    max-width: 520px;
    flex: 1 1 auto;
}

.search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(100, 116, 139, 0.9);
}

.search input.form-control {
    padding-left: 38px;
    border-radius: 12px;
    border: 1px solid rgba(31, 31, 31, 0.10);
    background: rgba(255, 255, 255, 0.8);
    height: 42px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-accent {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-color: var(--black);
    --bs-btn-hover-bg: #ffe06a;
    --bs-btn-hover-border-color: #ffe06a;
    --bs-btn-hover-color: var(--black);
    --bs-btn-active-bg: #f3cc1e;
    --bs-btn-active-border-color: #f3cc1e;
    --bs-btn-active-color: var(--black);
    background: var(--primary);
    background-color: var(--primary);
    background-image: none;
    border: none;
    color: var(--black);
    box-shadow: 0 10px 20px rgba(254, 212, 32, 0.35);
    border-radius: 12px;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:focus-visible {
    background-color: #ffe06a;
    background-image: none;
    color: var(--black);
}

.btn-accent:active {
    background-color: #f3cc1e;
    background-image: none;
    color: var(--black);
}

.btn-primary {
    --bs-btn-bg: var(--secondary);
    --bs-btn-border-color: var(--secondary);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #2b74d6;
    --bs-btn-hover-border-color: #2b74d6;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #1158b0;
    --bs-btn-active-border-color: #1158b0;
    --bs-btn-active-color: #fff;
}

.btn-outline-primary {
    --bs-btn-color: var(--secondary);
    --bs-btn-border-color: rgba(21, 101, 203, 0.50);
    --bs-btn-hover-bg: rgba(21, 101, 203, 0.10);
    --bs-btn-hover-border-color: rgba(21, 101, 203, 0.55);
    --bs-btn-hover-color: var(--secondary);
    --bs-btn-active-bg: rgba(21, 101, 203, 0.16);
    --bs-btn-active-border-color: rgba(21, 101, 203, 0.60);
    --bs-btn-active-color: var(--secondary);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(31, 31, 31, 0.10);
    background: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(254, 212, 32, 0.22);
    border: 1px solid rgba(254, 212, 32, 0.45);
    color: var(--black);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar:is(img) {
    display: inline-block;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.8);
}

.user-avatar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.user-avatar-toggle:hover {
    color: var(--black);
}

.user-avatar-toggle:focus-visible {
    outline: 2px solid rgba(21, 101, 203, 0.55);
    outline-offset: 3px;
}

.user-dropdown-menu {
    min-width: 220px;
    max-width: min(300px, calc(100vw - 24px));
}

.user-dropdown-menu .dropdown-item {
    white-space: normal;
}

.user-dropdown-menu .dropdown-item i {
    width: 18px;
    text-align: center;
}

.content {
    padding: 22px;
    width: 100%;
}

.card-ui {
    border: 1px solid rgba(31, 31, 31, 0.06);
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.essay-cover {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(21, 101, 203, 0.06);
    border: 1px solid rgba(31, 31, 31, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.essay-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.essay-cover--pdf {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(21, 101, 203, 0.9);
    background: rgba(21, 101, 203, 0.06);
}

.essay-cover--pdf i {
    font-size: 42px;
}

.hero {
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.20);
}

.stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 14px 14px;
    height: 100%;
}

.stat .label {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    gap: 8px;
    align-items: center;
}

.stat .value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: -0.02em;
}

.pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-success {
    background: rgba(34, 197, 94, 0.15);
    color: #dcfce7;
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.pill-info {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-title-row h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.subtle {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

.list-tight .list-group-item {
    border: none;
    padding: 12px 0;
    border-top: 1px solid rgba(31, 31, 31, 0.06);
}

.list-tight .list-group-item:first-child {
    border-top: none;
}

.activity-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

.dot-1 { background: var(--secondary); }
.dot-2 { background: #22c55e; }
.dot-3 { background: var(--secondary); }
.dot-4 { background: #f97316; }

.progress-pill {
    height: 10px;
    border-radius: 999px;
    background: rgba(31, 31, 31, 0.06);
    overflow: hidden;
}

.progress-pill > span {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.w-65 { width: 65%; }
.w-20 { width: 20%; }
.w-15 { width: 15%; }

.bar-purple { background: var(--primary); }
.bar-blue { background: var(--secondary); }
.bar-orange { background: #f97316; }

@media (max-width: 992px) {
    .topbar {
        z-index: 960;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: var(--sidebar-width);
        transform: translateX(-105%);
        transition: transform .18s ease;
        box-shadow: 18px 0 40px rgba(31, 31, 31, 0.10);
    }

    .sidebar .sidebar-brand .brand-badge {
        display: none;
    }

    .sidebar-scroll {
        height: calc(100vh - 64px);
    }

    .main {
        margin-left: 0;
    }

    .mobile-sidebar-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

/* IconeRedacaodooh2026 */
@font-face {
    font-family: "redacaodooh";
    src: url("fonts/redacaodooh.woff2") format("woff2"),
        url("fonts/redacaodooh.ttf") format("truetype"),
        url("fonts/redacaodooh.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
.iconDooh {
    /* Use !important to prevent extensions from overriding this font. */
    font-family: "redacaodooh" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
