/* CCC Schedule Collector Status Dashboard Styles */

:root {
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-unknown: #6b7280;
    --color-background: #f9fafb;
    --color-card: #ffffff;
    --color-text: #1f2937;
    --color-text-secondary: #6b7280;
    --color-border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0 20px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.last-updated {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.status-card {
    background: var(--color-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s ease;
}

.status-card:hover {
    box-shadow: var(--shadow-md);
}

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

.status-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-icon {
    font-size: 1rem;
}

.status-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
}

.status-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.status-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.status-unknown {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--color-unknown);
}

.status-details {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.status-details p {
    margin-bottom: 8px;
}

.status-details p:last-child {
    margin-bottom: 0;
}

.status-details strong {
    color: var(--color-text);
}

.error-message {
    color: var(--color-error) !important;
    margin-top: 8px;
}

.status-details a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.status-details a:hover {
    text-decoration: underline;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.error-container {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-card);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.error-container h2 {
    color: var(--color-error);
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid var(--color-border);
    margin-top: 60px;
}

footer p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

footer a {
    color: #3b82f6;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #111827;
        --color-card: #1f2937;
        --color-text: #f3f4f6;
        --color-text-secondary: #9ca3af;
        --color-border: #374151;
    }
}