* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    background-color: #f4f6f9;
    color: #222;
}

.sidebar {
    width: 240px;
    min-height: 100vh;
    background-color: #1f2937;
    color: white;
    padding: 25px 20px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 35px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: #374151;
}

.main-content {
    flex: 1;
    padding: 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h1 {
    margin-bottom: 5px;
}

.topbar p {
    color: #666;
}

button {
    border: none;
    background-color: #2563eb;
    color: white;
    padding: 11px 18px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background-color: #1d4ed8;
}

.statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card {
    background-color: white;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.card h3 {
    margin-top: 0;
    color: #555;
}

.card p {
    font-size: 32px;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 0;
}

.project-section {
    margin-top: 35px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
    margin-top: 0;
}

.project-card p {
    color: #666;
    min-height: 45px;
}

.project-card span {
    display: inline-block;
    background-color: #dcfce7;
    color: #166534;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.dark-mode {
    background-color: #111827;
    color: white;
}

.dark-mode .card,
.dark-mode .project-card {
    background-color: #1f2937;
}

.dark-mode .topbar p,
.dark-mode .project-card p {
    color: #d1d5db;
}

@media screen and (max-width: 900px) {
    .statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    body {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .statistics {
        grid-template-columns: 1fr;
    }

    .topbar {
        display: block;
    }
}