* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    background: #f4f4f4;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    min-height: 100vh;
    background: linear-gradient(180deg, #7b2ff7, #3a2fd1);
    color: white;
    padding: 20px;
    transition: 0.3s;
    position: relative;
    z-index: 1001;
}

.sidebar img {
    width: 100px;
    margin-bottom: 20px;
}

.menu li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.menu li:hover {
    background: rgba(255,255,255,0.2);
}

/* MAIN */
.main {
    flex: 1;
    padding: 25px;
    width: 100%;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* CARDS (GRID MODERNO) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    padding: 20px;
    border-radius: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card button {
    margin-top: 20px;
    padding: 10px;
    border-radius: 20px;
    border: none;
    background: white;
    cursor: pointer;
}

/* COLORS */
.blue { background: linear-gradient(180deg, #1e3c72, #2a5298); }
.purple { background: linear-gradient(180deg, #9b59b6, #6a0dad); }
.green { background: linear-gradient(180deg, #2e9e6b, #1b7a4f); }
.teal { background: linear-gradient(180deg, #1abc9c, #16a085); }
.yellow { background: linear-gradient(180deg, #f1c40f, #d4ac0d); }

/* PROGRESSO */
.progress-section {
    margin-top: 40px;
}

.progress-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 20px;
}

.progress-card {
    background: #dfe6f3;
    padding: 20px;
    border-radius: 15px;
}

.bar {
    height: 10px;
    background: #bbb;
    border-radius: 10px;
    margin-top: 10px;
}

.fill {
    width: 70%;
    height: 100%;
    background: #3a2fd1;
    border-radius: 10px;
}

/* STATS */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat {
    background: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

/* ICONS */
.material-icons {
    font-size: 22px;
}

.icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* MENU MOBILE */
.menu-btn {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* OVERLAY ESCURO */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    top: 0;
    left: 0;
    display: none;
    z-index: 1000;
}

.overlay.active {
    display: block;
}

/* RESPONSIVO */
@media (max-width: 900px) {

    body {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100%;
    }

    .sidebar.active {
        left: 0;
    }

    .menu-btn {
        display: block;
    }

    .progress-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {

    .main {
        padding: 15px;
    }

    .header h1 {
        font-size: 18px;
    }

    .card {
        min-height: 150px;
    }
}