/* ======================================================
   STYLE D — Modern Elegant
   ====================================================== */

/* Google Font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

/* Global ------------------------------------------------ */
body {
    font-family: "Inter", system-ui, sans-serif;
    background: #f3f6fc;
    color: #1c2533;
    line-height: 1.45;
}

/* Nav / Header ---------------------------------------- */
.navbar-dark {
    background: #1d2a44;
}

.navbar-brand {
    font-weight: 700;
}

/* Chips / Badges --------------------------------------- */
.chip {
    display: inline-block;
    background: #dce6ff;
    color: #1a40a1;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cards ------------------------------------------------- */
.card {
    border: 0 !important;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05) !important;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
}

/* Tables ------------------------------------------------ */
table {
    font-size: 0.9rem;
}

.table thead th {
    background: #eef2fa !important;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background: #f6f9ff !important;
}

/* Status styles ---------------------------------------- */
.status-Non\ démarré td {
    border-left: 6px solid #9299a5;
}

.status-En\ cours td {
    border-left: 6px solid #f7a113;
}

.status-Terminé td {
    border-left: 6px solid #38a169;
    opacity: 0.8;
}

/* Highlight overdue (échéance dépassée) */
td.overdue {
    color: #c62828;
    font-weight: 600;
}

/* Forms ------------------------------------------------- */
input.form-control,
select.form-select,
textarea.form-control {
    border-radius: 10px !important;
    border: 1px solid #d3d9e2;
}

/* Buttons ---------------------------------------------- */
.btn-primary {
    background: #304ffe;
    border: none;
    border-radius: 10px;
}

.btn-outline-primary,
.btn-outline-success {
    border-radius: 10px;
}

.btn-sm {
    font-size: 0.75rem;
    padding: 4px 10px;
}

/* Titles / Sections ------------------------------------ */
h2, h3, h4, h5 {
    font-weight: 700;
    color: #1e2a38;
}

.card + .card,
section + section {
    margin-top: 25px;
}

/* Details summary toggle -------------------------------- */
details summary {
    cursor: pointer;
    color: #2f4fcc;
    font-weight: 600;
    list-style: none;
    padding-left: 2px;
}
details[open] summary {
    color: #182c73;
}

/* No bullets */
details summary::marker {
    display: none;
}
details summary::-webkit-details-marker {
    display: none;
}

/* Helpers ---------------------------------------------- */
.small {
    font-size: 0.8rem;
    color: #6c7588 !important;
}

.text-muted {
    color: #8c97a8 !important;
}

/* style.css */
.row-late td { background: #fff4f4; }
.alert-danger .badge.bg-danger { vertical-align: middle; }
.badge { font-weight: 600; }

/* --- Sujets à traiter (boîte à idées) --- */
details > summary.btn { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.card-title { font-weight: 700; }

.chip {
  display: inline-block;
  background: #dce6ff;
  color: #1a40a1;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ======================================================
   Ajouts pour Sujets à traiter dans meetings.php
   ====================================================== */

/* Carte Sujet à traiter */
.topic-card {
    border-left: 4px solid #304ffe;
    background: #f9fbff;
}

/* Zone conversion → Action / Retour / Succès */
.topic-convert {
    background: #f2f6ff;
    border: 1px dashed #9db1ff;
    border-radius: 10px;
    padding: 10px;
}

/* Badge retard amélioré */
.badge-overdue {
    background: #ffe5e5;
    color: #b30000;
    font-weight: 700;
}

/* Highlight lignes actions en retard */
.row-overdue td {
    background: #fff4f4 !important;
}

/* ===== Couleurs Statut Actions ===== */

tr.task-done td {
    background: #e6f7ec !important;
    border-left: 6px solid #38a169 !important;
}

tr.task-progress td {
    background: #fff4e0 !important;
    border-left: 6px solid #ffa000 !important;
}

tr.task-late td {
    background: #ffe6e6 !important;
    border-left: 6px solid #d32f2f !important;
}

tr.task-default td {
    background: transparent !important;
    border-left: 6px solid #c0c0c0 !important; /* Optionnel tu veux supprimer ? */
}