/* ===========================
   DASHBOARD – STYLES GLOBAUX
   =========================== */

/* Typographie des pages dashboard
   (équivalent de ton ancien * { font-family: ... }) */
* {
    font-family: Tahoma, Verdana, Arial, serif;
}

/* Titre "Is anyone there?" */
h2 {
    text-align: center;
}

/* Conteneur général des graphes jaunes sur fond #fcf3cf */
  #graphContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background-color: #fcf3cf;
    padding: 12px;
}

/* Liens avec infobulle simple (a.info span) */
a.info {
    position: relative;
    text-decoration: none;
    border-bottom: 1px gray dotted;
}

a.info span {
    display: none;
}

a.info:hover {
    background: none;
    z-index: 500;
    cursor: help;
}

a.info:hover span {
    display: inline;
    position: absolute;
    top: 30px;
    left: -20px;
    background: white;
    color: #663399;
    padding: 3px;
    border: 1px solid green;
    border-left: 4px solid green;
}

/* ===========================
   CARDS "STATEMENTS / EBOOKS / CALENDAR / STICKY NOTES"
   =========================== */

.card-box {
    position: relative;
    color: #fff;
    padding: 20px 10px 40px;
    margin: 20px 0px;
}

.card-box:hover {
    text-decoration: none;
    color: #f1f1f1;
}

.card-box:hover .icon i {
    font-size: 100px;
    transition: 1s;
    -webkit-transition: 1s;
}

.card-box .inner {
    padding: 5px 10px 0 10px;
}

.card-box h3 {
    font-size: 27px;
    font-weight: bold;
    margin: 0 0 8px 0;
    white-space: nowrap;
    padding: 0;
    text-align: left;
}

.card-box p {
    font-size: 15px;
}

.card-box .icon {
    position: absolute;
    top: auto;
    bottom: 5px;
    right: 5px;
    z-index: 0;
    font-size: 72px;
    color: rgba(0, 0, 0, 0.15);
}

.card-box .card-box-footer {
    position: absolute;
    left: 0px;
    bottom: 0px;
    text-align: center;
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    text-decoration: none;
}

.card-box:hover .card-box-footer {
    background: rgba(0, 0, 0, 0.3);
}

/* Variantes de couleur des cards */
.bg-blue {
    background-color: #00c0ef !important;
}

.bg-green {
    background-color: #00a65a !important;
}

.bg-orange {
    background-color: #f39c12 !important;
}

.bg-red {
    background-color: #d9534f !important;
}

.bg-purple {
    background-color: #c5b4e3 !important;
}

.bg-gold {
    background-color: #d9ab38 !important;
}

/* Carte unique pour apprenant solo (Support) – centrée et moins large */
.card-solo {
    width: 100%;
    max-width: 255px;            /* ≈ largeur visuelle d’une card col-lg-3 */
    margin: 24px auto 0 auto;    /* espace au-dessus + centrage */
}

/* ===========================
   BOUTONS / TITRES CHARTS
   =========================== */

h4 {
    display: inline;
    margin: auto;
    padding: 12px;
}

/* Toolbar des boutons "Snapshot" (📷) au-dessus des graphes */
.snap-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 6px;
}

.snap-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.snap-btn .fa-camera {
    color: #6b4e00;
}

.snap-btn:hover {
    background: #e0e1e1 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: background .2s ease, box-shadow .2s ease;
}

/* "Chips" jaunes sous les graphes (All ebooks, Learners: All, etc.) */
.chart-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.chart-chip {
    background: #fff4bf;
    color: #6b4e00;
    border: 1px solid #fcf3cf;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

/* Conteneur générique pour les canvas Chart.js
   pour fixer une hauteur */
.chart-wrap {
    width: 100%;
    height: 280px;
}

.chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ===========================
   AVATARS À INITIALES
   =========================== */

/* .initials-avatar {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    border-radius: 50%;
    line-height: 1;
/*    background: #757575; /* valeur par défaut, généralement écrasée en inline style */
/*    color: #ffffff;
    font-weight: bold; 
} */

/* Taille "profil" dans la navbar */
/*.initials-avatar.profile-avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
} */

/* Taille utilisée dans l’en-tête du chat, si besoin */
/*.initials-avatar.chat-avatar {
    width: 50px;
    height: 50px;
    font-size: 22px;
} */

/* ===========================
   CHAT / DROPDOWN "USERS LIST"
   =========================== */

/* Le bloc .search servant au chat reste caché
   (néanmoins présent dans le DOM) */
.search {
    display: none;
}

/* Largeur minimale du menu déroulant des users du chat */
.users-list {
    min-width: 380px;
}

/* Padding des liens dans la liste des users du chat
   (menu de la navbar) */
/*.navb-menu .dropdown .users-list a {
    /* haut | droite | bas | gauche */
/*    padding: 3px 12px 17px 0px;
} */

/* ===========================
   DÉTAILS DIVERS
   =========================== */

.fa-circle {
    color: #663399;
}

#answeredTotalBadge { 
				direction: rtl;
				display: flex; 
				flex-direction: column;
				justify-content: flex-start; 
				flex-wrap: wrap;
    			background-color: #00a65a;
				font-size: 20px;
                padding: 18px;
                text-align: center;
                font-weight: bold;
                color: white;
			}

#totalanswers {
                background-color: #008d4c;
				font-size: 20px;
                padding: 2px;
                text-align: center;
                font-weight: bold;
                color: white;
}

/* =========================================================
   Anti-flash : filtres INTERDITS
   Élèves + apprenants solo (body.is-student)
   ========================================================= */

/* Champs à masquer immédiatement */
body.is-student #agg-inline-wrapper .field:has(#classFilter),
body.is-student #agg-inline-wrapper .field:has(#groupInput),
body.is-student #agg-inline-wrapper .field:has(#domains),
body.is-student #agg-inline-wrapper .field:has(#contains) {
  display: none !important;
}

body.is-student #classFilter,
body.is-student #groupInput,
body.is-student #domains,
body.is-student #contains {
  display: none !important;
}
