/* ===========================================
   🧩 Unified Dash + Tailwind-Compatible Styles
   =========================================== */

/* 🔤 Tailwind-like font-size utility classes */
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }

/* 🌐 Global body style */
body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;               /* Equivalent to Tailwind's text-base */
    line-height: 1.5;
    color: #111827;                /* Tailwind's text-gray-900 */
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.container-fluid {
    padding-right: 0;
    padding-left: 0;
}

/* 🖋️ Headings */
h1 {
    font-size: 1.5rem;             /* Tailwind text-xl */
    font-weight: 600;              /* Tailwind font-semibold */
    margin-bottom: 1rem;
}
h2 {
    font-size: 1.25rem;            /* Tailwind text-lg */
    font-weight: 600;
    margin-bottom: 0.75rem;
}
h3 {
    font-size: 1.125rem;           /* Tailwind text-md */
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* 📦 Generic containers and cards */
.container,
.card {
    padding: 1rem;
    border-radius: 0.5rem;
}

/* 📊 Graph wrapper to prevent overflow */
.graph-container {
    width: 100%;
    overflow-x: auto;
}

/* 🔘 Form controls */
input,
select,
textarea,
button {
    font-size: 1rem;
}

/* 💬 Tooltip styling */
.tooltip {
    font-size: 0.875rem;           /* Tailwind text-sm */
}

/* 📱 Responsive heading overrides */
@media (max-width: 768px) {
    h1 { font-size: 1.25rem; }
    h2 { font-size: 1.125rem; }
    h3 { font-size: 1rem; }
}

/* 🧩 Dashboard grid responsive fix */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        width: 100vw !important;
        padding: 10px !important;
    }
}

/* Style général pour dashboard-grid */
.dashboard-grid {
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    width: 100vw;
    gap: 30px;
    padding: 30px;
    box-sizing: border-box;
    flex-flow: wrap;
}

/* Style général pour les cards (Divs principaux) */
.dashboard-grid > div {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Version mobile */
@media (max-width: 768px) {
    .dashboard-grid {
        flex-direction: column !important;
        gap: 20px;
        padding: 10px;
        width: 75vw !important;
    }
    .dashboard-grid > div {
        width: 100% !important;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
}
