/**
 * Styles for Ukraine-Poland Border Queue Monitor
 * Extracted from Jinja2 template for static deployment
 */

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

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

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

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.last-update {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.95em;
}

.refresh-info {
    margin-top: 5px;
    font-size: 0.85em;
    opacity: 0.8;
}

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

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

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

.crossing-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.queue-count {
    font-size: 3em;
    font-weight: 700;
    margin: 15px 0;
    text-align: center;
}

.queue-label {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.queue-green {
    color: #10b981;
}

.queue-yellow {
    color: #f59e0b;
}

.queue-red {
    color: #ef4444;
}

.info-row {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 0.9em;
    color: #666;
}

.info-label {
    font-weight: 600;
    margin-right: 8px;
    color: #333;
}

.empty-state {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #666;
}

.empty-state h2 {
    color: #333;
    margin-bottom: 10px;
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.2em;
    padding: 40px;
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 20px auto;
    max-width: 600px;
    color: #991b1b;
    font-size: 0.95em;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    opacity: 0.9;
    font-size: 0.9em;
}

footer a {
    color: white;
    text-decoration: underline;
}

.manual-refresh {
    text-align: center;
    margin: 20px 0;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 2px solid white;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .queue-count {
        font-size: 2.5em;
    }
}
