* {
    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;

    min-height: 100vh;
}


/* =========================
   ESTRUTURA
========================= */

.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 {
    display: flex;

    align-items:
        center;

    gap: 12px;

    padding:
        0 8px 25px;

    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 {
    margin-top:
        25px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        7px;
}


.menu-item {
    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;

    transition:
        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;

    text-align:
        center;

    font-size:
        18px;
}


.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,
.status-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;
}


/* =========================
   STATUS BOT
========================= */

.discord-status {
    max-width:
        1200px;

    margin:
        0 auto 40px;

    padding:
        25px 28px;

    border-radius:
        18px;

    background:
        rgba(
            255,
            255,
            255,
            0.045
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;
}


.discord-status h2 {
    margin:
        7px 0 5px;

    font-size:
        28px;
}


.discord-status p {
    margin: 0;

    color:
        #8da2b8;

    font-size:
        13px;
}


.bot-status {
    padding:
        9px 14px;

    border-radius:
        100px;

    font-size:
        11px;

    font-weight:
        bold;

    letter-spacing:
        1px;
}


.bot-status.online {
    color:
        #66e59a;

    background:
        rgba(
            46,
            204,
            113,
            0.12
        );

    border:
        1px solid
        rgba(
            46,
            204,
            113,
            0.25
        );
}


.bot-status.offline {
    color:
        #ff7b86;

    background:
        rgba(
            255,
            80,
            90,
            0.12
        );

    border:
        1px solid
        rgba(
            255,
            80,
            90,
            0.25
        );
}


/* =========================
   HEADER CANAIS
========================= */

section {
    max-width:
        1200px;

    margin:
        auto;
}


.section-header {
    margin-bottom:
        20px;

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-end;
}


.section-header h2 {
    margin:
        6px 0 0;

    font-size:
        23px;
}


.contador {
    color:
        #8da2b8;

    font-size:
        13px;
}


/* =========================
   CANAIS
========================= */

.canais-container {
    display:
        flex;

    flex-direction:
        column;

    gap:
        18px;
}


.canal {
    overflow:
        hidden;

    border-radius:
        17px;

    background:
        rgba(
            255,
            255,
            255,
            0.045
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.07
        );
}


.canal-header {
    padding:
        17px 20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.06
        );
}


.canal-nome {
    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    font-size:
        15px;

    font-weight:
        bold;
}


.canal-count {
    color:
        #748da4;

    font-size:
        11px;
}


/* =========================
   UTILIZADORES
========================= */

.utilizadores {
    padding:
        10px;
}


.utilizador {
    padding:
        14px;

    border-radius:
        13px;

    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    transition:
        background 0.2s;
}


.utilizador:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.035
        );
}


.avatar-wrapper {
    position:
        relative;

    flex-shrink:
        0;
}


.avatar {
    width:
        48px;

    height:
        48px;

    border-radius:
        50%;

    object-fit:
        cover;

    background:
        #13283b;
}


.online-dot {
    position:
        absolute;

    right:
        0;

    bottom:
        1px;

    width:
        12px;

    height:
        12px;

    border-radius:
        50%;

    background:
        #2ecc71;

    border:
        2px solid
        #0d1e2d;
}


.utilizador-info {
    flex:
        1;

    min-width:
        0;
}


.utilizador-nome {
    margin-bottom:
        7px;

    font-size:
        14px;

    font-weight:
        bold;

    white-space:
        nowrap;

    overflow:
        hidden;

    text-overflow:
        ellipsis;
}


.estados {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        6px;
}


.estado-voz {
    padding:
        5px 8px;

    border-radius:
        7px;

    color:
        #8299ad;

    background:
        rgba(
            255,
            255,
            255,
            0.04
        );

    font-size:
        10px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.05
        );
}


.estado-voz.ativo {
    color:
        #6adca0;

    background:
        rgba(
            46,
            204,
            113,
            0.08
        );
}


.estado-voz.mute {
    color:
        #ff838b;

    background:
        rgba(
            255,
            80,
            90,
            0.08
        );
}


.estado-voz.video {
    color:
        #76caff;

    background:
        rgba(
            55,
            170,
            240,
            0.09
        );
}


.estado-voz.stream {
    color:
        #b794ff;

    background:
        rgba(
            140,
            95,
            255,
            0.1
        );
}


/* =========================
   MENSAGENS
========================= */

.loading,
.vazio,
.erro {
    padding:
        45px;

    text-align:
        center;

    border-radius:
        15px;

    color:
        #8197ac;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.06
        );
}


.erro {
    color:
        #ff8991;
}


/* =========================
   RESPONSIVO
========================= */

@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;
    }

    .conteudo {
        padding:
            25px 20px 50px;
    }

}


@media (
    max-width: 550px
) {

    .topbar h1 {
        font-size:
            25px;
    }

    .relogio {
        padding:
            9px 10px;

        font-size:
            11px;
    }

    .discord-status {
        padding:
            20px;

        gap:
            20px;
    }

    .section-header {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            8px;
    }

}

.acoes-canais {
    display: flex;
    align-items: center;
    gap: 15px;
}


.botao-refresh {
    padding: 9px 14px;

    border-radius: 9px;

    border:
        1px solid
        rgba(75, 177, 239, 0.20);

    background:
        rgba(39, 153, 222, 0.10);

    color: #8ed8ff;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.botao-refresh:hover {
    background:
        rgba(39, 153, 222, 0.20);

    border-color:
        rgba(75, 177, 239, 0.35);
}


.botao-refresh:disabled {
    opacity: 0.5;
    cursor: default;
}

.botao-refresh {
    min-width: 135px;

    padding:
        9px 14px;

    border-radius:
        9px;

    border:
        1px solid
        rgba(
            75,
            177,
            239,
            0.20
        );

    background:
        rgba(
            39,
            153,
            222,
            0.10
        );

    color:
        #8ed8ff;

    font-size:
        12px;

    font-weight:
        600;

    cursor:
        pointer;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    transition:
        0.2s;
}


.botao-refresh:hover:not(:disabled) {
    background:
        rgba(
            39,
            153,
            222,
            0.20
        );

    border-color:
        rgba(
            75,
            177,
            239,
            0.35
        );
}


.botao-refresh:disabled {
    opacity:
        0.55;

    cursor:
        not-allowed;
}


.refresh-icon {
    display:
        inline-block;

    font-size:
        16px;
}


.refresh-icon.girar {
    animation:
        rodarRefresh
        0.7s
        linear
        infinite;
}


@keyframes rodarRefresh {

    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }

}

.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;
}