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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
}

.stat-card.pending .stat-value {
    color: #f59e0b;
}

.stat-card.processing .stat-value {
    color: #3b82f6;
}

.stat-card.completed .stat-value {
    color: #10b981;
}

.stat-card.error .stat-value {
    color: #ef4444;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #667eea;
    color: white;
}

.filter-btn.active {
    background: #667eea;
    color: white;
}

.requests-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.requests-section h2 {
    margin-bottom: 20px;
    color: #667eea;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: #f9fafb;
    transition: all 0.2s;
}

.request-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.request-id {
    font-weight: bold;
    color: #667eea;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

.request-prompt {
    margin: 10px 0;
    font-style: italic;
    color: #374151;
}

.request-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #6b7280;
    margin-top: 10px;
}

.request-response {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #10b981;
}

.request-error {
    margin-top: 15px;
    padding: 15px;
    background: #fee2e2;
    border-radius: 6px;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 1.1em;
}

.api-docs {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.api-docs h2 {
    margin-bottom: 20px;
    color: #667eea;
}

.endpoint {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.endpoint h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.endpoint p {
    color: #6b7280;
    margin-bottom: 10px;
}

.endpoint pre {
    background: #1f2937;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
}

.endpoint code {
    color: #10b981;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .request-meta {
        flex-direction: column;
        gap: 5px;
    }
}
