/* Main error page styles */
.error-page {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
}

.error-message {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.error-suggestion {
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.error-btn {
    padding: 12px 24px;
    background: #8a2e25;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.error-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.error-btn-secondary {
    background: #6c757d;
}

.error-btn-secondary:hover {
    background: #545b62;
}

.error-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-details {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
    text-align: left;
}

/* Flash error box / info boxes for specific errors */
.flash-error,
.rate-limit-info,
.service-status,
.maintenance-time {
    display: block;
    margin: 1rem 0 1.25rem 0;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(138,46,37,0.06);
}

/* Rate limit info (429 error) */
.rate-limit-info {
    background: #fff3cd;
    border: 1px solid #f3c2be;
    color: #856404;
}

/* Service status (503 error) */
.service-status {
    background: #fbeaea;
    border: 1px solid #f3c2be;
    color: #8a2e25;
}

/* Maintenance time info */
.maintenance-time {
    background: #fff3cd;
    border: 1px solid #f3c2be;
    color: #856404;
}

/* Flash error (general) */
.flash-error {
    background: #fbeaea;
    border: 1px solid #f3c2be;
    color: #8a2e25;
}

.countdown {
    font-weight: bold;
    color: var(--danger);
}

/* Small screens */
@media (max-width: 640px) {
    .error-page {
        margin: 2.5rem 1rem;
        padding: 1.5rem;
    }
    .error-title {
        font-size: 1.8rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-btn {
        width: 100%;
        max-width: 200px;
    }
}
