body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f5f7fa;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background-color: #f0f3f7;
    padding-top: 20px;
}

    .sidebar h2 {
        color: #075E54;
        text-align: center;
        margin-bottom: 30px;
    }

    .sidebar a {
        display: block;
        padding: 12px 20px;
        margin: 4px 12px;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        border-radius: 8px;
    }

        .sidebar a:hover,
        .sidebar a.active {
            background-color: #25d366;
            color: #fff;
        }

/* Topbar */
.topbar {
    margin-left: 220px;
    height: 60px;
    background-color: #075E54;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.profile {
    display: flex;
    align-items: center;
}

    .profile img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        margin-left: 10px;
    }

/* Main */
.main {
    margin-left: 220px;
    padding: 20px;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .2s ease;
}

    .card:hover {
        transform: translateY(-4px);
    }

    .card h3 {
        margin-top: 0;
        color: #075E54;
    }

    .card p {
        color: #555;
    }

    .card button {
        margin-top: 15px;
        padding: 10px 14px;
        border: none;
        background-color: #25d366;
        color: white;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 500;
    }

.bottom-cards {
    margin-top: 25px;
}

/* Prevent footer overlap */
footer {
    margin-left: 220px;
    padding: 15px;
    background: #fff;
}

/* Dashboard wrapper */
.dashboard-container {
    max-width: 1400px;
    margin: auto;
}

/* Section title */
.section-title {
    margin: 30px 0 15px;
    font-weight: 600;
    color: #333;
}

/* Summary cards tweak */
.card h2 {
    font-size: 2rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

        .sidebar h2 {
            display: none;
        }

        .sidebar a {
            text-align: center;
            padding: 12px 0;
        }

    .topbar,
    .main,
    footer {
        margin-left: 70px;
    }
}


html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
}

/* Sidebar stays fixed */
.sidebar {
    width: 240px;
    background: #f4f6f8;
}

/* Page content (topbar + main + footer) */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

/* Main content grows to push footer down */
.main {
    flex: 1;
    padding: 20px;
    background: #f8f9fb;
}

/* Footer */
.footer {
    border-top: 1px solid #ddd;
    padding: 10px 20px;
    background: #fff;
    font-size: 14px;
}
