/* C.O.S.M.I.C - Styles Glassmorphism et Animations */

/* Animations globales */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px);
        opacity: 0.6;
    }
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
    100% { opacity: 0.8; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Classes glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    padding: 20px;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Styles pour les cartes métriques */
.metric-card {
    background: transparent !important;
    border: none !important;
}

.metric-card .card-header {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 153, 204, 0.2) 100%) !important;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3) !important;
    color: white !important;
}

.metric-card .card-body {
    background: transparent !important;
}

/* Boutons de module */
.module-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.module-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* Liens de navigation C.O.S.M.I.C */
.cosmic-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(0, 191, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(0, 191, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.cosmic-nav-link:hover {
    background: rgba(0, 191, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
    color: white;
}

/* Headers de section */
.cosmic-section-header {
    color: #00bfff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.cosmic-section-header i {
    margin-right: 12px;
    font-size: 1.5rem;
}

/* Indicateurs de statut */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 30px;
    margin: 0 8px;
}

.status-indicator.operational {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.status-indicator.monitoring {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: #00bfff;
}

/* Titre principal C.O.S.M.I.C */
.cosmic-main-title {
    color: #00bfff;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5), 
                 0 0 20px rgba(0, 191, 255, 0.3), 
                 0 0 30px rgba(0, 191, 255, 0.1);
}

/* Module cards dans la landing page */
.cosmic-module-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.cosmic-module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 191, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Graphiques */
.cosmic-graph-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .cosmic-main-title {
        font-size: 2.5rem;
    }
    
    .cosmic-section-header {
        font-size: 1.4rem;
    }
    
    .glass-card {
        padding: 15px;
    }
}