/* ===== ERROR PAGES STYLES ===== */

/* Common Error Page Layout */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.error-content {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.error-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--lms-secondary-color) 0%,
        var(--lms-accent) 100%
    );
}

/* 404 Specific Styles */
.error-content[data-error="404"]::before {
    background: linear-gradient(
        90deg,
        var(--lms-secondary-color) 0%,
        var(--lms-accent) 100%
    );
}

/* 403 Specific Styles */
.error-content[data-error="403"]::before {
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
}

/* 500 Specific Styles */
.error-content[data-error="500"]::before {
    background: linear-gradient(90deg, #fd7e14 0%, #ffc107 100%);
}

/* Generic Error Styles */
.error-content[data-error="generic"]::before {
    background: linear-gradient(90deg, #6c757d 0%, #adb5bd 100%);
}

/* Error Icon Animations */
.error-icon {
    margin-bottom: 40px;
}

.error-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 120px;
    font-weight: 900;
    color: var(--lms-secondary-color);
    line-height: 1;
}

.error-4,
.error-3,
.error-5,
.error-0 {
    animation: lms-float 3s ease-in-out infinite;
}

.error-zero {
    width: 80px;
    height: 80px;
    border: 8px solid var(--lms-secondary-color);
    border-radius: 50%;
    position: relative;
    animation: lms-float 3s ease-in-out infinite 0.5s;
}

/* 403 Specific Colors */
.error-content[data-error="403"] .error-number {
    color: #dc3545;
}

.error-content[data-error="403"] .error-zero {
    border-color: #dc3545;
}

/* 500 Specific Colors */
.error-content[data-error="500"] .error-number {
    color: #fd7e14;
}

.error-content[data-error="500"] .error-zero {
    border-color: #fd7e14;
}

.error-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.error-eyes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.error-eye {
    width: 8px;
    height: 8px;
    background: var(--lms-secondary-color);
    border-radius: 50%;
    animation: blink 4s infinite;
}

.error-content[data-error="403"] .error-eye {
    background: #dc3545;
}

.error-content[data-error="500"] .error-eye {
    background: #fd7e14;
}

.error-mouth {
    width: 20px;
    height: 8px;
    border: 2px solid var(--lms-secondary-color);
    border-top: none;
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
}

.error-content[data-error="403"] .error-mouth {
    border-color: #dc3545;
}

.error-content[data-error="500"] .error-mouth {
    border-color: #fd7e14;
}

@keyframes blink {
    0%,
    90%,
    100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

/* Generic Error Symbol */
.error-symbol {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: lms-float 3s ease-in-out infinite;
}

.error-symbol i {
    font-size: 3rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Error Message */
.error-message {
    margin-bottom: 40px;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lms-gray-800);
    margin-bottom: 20px;
    animation: lms-fadeInUp 0.8s ease-out;
}

.error-description {
    font-size: 1.1rem;
    color: var(--lms-gray-600);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    animation: lms-fadeInUp 0.8s ease-out 0.2s both;
}

/* Action Buttons */
.error-actions {
    margin-bottom: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: lms-fadeInUp 0.8s ease-out 0.4s both;
}

.error-actions .btn {
    min-width: 180px;
    transition: all 0.3s ease;
}

.error-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Search Section */
.error-search {
    margin-bottom: 40px;
    animation: lms-fadeInUp 0.8s ease-out 0.6s both;
}

.search-label {
    font-size: 1rem;
    color: var(--lms-gray-600);
    margin-bottom: 15px;
}

.search-box {
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    border: 2px solid #e9ecef !important;
    border-radius: 10px 0 0 10px;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--lms-secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--lms-secondary-color-rgb), 0.25);
}

.search-box .btn {
    border-radius: 0 10px 10px 0;
    padding: 12px 20px;
}

/* Quick Links */
.error-quick-links {
    animation: lms-fadeInUp 0.8s ease-out 0.8s both;
}

.quick-links-label {
    font-size: 1rem;
    color: var(--lms-gray-600);
    margin-bottom: 20px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: var(--lms-gray-700);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-link-item:hover {
    background: white;
    border-color: var(--lms-secondary-color);
    color: var(--lms-secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.quick-link-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.quick-link-item:hover i {
    transform: scale(1.1);
}

.quick-link-item span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Status Section */
.error-status {
    margin-bottom: 40px;
    animation: lms-fadeInUp 0.8s ease-out 0.6s both;
}

.status-label {
    font-size: 1rem;
    color: var(--lms-gray-600);
    margin-bottom: 15px;
}

.status-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--lms-gray-700);
    font-size: 0.9rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-maintenance {
    background: #fd7e14;
}

.status-working {
    background: #28a745;
}

/* Contact Section */
.error-contact {
    animation: lms-fadeInUp 0.8s ease-out 0.6s both;
}

.contact-label {
    font-size: 1rem;
    color: var(--lms-gray-600);
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: var(--lms-gray-700);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-item i {
    color: var(--lms-secondary-color);
    font-size: 1.2rem;
}

.error-content[data-error="403"] .contact-item i {
    color: #dc3545;
}

.error-content[data-error="500"] .contact-item i {
    color: #fd7e14;
}

.contact-item span {
    font-weight: 500;
}

/* Error Details */
.error-details {
    animation: lms-fadeInUp 0.8s ease-out 0.6s both;
}

.error-details details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.error-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--lms-gray-700);
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.error-details summary:hover {
    background: #e9ecef;
}

.error-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    color: var(--lms-gray-700);
}

.error-info p {
    margin-bottom: 8px;
    word-break: break-all;
}

.error-info strong {
    color: var(--lms-gray-800);
}

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

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

    .error-zero {
        width: 60px;
        height: 60px;
        border-width: 6px;
    }

    .error-symbol {
        width: 100px;
        height: 100px;
    }

    .error-symbol i {
        font-size: 2.5rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-description {
        font-size: 1rem;
    }

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

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

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-indicators {
        flex-direction: column;
        gap: 15px;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .error-page {
        padding: 40px 0;
    }

    .error-content {
        padding: 30px 15px;
    }

    .error-number {
        font-size: 60px;
        gap: 5px;
    }

    .error-zero {
        width: 50px;
        height: 50px;
        border-width: 5px;
    }

    .error-symbol {
        width: 80px;
        height: 80px;
    }

    .error-symbol i {
        font-size: 2rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

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