/* Self-contained error page styles. Overrides theme.css h1 color (which
   resolves to a dark var(--rz-text-title-color) in light-theme browsers)
   and the global Radzen text colors so the message stays readable on the
   dark error-card regardless of the active theme. !important is used on
   the colors-only because that's the property the global theme cascades
   into; sizes and layout follow normal specificity. */

.error-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.error-card {
    text-align: center;
    max-width: 460px;
    width: 100%;
    padding: 2.5rem;
    background: rgba(25, 25, 45, 0.96);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
    color: #e2e8f0;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon.denied {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444 !important;
}

.error-icon.notfound {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8 !important;
}

.error-icon.fault {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b !important;
}

.error-icon svg {
    width: 40px;
    height: 40px;
}

.error-card h1 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    margin: 0 0 0.5rem !important;
    letter-spacing: 0;
    line-height: 1.3;
}

.error-card .error-message {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.error-card .error-details {
    text-align: left;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
}

.error-card .error-details p {
    color: #cbd5e1 !important;
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
}

.error-card .error-details ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #94a3b8 !important;
    font-size: 0.8rem;
}

.error-card .error-details li {
    margin: 0.25rem 0;
    color: #94a3b8 !important;
}

.error-card .error-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-card .btn-primary,
.error-card .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.error-card .btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #ffffff !important;
}

.error-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    color: #ffffff !important;
}

.error-card .btn-secondary {
    background: transparent;
    border-color: rgba(139, 92, 246, 0.4);
    color: #cbd5e1 !important;
}

.error-card .btn-secondary:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #f8fafc !important;
}
