/* Base Styles - Essential global styles for all pages */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    background: linear-gradient(180deg, #1a2744 0%, #0f1829 100%);
    min-height: 100vh;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: linear-gradient(135deg, #1e3a5f 0%, #152238 100%);
    border-top: 2px solid #ef4444;
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 16px 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #ffffff;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 12px;
}

html[dir="rtl"] #blazor-error-ui .dismiss {
    right: auto;
    left: 16px;
}

#blazor-error-ui .reload {
    color: #3b82f6;
    margin: 0 8px;
}

.blazor-error-boundary {
    background: #ef4444;
    padding: 16px;
    color: white;
    border-radius: 8px;
    margin: 16px;
}

.blazor-error-boundary::after {
    content: "אירעה שגיאה";
}

html[dir="ltr"] .blazor-error-boundary::after {
    content: "An error has occurred";
}

/* Loading Screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 20px;
    background: linear-gradient(180deg, #1a2744 0%, #0f1829 100%);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* Global Scrollbar - Delicate & Minimal */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
