/* MIS'AINA Dashboard - Styles personnalisés */

/* Variables */
:root {
    --bg-primary: #0d1117;
    --bg-surface: #161b22;
    --bg-card: #21262d;
    --border-color: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --success: #3fb950;
    --warning: #d29922;
    --danger: #f85149;
}

/* Reset et base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Links dans la sidebar */
.mantine-NavLink-root {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.mantine-NavLink-root:hover {
    transform: translateX(2px);
}

/* Cards */
.mantine-Paper-root {
    transition: box-shadow 0.2s ease;
}

.mantine-Paper-root:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Tables */
.mantine-Table-root {
    border-collapse: separate;
    border-spacing: 0;
}

.mantine-Table-tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Badges */
.mantine-Badge-root {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Progress bars */
.mantine-Progress-root {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Select dropdowns */
.mantine-Select-dropdown {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.mantine-Select-option:hover {
    background-color: rgba(88, 166, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    #page-content {
        margin-left: 0 !important;
        padding: 16px !important;
    }
    
    #sidebar-container {
        display: none;
    }
}

/* Graphiques Plotly - override du background */
.js-plotly-plot .plotly .main-svg {
    background: transparent !important;
}

.modebar {
    display: none !important;
}
