body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    padding: 20px;
    text-align: center;
}

h1 {
    color: #0366d6;
    margin-bottom: 5px;
}

.subtitle {
    color: #555;
    margin-bottom: 25px;
}

/* top controls */
.top-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* dark button */
#darkModeToggle {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #24292e;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

#darkModeToggle:hover {
    background: #444;
}

/* language dropdown */
#languageFilter {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    background: #0366d6;
    color: white;
    cursor: pointer;
}

/* summary dashboard */
#summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 18px 28px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-width: 110px;
}

.summary-number {
    font-size: 22px;
    font-weight: bold;
    color: #0366d6;
}

.summary-label {
    font-size: 12px;
    color: #777;
}

/* sorting */
#sorting {
    margin-bottom: 25px;
}

#sorting button {
    margin: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #0366d6;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

#sorting button:hover {
    background: #024c9c;
    transform: translateY(-2px);
}

/* chart */
.chart-wrapper {
    max-width: 950px;
    height: 420px;
    margin: 35px auto;
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#commitChart {
    width: 100% !important;
    height: 100% !important;
}

/* repo grid */
#repo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* repo card */
.repo-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.repo-card:hover {
    transform: scale(1.05);
}

.repo-card h2 a {
    color: #0366d6;
    text-decoration: none;
}

.repo-card p {
    margin: 6px 0;
    font-size: 0.9rem;
}

/* DARK MODE */
.dark {
    background: #121212;
    color: white;
}

.dark .repo-card {
    background: #1e1e1e;
}

.dark .summary-card {
    background: #1e1e1e;
}

.dark .chart-wrapper {
    background: #1e1e1e;
}

.dark #languageFilter {
    background: #333;
}

.dark #sorting button {
    background: #333;
}

.dark #sorting button:hover {
    background: #555;
}
