* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #0d1117;
    color: white;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 50px 20px 30px;
}

header h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

header p {
    color: #8b949e;
}

main {
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #30363d;
    background: #161b22;
    color: white;
    font-size: 16px;
}

.search-box button {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    background: #238636;
    color: white;
    cursor: pointer;
}

#loading {
    display: none;
    text-align: center;
    margin: 20px;
    color: #8b949e;
}

#error {
    display: none;
    text-align: center;
    margin: 20px;
}

#profile {
    background: #161b22;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

#avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
}

#name {
    font-size: 28px;
    margin-bottom: 10px;
}

#bio {
    color: #8b949e;
    margin-bottom: 30px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.stats h3 {
    font-size: 25px;
}

.stats p {
    color: #8b949e;
    margin-top: 5px;
}

#analytics {
    margin-top: 30px;
    text-align: center;
}

#analytics h2 {
    margin-bottom: 20px;
}

.analytics-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.analytics-card {
    background: #161b22;
    padding: 25px;
    border-radius: 12px;
}

.analytics-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.analytics-card p {
    color: #8b949e;
}

#charts {
    margin-top: 40px;
}

#charts h2 {
    text-align: center;
    margin-bottom: 20px;
}

.chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-card {
    background: #161b22;
    padding: 20px;
    border-radius: 12px;
}

#repositories-section {
    margin-top: 40px;
}

#repositories-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.repo-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.repo-controls input,
.repo-controls select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #30363d;
    background: #161b22;
    color: white;
}

.repo-controls input {
    flex: 1;
}

#repoContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.repo-card {
    background: #161b22;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #30363d;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repo-card h3 {
    font-size: 20px;
}

.repo-card p {
    color: #8b949e;
    line-height: 1.5;
}

.repo-info {
    display: flex;
    gap: 15px;
    color: #8b949e;
    font-size: 14px;
}

.repo-card a {
    color: #58a6ff;
    text-decoration: none;
}

.repo-card a:hover {
    text-decoration: underline;
}

#pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.page-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.page-btn.active {
    font-weight: bold;
}

@media (max-width: 768px) {

    header h1 {
        font-size: 30px;
    }

    .analytics-container {
        grid-template-columns: 1fr;
    }

    .chart-container {
        grid-template-columns: 1fr;
    }

    #repoContainer {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .repo-controls {
        flex-direction: column;
    }

}