/* static/css/base.css */

/* === THEME VARIABLES & SYSTEM FONTS === */
:root {
    /* Light Mode - Più sobrio, stile Zebra */
    --bg-page: #f6f6f6;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --primary-color: #00b4d8; /* Ciano più sobrio */
    --border-color: #d1d1d6;
    --radius-l: 10px;
    --radius-m: 6px;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
}

body.theme-dark {
    --bg-page: #1c1c1e;
    --bg-card: #2c2c2e;
    --text-primary: #f2f2f7;
    --text-secondary: #aeaeb2;
    --primary-color: #00b4d8;
    --border-color: #38383a;
}

/* === GENERAL & BODY === */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html, body { 
    overscroll-behavior-y: none; 
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-primary);
    -webkit-user-select: none; 
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.47;
    font-weight: 400;
}

/* === LOADER === */
.loader-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    background: var(--bg-page); 
    z-index: 10001; 
    transition: opacity 0.3s ease-out; 
}

.spinner { 
    width: 32px; 
    height: 32px; 
    border: 2px solid var(--border-color); 
    border-top: 2px solid var(--primary-color); 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}

.loader-text { 
    color: var(--text-secondary); 
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.hidden { 
    display: none !important; 
}