/* =====================================================
   LOGIN
===================================================== */

.hidden {
    display: none !important;
}


.login-screen {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        radial-gradient(
            circle at top right,
            rgba(111, 35, 199, .12),
            transparent 35%
        ),
        #f6f7f9;

    padding: 20px;
}


.login-box {
    width: 100%;
    max-width: 360px;

    background: white;

    border: 1px solid #e4e6eb;

    border-radius: 14px;

    padding: 35px 32px 25px;

    box-shadow:
        0 15px 50px rgba(44, 19, 75, .10);

    text-align: center;
}


.login-logo {
    width: 65px;
    height: 65px;

    margin: 0 auto 14px;

    border-radius: 50%;

    background: #5b13b7;

    color: #69e6ba;

    font-size: 22px;

    font-weight: 800;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow:
        0 8px 20px rgba(91, 19, 183, .25);
}


.login-box h1 {
    margin: 0;

    color: #5d13bd;

    font-size: 22px;

    font-weight: 800;
}


.login-subtitle {
    margin-top: 4px;

    color: #11ad81;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 2px;
}


.login-form {
    margin-top: 30px;

    text-align: left;
}


.login-form label {
    display: block;

    margin-bottom: 7px;

    margin-top: 16px;

    color: #414754;

    font-size: 11px;

    font-weight: 600;
}


.login-form input {
    width: 100%;

    height: 43px;

    border: 1px solid #dfe2e8;

    border-radius: 7px;

    outline: none;

    padding: 0 12px;

    font-family: inherit;

    font-size: 11px;

    color: #252934;

    background: #fff;

    transition: .2s;
}


.login-form input:focus {
    border-color: #7b32d0;

    box-shadow:
        0 0 0 3px rgba(123, 50, 208, .10);
}


.password-container {
    position: relative;
}


.password-container input {
    padding-right: 42px;
}


.show-password {
    position: absolute;

    right: 5px;

    top: 5px;

    width: 33px;

    height: 33px;

    border: none;

    border-radius: 5px;

    background: transparent;

    color: #747a87;

    cursor: pointer;
}


.show-password:hover {
    background: #f3eff9;

    color: #6421c5;
}


.login-button {
    width: 100%;

    height: 43px;

    margin-top: 22px;

    border: none;

    border-radius: 7px;

    background: #6822c5;

    color: white;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}


.login-button:hover {
    background: #5414a8;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(104, 34, 197, .22);
}


.login-button:active {
    transform: translateY(0);
}


.login-error {
    display: none;

    margin-top: 12px;

    padding: 9px;

    border-radius: 6px;

    background: #fff0f3;

    border: 1px solid #ffd3dc;

    color: #d9365b;

    font-size: 9px;

    text-align: center;
}


.login-error.show {
    display: block;
}


.login-footer {
    margin-top: 27px;

    padding-top: 18px;

    border-top: 1px solid #eee;

    color: #9a9faa;

    font-size: 8px;
}


/* =====================================================
   USUÁRIO LOGADO
===================================================== */

.logged-user {
    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 8px;

    color: #555b68;

    font-weight: 600;
}


.user-avatar {
    width: 25px;
    height: 25px;

    border-radius: 50%;

    background: #ead9ff;

    color: #6822c5;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 9px;

    font-weight: 800;
}


/* =====================================================
   LOGOUT
===================================================== */

.logout-button {
    margin-top: 10px;

    width: 100%;

    height: 30px;

    border: 1px solid #eee;

    background: white;

    color: #777d89;

    border-radius: 6px;

    font-family: inherit;

    font-size: 8px;

    cursor: pointer;

    transition: .2s;
}


.logout-button:hover {
    border-color: #ef4f91;

    color: #ef4f91;

    background: #fff5f8;
}


/* =====================================================
   RESPONSIVE LOGIN
===================================================== */

@media (max-width: 450px) {

    .login-box {
        padding: 30px 22px 22px;
    }

}

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

:root {
    --purple: #641cc5;
    --purple-light: #f2eaff;
    --purple-border: #8d4de8;

    --background: #f6f7f9;
    --white: #ffffff;

    --text: #202431;
    --muted: #6d7483;

    --green: #12b981;
    --green-light: #e4f9f2;

    --yellow: #f7b731;
    --yellow-light: #fff6dc;

    --pink: #ef4f91;
    --pink-light: #ffe9f2;

    --border: #e6e8ed;

    /* Largura máxima compartilhada pelas telas internas */
    --content-max-width: 1680px;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
}


/* ==================================
   APP
================================== */

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


/* ==================================
   SIDEBAR
================================== */

.sidebar {
    width: 168px;
    min-width: 168px;

    background: #fff;

    border-right: 1px solid #dfe2e7;

    padding: 15px 14px;

    display: flex;
    flex-direction: column;
}


/* LOGO */

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;

    padding-bottom: 20px;

    border-bottom: 1px solid #eee;
}

.logo {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #5b13b7;

    color: #69e6ba;

    font-size: 12px;
    font-weight: 800;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 12px;
    color: #5d13bd;
}

.logo-text span {
    font-size: 6px;
    color: #11ad81;
    font-weight: 600;
}


/* MENU */

.menu {
    margin-top: 18px;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.menu-item {
    text-decoration: none;

    color: #4c5261;

    padding: 10px 8px;

    border-radius: 6px;

    font-size: 11px;

    display: flex;
    align-items: center;

    gap: 10px;

    transition: .2s;
}

.menu-item:hover {
    background: #f3effb;
    color: var(--purple);
}

.menu-item.active {
    background: var(--purple);
    color: white;
}

.icon {
    width: 14px;

    text-align: center;

    font-size: 13px;
}

.notification {
    margin-left: auto;

    color: #20d09a;

    font-weight: bold;
}


/* STATUS */

/* ==================================
   MAIN
================================== */

.main {
    flex: 1;

    padding: 18px 20px;

    min-width: 0;
}


/* ==================================
   HEADER
================================== */

.header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 24px;
}

.header h1 {
    font-size: 14px;

    font-weight: 700;
}

.header-right {
    display: flex;

    align-items: center;

    gap: 15px;
}

.date {
    font-size: 9px;

    color: #5c6370;
}

/* ==================================
   STATS
================================== */

.stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    margin-bottom: 18px;
}

.stat-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 8px;

    min-height: 58px;

    padding: 12px;

    display: flex;

    align-items: center;

    gap: 11px;

    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.stat-icon {
    width: 31px;
    height: 31px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
}

.stat-icon.purple {
    background: #ead9ff;
    color: #7525cf;
}

.stat-icon.pink {
    background: var(--pink-light);
    color: var(--pink);
}

.stat-icon.yellow {
    background: var(--yellow-light);
    color: var(--yellow);
}

.stat-icon.green {
    background: var(--green-light);
    color: var(--green);
}

.stat-card span {
    display: block;

    font-size: 8px;

    color: #6d7380;

    margin-bottom: 3px;
}

.stat-card strong {
    font-size: 14px;
}


