.center {
    text-align: center;
}

/* Token Section Styles */
.token-section {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.token-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.token-form {
    margin-bottom: 20px;
}

.token-form input {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    border: 2px solid #d1d5da;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.token-form input:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.token-form button {
    background: #0969da;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.token-form button:hover {
    background: #0860ca;
}

.token-form button:disabled {
    background: #8c959f;
    cursor: not-allowed;
}

.token-info {
    color: #656d76;
    font-size: 14px;
    line-height: 1.5;
}

.token-info a {
    color: #0969da;
    text-decoration: none;
}

.token-info a:hover {
    text-decoration: underline;
}

.token-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.token-status.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.token-status.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.token-actions {
    margin-top: 20px;
    text-align: center;
}

.token-actions button {
    background: #6f42c1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin: 0 5px;
}

.token-actions button:hover {
    background: #5a3298;
}

/* Organization Section Styles */
.org-section {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.org-section h2 {
    color: #24292f;
    margin-bottom: 20px;
    text-align: center;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.org-card {
    padding: 20px;
    border: 2px solid #d1d5da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.org-card:hover {
    border-color: #0969da;
    background: #f6f8fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.org-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #d1d5da;
}

.org-info h3 {
    margin: 0 0 8px 0;
    color: #24292f;
    font-size: 18px;
}

.org-info p {
    margin: 0;
    color: #656d76;
    font-size: 14px;
    line-height: 1.4;
}

.org-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #d1d5da;
}

.back-btn {
    background: #6f42c1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background: #5a3298;
}

.no-orgs {
    text-align: center;
    padding: 40px;
    color: #656d76;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 30px;
}

.repos-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.repo-card {
    border-radius: 8px;
    padding: 20px;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.repo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.repo-card h2 {
    margin-top: 0;
    color: #0969da;
    font-size: 1.5em;
}

.repo-card p {
    color: #656d76;
    line-height: 1.5;
}

.issues-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e4e8;
}

.issues-info h3 {
    margin: 0 0 10px 0;
    
    font-size: 1.1em;
}

.issue-count {
    color: #d1242f;
    font-weight: bold;
}

.issues-info h4 {
    margin: 15px 0 5px 0;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.issues-info ul {
    margin: 0;
    padding-left: 20px;
}

.issues-info li {
    margin: 5px 0;
}

/* Users Summary Section */
.users-summary {
    
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(87, 6, 6, 0.1);
}

.users-summary h2 {
    margin-top: 0;
    color: #0969da;
    text-align: center;
    margin-bottom: 20px;
}

/* Organization Stats */
.org-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(87, 6, 6, 0.1);
    
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #0969da;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #656d76;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.user-card {
    
    
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(87, 6, 6, 0.1);
}

.user-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #e1e4e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.username {
    font-weight: bold;
    margin-bottom: 2px;
}

.user-issues {
    font-size: 0.9em;
    color: #d1242f;
    font-weight: 500;
}

.user-issues-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-issues.open {
    background: #fff5f5;
    color: #c53030;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    border: 1px solid #feb2b2;
}

.user-issues.closed {
    background: #f0fff4;
    color: #38a169;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    border: 1px solid #9ae6b4;
}

/* Tema oscuro para las estadísticas de issues */
[data-theme="dark"] .user-issues.open {
    background: #3d1a1a;
    color: #fc8181;
    border: 1px solid #822727;
}

[data-theme="dark"] .user-issues.closed {
    background: #1a2f1a;
    color: #68d391;
    border: 1px solid #276749;
}

/* Repos Section */
.repos-section h2 {
    color: #0969da;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

/* Error Handling */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 20px;
}

.error-message {
    background: #f85149;
    
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(248, 81, 73, 0.1);
}

.error-message h2 {
    color: #d1242f;
    margin-top: 0;
    margin-bottom: 15px;
}

.error-message p {
    color: #24292f;
    margin-bottom: 15px;
}   

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}
#chartdiv {
  width: 100%;
  height: 500px;
}
.retry-button, .clear-cache-button {
    background: #0969da;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.retry-button:hover, .clear-cache-button:hover {
    background: #0856c4;
}

.clear-cache-button {
    background: #6f42c1;
}

.clear-cache-button:hover {
    background: #5a32a3;
}

.error-help {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.error-help p {
    margin: 0 0 10px 0;
    font-weight: 500;
}

.error-help ul {
    margin: 0;
    padding-left: 20px;
}

.error-help li {
    margin: 5px 0;
    color: #656d76;
}

.cache-info {
    background: #f1f8ff;
    border: 1px solid #0969da;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.cache-info p {
    margin: 0 0 10px 0;
    font-weight: 500;
    color: #0969da;
}

#cache-status {
    font-family: monospace;
    font-size: 0.9em;
    color: #24292f;
    line-height: 1.4;
}

/* Cache Indicator */
.cache-indicator {
    
    
    border-radius: 6px;
    padding: 10px 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #0969da;
    font-size: 0.9em;
    font-weight: 500;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(87, 6, 6, 0.1);
}

.refresh-btn {
    background: #0969da;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 10px;
    transition: background 0.2s ease;
}

.refresh-btn:hover {
    background: #0856c4;
}

/* User Card with Avatar */
.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-card.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #0969da;
}

.user-info .user-login {
    font-size: 0.8em;
    color: #656d76;
    margin-bottom: 2px;
}

