/* Holy Sheet - Styles communs */

/* Reset et typographie de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle, rgba(238, 174, 202, 0.5) 0%, rgba(148, 187, 233, 0.5) 100%);
    min-height: 100vh;
    color: #4a5568;
    margin: 0;
    padding: 0;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sticky header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 1000;
}

.header-content {
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.main-header h1 {
    color: #4a5568;
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    width: 24px;
    height: 24px;
    color: #4a5568;
    flex-shrink: 0;
}

/* Loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-screen.fade-out {
    opacity: 0;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 2rem;
    margin-top: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

/* Login section */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 450px;
    width: 100%;
}

.login-card h2 {
    color: #1a202c;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.login-card p {
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* User info */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
}

/* Buttons */
.btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(156, 163, 175, 0.2);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #4a5568;
}

.btn-secondary:hover {
    background: rgba(156, 163, 175, 0.3);
    color: #2d3748;
}

/* Header action buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions button {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    color: white;
}

.header-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon {
    width: 20px;
    height: 20px;
    color: #4a5568;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 20px 30px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: rgba(72, 187, 120, 0.9);
    border-color: rgba(72, 187, 120, 0.3);
}

.notification.error {
    background: rgba(245, 101, 101, 0.9);
    border-color: rgba(245, 101, 101, 0.3);
}

.notification.warning {
    background: rgba(246, 173, 85, 0.9);
    border-color: rgba(246, 173, 85, 0.3);
}

/* Loading spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
        height: 70px;
    }

    .main-header h1 {
        font-size: 1.4rem;
    }

    .header-icon {
        width: 24px;
        height: 24px;
    }

    .login-card {
        padding: 30px 25px;
        margin: 20px;
    }
}