/* /mon_dashboard/assets/style.css */

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: white !important;
    overflow: auto !important;
}

/* ✅ FIXES POUR LE REDIMENSIONNEMENT PLOTLY */
.js-plotly-plot .plotly .svg-container {
    height: 100% !important;
    width: 100% !important;
}

.js-plotly-plot .plotly .main-svg {
    height: 100% !important;
    width: 100% !important;
}

.js-plotly-plot {
    height: 100% !important;
    width: 100% !important;
}

.timeframe-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    margin: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.timeframe-btn:hover {
    background-color: #e9ecef;
}
.timeframe-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.star-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 12px;
    margin-left: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.signal-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 3px 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
}

.signal-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.signal-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.signal-badges {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.update-time {
    font-size: 11px;
    opacity: 0.8;
    margin-left: auto;
}

.fullscreen-checkbox {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    padding: 8px 12px;
    background: #28a745;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-checkbox:hover {
    background: #218838;
}

/* Animation pour le mode plein écran */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fullscreen-mode {
    animation: fadeIn 0.3s ease-in-out;
}

/* ✅ STYLE POUR LE BOUTON MODE GRAPHIQUE SEUL */
.graph-only-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.graph-only-btn:hover {
    background: #c82333;
}