/* ========== FIREBASE AUTH & SYNC STYLES ========== */

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
}

.login-logo {
    font-size: 64px;
    margin-bottom: 10px;
}

.login-box h1 {
    color: #e74c3c;
    margin-bottom: 5px;
    font-size: 24px;
}

.btn-google-login {
    background: white;
    border: 2px solid #dadce0;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #3c4043;
    font-weight: 500;
    width: 100%;
    max-width: 300px;
}

.btn-google-login:hover {
    background: #f7f8f8;
    border-color: #c6c6c6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-google-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* User Bar nell'header */
.user-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-left: 15px;
}

/* Sync Status */
.sync-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.sync-status.online {
    background: #d4edda;
    color: #155724;
}

.sync-status.offline {
    background: #f8d7da;
    color: #721c24;
}

.sync-status.syncing {
    background: #fff3cd;
    color: #856404;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Pulsanti sync */
.btn-sync {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-sync:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.btn-logout {
    border-color: rgba(231, 76, 60, 0.5);
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .user-bar {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .login-logo {
        font-size: 48px;
    }
}
