* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    transition: background-color 3s,
                color 3s,
                border-color 3s;
}

body {
    background: #0f172a;
    color: white;
    background: linear-gradient(180deg, #03122b, #020814);
    overflow-x: hidden;
}

body.light{
    background:#f1f5f9;
    color:#111;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

.glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: rgba(0, 217, 255, 0.12);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
}

.glow.one {
    top: -80px;
    left: -80px;
}

.glow.two {
    bottom: -80px;
    right: -80px;
    background: rgba(0, 255, 179, 0.1);
}

.verde{
    color: #15ff00;
}

.botaoTema{
    position: absolute;
    right: 40px;
    top: 80px;
    cursor: pointer;
}

/* 
===================================
            MENU TOPO
=================================== 
*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.logo a {
    color: #38bdf8;
    text-decoration: none;
}

/* MENU DESKTOP */

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav ul li{
    margin: 0;
}

nav a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8;
    background-color: #FFF;
}

/* BOTÃO MOBILE */

.menu-mobile {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* 
===================================
              LAYOUT
=================================== 
*/

.container {
    display: flex;
    margin-top: 70px;
}

/* 
===================================
            ASIDE FIXO
=================================== 
*/

aside {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    /* Cálculo da altura 100% - 70px do menu */
    height: calc(100vh - 70px);
    background: #1e293b;
    padding: 20px;
    overflow-y: auto;
}

aside h2 {
    margin-bottom: 20px;
    color: #38bdf8;
}

aside ul {
    list-style: none;
}

aside li {
    margin-bottom: 15px;
}

aside a {
    color: white;
    text-decoration: none;
}

aside a:hover {
    color: #38bdf8;
}

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

main {
    margin-left: 250px;
    padding: 40px;
    flex: 1;
    width: 100%;
}

.card {
    background: #1e293b;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    border: 1px solid #296069;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card h2 {
    margin-bottom: 15px;
    color: #38bdf8;
}

button{
    background: none;
    border: none;
    color: #FFF;
    font-size: 12px;
}

/* 
===================================
              RODAPÉ
=================================== 
*/

footer {
    background: #111827;
    text-align: center;
    padding: 30px;
    margin-left: 250px;
    border-top: 1px solid #296069;
}


/* 
===================================
            RESPONSIVO
=================================== 
*/

@media(max-width:768px) {

    .menu-mobile {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #111827;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    nav li{
        width: 100%;
    }

    nav a{
        display: block;
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #1f2937;
    }

    .botaoTema{
        position: absolute;
        right: 20px;
        top: 80px;
        cursor: pointer;
    }

    /* Aside deixa de ser fixo */
    aside {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
    }

    main {
        margin-left: 0;
        padding: 20px;
    }

    footer {
        margin-left: 0;
    }

    .container {
        flex-direction: column;
    }

}










/* 
===================================
            TEMA LIGHT
=================================== 
*/

body.light{

    background: linear-gradient(180deg, #dbeafe, #f8fafc);

    color: #111827;

}

/* grade do fundo */

body.light::before{

    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);

}

/* brilhos */

body.light .glow.one{

    background: rgba(59, 130, 246, 0.15);

}

body.light .glow.two{

    background: rgba(16, 185, 129, 0.15);

}

/* header */

body.light header{

    background: #ffffff;

    border-bottom: 1px solid #d1d5db;

}

/* logo */

body.light .logo a{

    color: #2563eb;

}

/* menu */

body.light nav a{

    color: #111827;

}

body.light nav a:hover{

    background: #e0f2fe;

    color: #2563eb;

}

/* aside */

body.light aside{

    background: #ffffff;

    border-right: 1px solid #d1d5db;

}

body.light aside h2{

    color: #2563eb;

}

body.light aside a{

    color: #111827;

}

body.light aside a:hover{

    color: #2563eb;

}

/* cards */

body.light .card{

    background: #ffffff;

    border: 1px solid #cbd5e1;

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);

}

body.light .card h2{

    color: #2563eb;

}

/* rodapé */

body.light footer{

    background: #ffffff;

    color: #111827;

    border-top: 1px solid #d1d5db;

}

/* ícones verdes */

body.light .verde{

    color: #16a34a;

}

body.light button{
    background: none;
    border: none;
    color: #000;
    font-size: 12px;
}