* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        Arial,
        sans-serif;
    background:
        #080b12;
    color:
        #f3f6ff;
}

.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        250px 1fr;
}

.sidebar {
    background:
        #0d111a;
    border-right:
        1px solid #202637;
    padding:
        24px 16px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
}

.logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-weight: 900;
    font-size: 21px;
    background:
        linear-gradient(
            135deg,
            #2477ff,
            #7047ff
        );
}

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

.brand span {
    display: block;
    font-size: 12px;
    color:
        #8d96aa;
    margin-top: 3px;
}

nav {
    display: grid;
    gap: 5px;
}

.nav {
    border: 0;
    text-align: left;
    padding:
        11px 13px;
    border-radius: 8px;
    background:
        transparent;
    color:
        #aab2c4;
    cursor: pointer;
}

.nav:hover,
.nav.active {
    background:
        #171d2a;
    color:
        white;
}

main {
    padding:
        30px;
}

header {
    display: flex;
    justify-content:
        space-between;
    align-items: center;
    margin-bottom:
        25px;
}

h1 {
    margin: 0;
}

header p,
.panel p {
    color:
        #8992a7;
}

.badge {
    border:
        1px solid #30394e;
    border-radius:
        999px;
    padding:
        9px 14px;
}

.badge.online {
    background:
        rgba(49, 205, 117, .12);
    border-color:
        rgba(49, 205, 117, .35);
}

.stats {
    display:
        grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap:
        15px;
    margin-bottom:
        20px;
}

.card,
.panel {
    border:
        1px solid #20283a;
    background:
        #10151f;
    border-radius:
        14px;
}

.card {
    padding:
        20px;
}

.card span {
    display:
        block;
    color:
        #8992a7;
    font-size:
        13px;
}

.card strong {
    display:
        block;
    margin-top:
        12px;
    font-size:
        24px;
}

.panel {
    padding:
        20px;
    margin-bottom:
        18px;
}

.panel-header h2 {
    margin:
        0;
}

.panel-header p {
    margin-bottom:
        0;
}

.mode-buttons {
    display:
        flex;
    flex-wrap:
        wrap;
    gap:
        10px;
    margin-top:
        20px;
}

.mode-buttons button {
    background:
        #1b2230;
    color:
        white;
    border:
        1px solid #303b52;
    border-radius:
        8px;
    padding:
        10px 15px;
    cursor:
        pointer;
}

.mode-buttons button:hover {
    background:
        #263249;
}

.grid {
    display:
        grid;
    grid-template-columns:
        1fr 1fr;
    gap:
        18px;
}

.staff-row {
    display:
        flex;
    justify-content:
        space-between;
    margin-top:
        20px;
}

.staff-row span {
    display:
        block;
    color:
        #8d96aa;
    margin-top:
        5px;
}

.status {
    padding:
        7px 10px;
    border-radius:
        999px;
    background:
        #192334;
}

.extension-list {
    display:
        grid;
    grid-template-columns:
        60px 1fr;
    align-items:
        center;
}

.extension-list span {
    font-weight:
        800;
    color:
        #7caeff;
}

.extension-list p {
    margin:
        8px 0;
}

pre {
    overflow:
        auto;
    background:
        #090d14;
    padding:
        16px;
    border-radius:
        9px;
    color:
        #cfd8e8;
    max-height:
        320px;
}

@media (
    max-width: 900px
) {

    .layout {
        grid-template-columns:
            1fr;
    }

    .sidebar {
        display:
            none;
    }

    .stats {
        grid-template-columns:
            1fr 1fr;
    }

    .grid {
        grid-template-columns:
            1fr;
    }

}


/* =====================================================
   HOPE VOICE RESPONSIVE DESKTOP FIX
   ===================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.layout {
    width: 100%;
    grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
    width: 220px;
    min-width: 220px;
}

main {
    min-width: 0;
    width: 100%;
    padding: 22px;
    overflow-x: hidden;
}

header {
    gap: 15px;
}

.stats {
    width: 100%;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.card,
.panel {
    min-width: 0;
}

.card strong {
    overflow-wrap: anywhere;
}

.grid {
    width: 100%;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

pre {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    font-size: 12px;
    line-height: 1.45;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mode-buttons button {
    white-space: nowrap;
}

nav .nav {
    width: 100%;
}


/* Normal desktop / laptop */

@media (max-width: 1400px) {

    .layout {
        grid-template-columns:
            190px minmax(0, 1fr);
    }

    .sidebar {
        width: 190px;
        min-width: 190px;
        padding:
            18px 10px;
    }

    main {
        padding: 18px;
    }

    .stats {
        gap: 10px;
    }

    .card {
        padding: 15px;
    }

    .card strong {
        font-size: 20px;
    }

    .panel {
        padding: 16px;
    }

}


/* Smaller desktop */

@media (max-width: 1150px) {

    .stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .grid {
        grid-template-columns:
            1fr;
    }

}


/* Tablet */

@media (max-width: 850px) {

    .layout {
        display: block;
    }

    .sidebar {
        display: none;
    }

    main {
        padding: 14px;
    }

    header {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* Phone */

@media (max-width: 600px) {

    .stats {
        grid-template-columns:
            1fr;
    }

    .mode-buttons {
        display: grid;
        grid-template-columns:
            1fr 1fr;
    }

    .mode-buttons button {
        width: 100%;
    }

}
