/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #071321,
            #0b1e32
        );

    color: white;
}


/* =========================
   APLICAÇÃO
========================= */

.app {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        240px 1fr;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    min-height: 100vh;

    padding:
        25px 16px;

    background:
        rgba(
            5,
            16,
            29,
            0.92
        );

    border-right:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );

    display: flex;
    flex-direction: column;
}


/* =========================
   LOGO
========================= */

.logo {
    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        0 8px 25px 8px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );
}


.logo-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #168cd8,
            #35b8ff
        );

    font-size: 20px;
    font-weight: bold;

    box-shadow:
        0 5px 20px
        rgba(
            27,
            153,
            230,
            0.18
        );
}


.logo-text {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.logo-text strong {
    font-size: 16px;
}


.logo-text span {
    color: #73879d;

    font-size: 11px;
}


/* =========================
   MENU
========================= */

.menu {
    margin-top: 25px;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.menu-item {
    width: 100%;

    min-height: 48px;

    padding:
        0 14px;

    border-radius: 11px;

    display: flex;

    align-items: center;

    gap: 13px;

    color: #91a5b9;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    border:
        1px solid transparent;

    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.2s;
}


.menu-item:hover {
    color: white;

    background:
        rgba(
            255,
            255,
            255,
            0.06
        );

    transform:
        translateX(2px);
}


.menu-item.ativo {
    color: #8ed8ff;

    background:
        rgba(
            39,
            153,
            222,
            0.12
        );

    border:
        1px solid
        rgba(
            75,
            177,
            239,
            0.15
        );
}


.menu-icon {
    width: 24px;

    flex-shrink: 0;

    text-align: center;

    font-size: 18px;
}


.menu-text {
    display: block;
}


/* =========================
   FOOTER SIDEBAR
========================= */

.sidebar-footer {
    margin-top: auto;

    padding:
        18px 10px 5px;

    color: #71859a;

    font-size: 11px;

    display: flex;

    align-items: center;

    gap: 8px;
}


.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #2ecc71;

    box-shadow:
        0 0 10px
        rgba(
            46,
            204,
            113,
            0.6
        );
}


/* =========================
   CONTEÚDO
========================= */

.conteudo {
    min-width: 0;

    padding:
        35px 45px 60px;
}


.topbar {
    max-width: 1200px;

    margin:
        0 auto 35px;

    display: flex;

    justify-content:
        space-between;

    align-items: center;
}


.pagina-label,
.section-label,
.welcome-label {
    color: #559bc7;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.8px;
}


.topbar h1 {
    margin:
        5px 0 0;

    font-size: 32px;
}


.relogio {
    padding:
        11px 16px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );

    color: #a9bdd0;

    font-size: 13px;

    font-variant-numeric:
        tabular-nums;
}


/* =========================
   WELCOME
========================= */

.welcome {
    max-width: 1200px;

    min-height: 190px;

    margin: auto;

    padding: 35px;

    border-radius: 20px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            120deg,
            rgba(
                23,
                108,
                164,
                0.20
            ),
            rgba(
                255,
                255,
                255,
                0.035
            )
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );
}


.welcome h2 {
    margin:
        9px 0 8px;

    font-size: 30px;
}


.welcome p {
    max-width: 560px;

    margin: 0;

    color: #91a5b9;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================
   APLICAÇÕES
========================= */

.apps-section {
    max-width: 1200px;

    margin:
        35px auto 0;
}


.section-header h2 {
    margin:
        6px 0 18px;

    font-size: 22px;
}


.apps-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                220px,
                1fr
            )
        );

    gap: 15px;
}


.app-card {
    min-height: 140px;

    padding: 20px;

    border-radius: 16px;

    display: flex;

    align-items: center;

    gap: 17px;

    background:
        rgba(
            255,
            255,
            255,
            0.055
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    color: white;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s,
        border 0.2s,
        transform 0.2s;
}


.app-card:hover {
    transform:
        translateY(-3px);

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-color:
        rgba(
            90,
            180,
            235,
            0.25
        );
}


.app-icon {
    flex: 0 0 auto;

    width: 55px;
    height: 55px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );

    font-size: 26px;
}


.app-icon.weather {
    background:
        rgba(
            41,
            154,
            222,
            0.13
        );
}


.app-icon.discord {
    background:
        rgba(
            88,
            101,
            242,
            0.13
        );
}


.app-info {
    min-width: 0;
}


.app-info h3 {
    margin:
        0 0 7px;

    font-size: 17px;
}


.app-info p {
    margin: 0;

    color: #8195aa;

    font-size: 12px;

    line-height: 1.5;
}


.app-arrow {
    margin-left: auto;

    color: #6d8297;

    font-size: 20px;
}


.app-card.futuro {
    opacity: 0.45;

    cursor: default;
}


.app-card.futuro:hover {
    transform: none;

    border-color:
        rgba(
            255,
            255,
            255,
            0.08
        );
}


/* =========================
   TELEMÓVEL
========================= */

@media (
    max-width: 800px
) {

    .app {
        grid-template-columns:
            72px 1fr;
    }


    .sidebar {
        padding:
            20px 10px;
    }


    .logo {
        justify-content:
            center;

        padding:
            0 0 20px;
    }


    .logo-text,
    .menu-text,
    .sidebar-footer span {
        display: none;
    }


    .menu-item {
        padding: 0;

        justify-content:
            center;
    }


    .menu-icon {
        width: auto;
    }


    .sidebar-footer {
        justify-content:
            center;
    }


    .conteudo {
        padding:
            25px 18px 40px;
    }


    .apps-grid {
        grid-template-columns:
            1fr;
    }
}


@media (
    max-width: 500px
) {

    .topbar {
        align-items:
            flex-start;
    }


    .relogio {
        font-size: 11px;
    }


    .welcome {
        padding: 25px;

        min-height: 160px;
    }


    .welcome h2 {
        font-size: 24px;
    }
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}