.elegant-error-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.error-card {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.error-icon-wrapper {
    margin-bottom: 24px;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon i {
    font-size: 40px;
    color: #ef4444;
}

.error-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.error-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

.error-message-box {
    background: #f9fafb;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
    text-align: left;
}

.error-message-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.error-message-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.error-btn i {
    font-size: 18px;
}

.error-btn-primary {
    background: #3b82f6;
    color: white;
}

.error-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
}

.error-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.error-btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-2px);
}

.error-debug {
    margin-top: 32px;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.error-debug-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.error-debug-header:hover {
    background: #f3f4f6;
}

.error-debug-header .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.error-debug.expanded .arrow {
    transform: rotate(180deg);
}

.error-debug-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.error-debug.expanded .error-debug-content {
    max-height: 1000px;
    margin-top: 16px;
}

.debug-item {
    margin-bottom: 16px;
    text-align: left;
}

.debug-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.debug-item code {
    display: block;
    background: #1f2937;
    color: #10b981;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.debug-item pre {
    margin: 0;
}

.debug-item pre code {
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

@media (max-width: 576px) {
    .error-card {
        padding: 32px 24px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-subtitle {
        font-size: 14px;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .error-btn,
    .error-debug-header,
    .error-debug-content,
    .arrow {
        transition: none;
    }
}
