/* ========================================
   Error Pages Styling
   ======================================== */

.error-page-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
}

.error-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Icon Section */
.error-icon {
    margin-bottom: 2rem;
    position: relative;
}

.error-emoji {
    font-size: 5rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-top: 0.5rem;
    font-family: 'Arial Black', sans-serif;
}

/* Error Content */
.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Error Suggestions */
.error-suggestions {
    text-align: left;
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #667eea;
}

.error-suggestions p {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-suggestions ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #4a5568;
}

.error-suggestions ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Error Status Box (for 503) */
.error-status-box {
    background: #edf2f7;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border: 2px solid #cbd5e0;
}

.error-status-box .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Error Actions */
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.error-actions .btn {
    min-width: 180px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.error-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.error-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.error-actions .btn-outline-secondary {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
}

.error-actions .btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.error-actions .btn i {
    margin-right: 0.5rem;
}

/* Error Help Section */
.error-help {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 0.875rem;
}

.error-help p {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #4a5568;
}

.error-help a {
    color: #667eea;
    transition: color 0.2s ease;
}

.error-help a:hover {
    color: #764ba2;
    text-decoration: none;
}

.error-help .mx-2 {
    color: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-page-container {
        padding: 1rem;
    }

    .error-card {
        padding: 2rem 1.5rem;
    }

    .error-code {
        font-size: 4rem;
    }

    .error-emoji {
        font-size: 3.5rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .error-suggestions {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 3rem;
    }

    .error-emoji {
        font-size: 2.5rem;
    }

    .error-title {
        font-size: 1.25rem;
    }

    .error-card {
        padding: 1.5rem 1rem;
    }
}

/* Print Styles */
@media print {
    .error-page-container {
        background: white;
    }

    .error-card {
        box-shadow: none;
    }

    .error-actions,
    .error-help {
        display: none;
    }
}
