/* ===================================================================
   BMC Monitor - Error Pages Stylesheet
   Professional, Modern, Responsive Design
   =================================================================== */

/* Error Page Container */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.error-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 60px 40px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

/* 404 Specific Background */
.error-page.error-404 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 403 Specific Background */
.error-page.error-403 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 500 Specific Background */
.error-page.error-500 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 503 Specific Background */
.error-page.error-503 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 401 Specific Background */
.error-page.error-401 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

/* Error Icon/Code */
.error-icon {
    font-size: 120px;
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease-out;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    color: #1e3a8a;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.6s ease-out;
}

/* Error Title */
.error-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 20px 0 15px 0;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* Error Message */
.error-message {
    font-size: 18px;
    color: #718096;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.4s both;
}

/* Error Details */
.error-details {
    background: #f7fafc;
    border-left: 4px solid #1e3a8a;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
    animation: fadeIn 1.2s ease-out 0.6s both;
}

.error-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.error-details p {
    font-size: 14px;
    color: #718096;
    margin: 5px 0;
}

.error-details ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.error-details li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 14px;
}

.error-details li:before {
    content: "→";
    margin-right: 10px;
    color: #1e3a8a;
    font-weight: bold;
}

/* Action Buttons */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: fadeIn 1.4s ease-out 0.8s both;
}

.btn-error {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-error {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-error:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary-error {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary-error:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-error {
    background: transparent;
    color: #4a5568;
    border: 2px solid #cbd5e0;
}

.btn-outline-error:hover {
    background: #f7fafc;
    border-color: #4a5568;
}

/* Brand Logo */
.error-logo {
    width: 150px;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out;
}

/* Support Info */
.error-support {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    animation: fadeIn 1.6s ease-out 1s both;
}

.error-support h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.error-support p {
    font-size: 14px;
    color: #718096;
    margin: 5px 0;
}

.error-support a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.error-support a:hover {
    text-decoration: underline;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #fed7d7;
    color: #c53030;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.status-badge.warning {
    background: #feebc8;
    color: #c05621;
}

.status-badge.info {
    background: #bee3f8;
    color: #2c5282;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Loading Spinner */
.error-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-container {
        padding: 40px 25px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-icon {
        font-size: 80px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-message {
        font-size: 16px;
    }

    .error-actions {
        flex-direction: column;
    }

    .btn-error {
        width: 100%;
        justify-content: center;
    }

    .error-details {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .error-container {
        padding: 30px 20px;
    }

    .error-code {
        font-size: 60px;
    }

    .error-icon {
        font-size: 60px;
    }

    .error-title {
        font-size: 20px;
    }

    .error-message {
        font-size: 14px;
    }

    .btn-error {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .error-container {
        background: #2d3748;
    }

    .error-code {
        color: #667eea;
    }

    .error-title {
        color: #e2e8f0;
    }

    .error-message {
        color: #cbd5e0;
    }

    .error-details {
        background: #1a202c;
        border-left-color: #667eea;
    }

    .error-details h3 {
        color: #e2e8f0;
    }

    .error-details p,
    .error-details li {
        color: #a0aec0;
    }

    .error-support {
        border-top-color: #4a5568;
    }

    .error-support h4 {
        color: #e2e8f0;
    }

    .error-support p {
        color: #cbd5e0;
    }
}
