:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1f2937;
    --border-color: #a9a9a9;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #919191;
    --accent-blue: #58a6ff;
    --accent-purple: #a371f7;
    --accent-green: #f9f9f9;
    --accent-orange: #f0883e;
    --accent-yellow: #d29922;
    --hover-bg: rgba(177, 186, 196, 0.12);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #ffffff;
    --border-color: #d0d7de;
    --text-primary: #1f2328;
    --text-secondary: #57606a;
    --text-muted: #6e7781;
    --accent-blue: #0969da;
    --accent-purple: #8250df;
    --accent-green: #1a7f37;
    --accent-orange: #bc4c00;
    --accent-yellow: #bf8700;
    --hover-bg: rgba(175, 184, 193, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    line-height: 1.6;
}

.infographic-container {
    width: 100%;
    max-width: 900px;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0;
    overflow: hidden;
}

.header {
    text-align: center;
    padding: 10px 20px 0px;
    background-color: var(--bg-secondary);
    position: relative;
}

.theme-toggle {
    position: relative;
    top: -100px;
    right: 25px;
    background: #efefef;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    font-size: 0.9em;
}

.theme-toggle:hover {
    background: var(--accent-orange)
    /* border-color: var(--text-muted); */
}

.theme-toggle img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.theme-toggle:hover img {
    transform: rotate(20deg);
}

.header h1 {
    color: var(--text-primary);
    font-size: 3.5em;
    font-weight: 50;
    margin: 0;
    letter-spacing: -0.5px;
    padding: 0px;
    height: 75px;
}

.header p {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin: 0;
    font-weight: 400;
}

.repo-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.repo-item {
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: 6px;
    margin: 0px 5px 10px 5px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    width: 400px;
    display: flex;
    flex-direction: column;
    height: 180px;
}

.repo-item:hover {
    border-color: var(--text-muted);
    background-color: var(--bg-tertiary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.repo-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
    gap: 5px;
    flex-wrap: nowrap;
    height: 30px;
    line-height: 15px
}

.stats-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.stats-item {
    background-color: var(--bg-primary);
    padding: 10px;
    border-radius: 6px;
    margin: 0px 5px 10px 5px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    width: 400px;
    display: flex;
    flex-direction: column;
    height: 420px;
}

.stats-item h4 {
    margin: 15px;
    margin-top: 0px;
    margin-left: 0px;
}

.stats-container {
    max-width: 300px;
    margin: 0px auto;
}

.stats-item canvas {
    width: 350px;
}

.stats-item:hover {
    border-color: var(--text-muted);
    background-color: var(--bg-tertiary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.category-badge {
    margin-left: auto;
    font-size: 0.7em;
    padding: 4px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.repo-icon {
    font-size: 1.3em;
    opacity: 0.8;
}

.repo-name {
    font-weight: 600;
    font-size: 80%;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.repo-name:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.repo-stars strong {
    color: var(--accent-yellow);
    font-weight: 500;
}

.repo-description:hover {
    text-overflow: unset;
    overflow: auto;
}

.repo-description {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
    text-overflow: ellipsis;
    height: 80px;
    overflow: hidden;
}

.repo-bottom {
    margin-top: 10px; 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    font-size: 75%;
    align-content: flex-end;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85em;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.update-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75em;
    padding: 10px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab {
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.tab:hover {
    color: var(--text-primary);
    background-color: var(--hover-bg);
}

.tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-orange);
}

.tab-content {
    display: none;
    padding: 24px;
    background-color: var(--bg-secondary);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 1.3em;
    font-weight: 600;
    padding-bottom: 12px;
}

.link-externo {
    text-decoration: none; 
    color: var(--text-secondary); 
    font-size: 0.9em;
}

.link-externo:hover {
    text-decoration: underline; 
    color: var(--accent-orange); 
}

.img-link-externo {
    width: 16px; 
    height: 16px; 
    vertical-align: middle;
}

.img-link-externo:hover{
    filter: invert(48%) sepia(72%) saturate(4473%) hue-rotate(358deg) brightness(95%) contrast(101%);
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .infographic-container {
        border-radius: 0;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .tabs {
        padding: 0 12px;
    }

    .tab {
        padding: 10px 12px;
        font-size: 0.85em;
    }

    .tab-content {
        padding: 16px;
    }
}