.config {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.config h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.config-table {
    width: 100%;
}

.config-table tr {
    border-bottom: 1px solid var(--border-color);
}

.config-table td {
    padding: 12px 15px;
    vertical-align: top;
}

.config-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 150px;
}

.config-table td:last-child {
    color: var(--text-primary);
}

.model-item, .endpoint-item {
    margin: 5px 0;
}

.unlimited-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.detail-btn {
    margin-right: 10px;
    padding: 4px 12px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.detail-btn:hover {
    background: var(--accent-hover);
}

.charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.chart-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.chart-card h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 18px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.time-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.time-btn {
    padding: 8px 16px;
    border: 2px solid var(--accent-color);
    background: var(--bg-secondary);
    color: var(--accent-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
    outline: none;
    font-family: 'Cascadia Code', monospace;
}

.time-btn:hover {
    background: var(--time-btn-hover);
    transform: translateY(-2px);
}

.time-btn.active {
    background: var(--accent-color);
    color: white;
}

@media (max-width: 1200px) {
    .charts { grid-template-columns: 1fr; }
    .models-card { grid-column: span 1; }
}

.usage-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.usage-section h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.usage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.usage-card {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.usage-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.usage-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.5s ease, background 0.3s ease;
    border-radius: 12px;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #F44336, #EF5350);
}

.usage-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.usage-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.usage-reset {
    font-size: 12px;
    color: var(--text-secondary);
}
