/* ===== LAYOUT & GENERAL COMPONENT STYLES ===== */

/* CSS Critique pour éviter le flash de contenu non stylisé */
#app {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#app.loaded {
    opacity: 1;
}

/* Application font handled by Vuetify - Body styles moved to theme.css */

/* Loader initial */
.initial-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #E3F2FD;
    border-left: 4px solid #1976D2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-text {
    margin-top: 1rem;
    color: #1976D2;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading-spinner p {
    margin-top: 1rem;
    color: var(--primary-blue);
    font-weight: 500;
}



/* Improved Cards and Components - Use custom classes instead of overriding Vuetify */
.custom-card {
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
}

.custom-app-bar {
    backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Modern Glass Effect */
.custom-drawer {
    backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Enhanced Typography - Less aggressive */
.custom-typography h1,
.custom-typography h2,
.custom-typography h3,
.custom-typography h4,
.custom-typography h5,
.custom-typography h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Modern Input Styling - Use custom classes */
.custom-field {
    border-radius: 12px !important;
}

.custom-field--focused {
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.15) !important;
}

/* Smooth Animations - Use custom classes */
.custom-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Responsive Layout */
@media (max-width: 600px) {
    .main-content {
        padding-top: 110px; /* 40px top bar + 70px nav */
    }

    /* Banner mobile adjustment */
    .main-content .banner-component {
        margin-top: -110px;
        padding-top: 50px; /* Reduced mobile padding for banner */
    }

    .custom-typography h1 {
        font-size: 2rem;
    }

    .custom-typography h2 {
        font-size: 1.5rem;
    }
}
