/* Error Page - User-Friendly Design */
:root {
    --primary-orange: #ff6b35;
    --primary-orange-hover: #f54e12;
    --soft-blue: #4a90e2;
    --light-gray: #f8f9fa;
    --text-gray: #333333;
    --border-color: #e9ecef;
    --success-green: #28a745;
    --warning-amber: #ffc107;
    --light-orange: rgba(255, 107, 53, 0.1);
    --light-blue: rgba(74, 144, 226, 0.1);
}

.error-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-gray);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.error-background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    max-width: 750px;
    width: 100%;
    text-align: center;
}

.error-header {
    margin-bottom: 2.5rem;
}

.error-icon {
    margin-bottom: 1rem;
}

.error-icon i {
    font-size: 4rem;
    color: var(--warning-amber);
    animation: gentle-pulse 2s ease-in-out infinite;
}

.error-title {
    margin: 0 0 1rem 0;
}

.main-text {
    display: block;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.error-explanation {
    margin: 2rem 0;
}

.explanation-box {
    background: var(--light-orange);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: left;
}

.explanation-box h2 {
    color: var(--primary-orange);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.explanation-box p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-gray);
}

.help-section {
    margin: 2.5rem 0;
    text-align: left;
}

.help-section h3 {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.help-options {
    display: grid;
    gap: 1rem;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    border-left: 4px solid var(--soft-blue);
    transition: all 0.3s ease;
}

.help-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #f0f8ff;
}

.help-item i {
    font-size: 1.3rem;
    color: var(--soft-blue);
    min-width: 20px;
    margin-top: 0.2rem;
}

.help-item div {
    flex: 1;
}

.help-item strong {
    display: block;
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.help-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-refresh,
.btn-home,
.btn-contact {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.btn-refresh {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-home {
    background: linear-gradient(135deg, var(--soft-blue), #357abd);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-contact {
    background: linear-gradient(135deg, var(--success-green), #1e7e34);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.contact-section {
    margin-top: 2rem;
    animation: slideInUp 0.5s ease-out;
    text-align: center;
}

.contact-box {
    background: var(--light-blue);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.contact-box h4 {
    color: var(--soft-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-methods {
    margin: 1.5rem 0;
}

.support-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--soft-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid var(--soft-blue);
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.support-email:hover {
    background: var(--soft-blue);
    color: white;
    transform: translateY(-2px);
}

.reference-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.reference-note {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0.5rem 0;
    font-weight: 600;
}

.reference-note code {
    background: rgba(255, 107, 53, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: var(--primary-orange);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.timestamp {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 0;
}

.reassurance-section {
    margin-top: 2rem;
}

.reassurance-box {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.reassurance-box h4 {
    color: var(--success-green);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.reassurance-box p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Animations */
@keyframes gentle-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .error-background {
        padding: 1rem;
    }

    .error-content {
        padding: 2rem 1.5rem;
    }

    .error-icon i {
        font-size: 3rem;
    }

    .help-options {
        gap: 0.8rem;
    }

    .help-item {
        padding: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-refresh,
    .btn-home,
    .btn-contact {
        width: 100%;
        max-width: 280px;
    }

    .support-email {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .error-content {
        padding: 1.5rem 1rem;
    }

    .explanation-box,
    .contact-box {
        padding: 1.5rem;
    }

    .reassurance-box {
        padding: 1rem;
    }

    .reference-info {
        padding: 0.8rem;
    }
}