/* ==========================================================================
   CarePDF - Error Pages Styles
   404, 500, 403, 400 Error Pages
   ========================================================================== */

.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #fef2f2 100%);
}

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 3rem;
}

/* Illustration */
.error-illustration {
    flex: 0 0 300px;
}

.error-svg {
    width: 100%;
    height: auto;
    max-width: 300px;
}

/* Content */
.error-content {
    flex: 1;
    max-width: 500px;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: #ef4444;
    line-height: 1;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.error-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

/* Suggestions */
.error-suggestions {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.error-suggestions p {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 0;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-suggestions li {
    font-size: 0.875rem;
    color: #6b7280;
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.error-suggestions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ef4444;
}

.error-suggestions li a {
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
}

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

/* Actions */
.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.error-actions .btn-primary {
    background: #ef4444;
    color: #ffffff;
    border: none;
}

.error-actions .btn-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.error-actions .btn-outline {
    background: transparent;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.error-actions .btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Tools Suggestion Section */
.error-tools-suggestion {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-tools-suggestion h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1.5rem 0;
}

.quick-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.quick-tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-tool-item:hover {
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.quick-tool-icon {
    font-size: 1.5rem;
}

.quick-tool-item span:last-child {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .error-illustration {
        flex: none;
    }
    
    .error-svg {
        max-width: 200px;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-actions {
        justify-content: center;
    }
    
    .quick-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .error-page {
        padding: 2rem 1rem;
    }
    
    .error-code {
        font-size: 3rem;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .error-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Mode */
[data-theme="dark"] .error-page {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #1c1917 100%);
}

[data-theme="dark"] .error-code {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .error-title {
    color: #f3f4f6;
}

[data-theme="dark"] .error-description {
    color: #9ca3af;
}

[data-theme="dark"] .error-suggestions {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .error-suggestions p {
    color: #d1d5db;
}

[data-theme="dark"] .error-suggestions li {
    color: #9ca3af;
}

[data-theme="dark"] .error-suggestions li a {
    color: #f87171;
}

[data-theme="dark"] .error-actions .btn-outline {
    border-color: #374151;
    color: #d1d5db;
}

[data-theme="dark"] .error-actions .btn-outline:hover {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .error-tools-suggestion h3 {
    color: #d1d5db;
}

[data-theme="dark"] .quick-tool-item {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .quick-tool-item:hover {
    border-color: #ef4444;
}

[data-theme="dark"] .quick-tool-item span:last-child {
    color: #d1d5db;
}

/* SVG Dark Mode */
[data-theme="dark"] .error-svg rect[fill="#f3f4f6"] {
    fill: #374151;
}

[data-theme="dark"] .error-svg rect[fill="#ffffff"] {
    fill: #1f2937;
}

[data-theme="dark"] .error-svg rect[fill="#d1d5db"],
[data-theme="dark"] .error-svg rect[fill="#e5e7eb"] {
    fill: #4b5563;
}

[data-theme="dark"] .error-svg rect[stroke="#d1d5db"] {
    stroke: #4b5563;
}
