@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('settings.css');
@import url('opt.css');
@import url('modal.css');
@import url('bottomsheet.css');
@import url('toas.css');
@import url('pwa.css');
:root{
    --bg-lg: linear-gradient(to left,#36CCFF, #34495e);
    --fm: "Poppins",  sans-serif;
    --second-bg: #2c3e50;
    --textsed: #ecf0f1;
}
* {
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body{
    font-family: "Poppins",  sans-serif;
    background: var(--bg-lg);
    display: flex;
    
    list-style: none;
    outline: none;
    text-decoration: none;
}

.img-head{
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 15px;
}
.dashboard {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 250px;
    height: 100%;
    background-color: var(--second-bg);
    color: var(--textsed);
}
#settings-form{
    display: flex;
    flex-direction: row;
    gap: 20px;
}
#msg-help{
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.msgs{
    height: 400px;
    overflow: scroll;
}
.msgs::-webkit-scrollbar{
    width: 0;
}
#paie{
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.h1-title {
    display: inline-block;

    /* Dégradé ou couleur pour le texte */
    background: var(--bg-lg); /* doit être un gradient pour voir l'effet */

    /* Préfixe WebKit obligatoire pour Chrome, Safari et Edge */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Propriété standard listée après le préfixe */
    background-clip: text;

    /* Fallback */
    color: transparent;

    font-size: 1.5em;
    font-weight: 600;
}
form{
    display: flex;
    flex-direction: column;
    gap: 10px;
    
}
input, select, textarea{
        border: 1px solid #2c3e506e;
        padding: 10px;
        outline: none;
        border-radius: 10px;
    }
    .modalmodif {
        display: none; 
        position: fixed; 
        z-index: 1000; 
        left: 0;
        top: 0;
        width: 100%; 
        height: 100%; 
        overflow: auto; 
        background-color: rgba(0,0,0,0.5); 
    }
    .modal-content {
        background-color: #fefefe;
        margin: 10% auto; 
        padding: 20px;
        border: 1px solid #888;
        width: 300px; 
        border-radius: 8px;
    }
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
    .edit-btn {
        background-color: #4CAF50;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 4px;
    }
    .edit-btn:hover {
        background-color: #45a049;
    }
    .modalmodif.active {
        display: block;
    }
    #toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* espace entre les toasts */
    z-index: 9999;
}
.toast {
    background: #4caf50;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast.error { background: #f44336; }
.toast.info { background: #2196F3; }
.toast.warning { background: #ff9800; }
.toast.success { background: #4caf50; }

.section-item{
        display: flex;
        flex-direction: row;
        padding: 10px;
        border-bottom: 1px solid #eee;
        justify-content: space-evenly;
    }
    .edit-btn, .delete-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.2em;
        margin-left: 10px;
    }
    .edit-btn { color: #007bff; }
    .delete-btn { color: #dc3545; }
.paie-form{
    display: flex;
    flex-direction: column;
}
.sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-lg);
    text-align: center;
    border-radius: 15px 0 0 0;
 
}
.Approuvebtn::-webkit-scrollbar{
    width: 0;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    padding: 15px 20px;
}

.sidebar-menu li a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
}

.main-content {
    flex: 1;
    padding: 20px;
    background-color: #ecf0f1;
    overflow-y: auto;
    /* gap: 20px; */
    border: 1px solid #ddd;
    /* border-radius:  0 15px  15px 0; */
    height:100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    overflow: scroll;
}
header::-webkit-scrollbar{
    width: 0;
}
.search-bar {
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile p {
    margin-right: 10px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 100%;
}
.content_profile{
    display: flex;
    padding: 80px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    background: linear-gradient(to left,#36CCFF, #34495e);
    border-radius: 15px;
    overflow: scroll;
}
i#icon{
    font-size: 1.5em;
}
button{
    border-radius: 16px;
    border: none;
}
.content_profile::-webkit-scrollbar{
    width: 0;
}
a{
    text-align: start;
}
.form_profile, .settings-section{
    display: flex;
    flex-direction: column;
}
.form_profile input, select, textarea{
    border: 1px solid #2c3e50;
    width: 100%;
}
.form_profile select{
    border: 1px solid #2c3e50;
}
.profile-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    /*margin-top: 30%;*/
    /* overflow: hidden; */
}
.recherche{
    height: 40px;
    overflow: scroll;
}
.recherche::-webkit-scrollbar{
    width: 0;
}
.nom-edith{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.nom-edith input, select{
    width: 80%;
    border: 1px solid #2c3e50;
}
.nom-edith select{
    width: 80%;
    border: 1px solid #2c3e50;
}
table{
    border: 1px solid #ddd;
    border-collapse: collapse;
    width: 100%;
}
table, th, td {
    border: 1px solid #ddd;
}
th, td {
    text-align: center;
}
th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}
.btn-admin{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
}
.photo{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.profile-info .img{
    width: 80px;
    height: 80px;
    border-radius: 50%;
}
.form-inscrit{
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 15px;
}
.item-form{
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 10px;
}
.Approuvebtn{
    padding: 10px;
    background: #017223;
    color: #fff;
    border-radius: 10px;
    margin: 10px;
    border: none;
    cursor: pointer;
}
.deletebtn{
    padding: 10px;
    background: #7e0a0a;
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 10px;
}
.nom-edith.h2-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.btn{
    background:  #2c3e50;
    color: #fff;
    margin-top: 10px;
    padding: 10px;
    border: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}
.content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    overflow: scroll;
}
.content::-webkit-scrollbar{
    width: 0;
}
.content-eleve{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.content-recu{
    display: flex;
    flex-direction: column;
    align-items: start;
    background: #fff;
    padding: 10px;
}
.btn-recu{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.head{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.head-rapport{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.widgets {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
}
.widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:#3eaace;
    color: #ecf0f1;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    height: 150px; 
}
.card{
        display: block;
        height: auto;
        width: auto;
        background:#fff;
        padding:16px;
        border-radius:8px;
        box-shadow:0 2px 6px rgba(0,0,0,.1);
    }
.transaction-history {
    background-color: #fff;
    padding: 20px;
    /* height: 50%; */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: scroll; 
}
.transaction-history::-webkit-scrollbar{
    width: 0;
}
.new-customers{
    background-color: #fff;
    padding: 20px;
    /* height: 50%; */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: scroll;
}
.new-customers::-webkit-scrollbar{
    width: 0;
}
.daily-sales{
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    height: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: scroll;
}
.daily-sales::-webkit-scrollbar{
    width: 0;
}
.user-stats{
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: scroll;
}
.user-stats::-webkit-scrollbar{
    width: 0;
}
.geolocation{
    background-color: #fff;
    padding: 20px;
    /* height: 50%; */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: scroll;
}
.geolocation::-webkit-scrollbar{
    width: 0;
}
.user-stats_classe{
    background-color: #fff;
    padding: 20px;
    /* height: 50%; */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: scroll;
}
.user-stats_classe::-webkit-scrollbar{
    width: 0;
}
h3 {
    margin-bottom: 10px;
}
.hamburger-menu{
    display: none;
}
.btn-container{
    display: flex;
    gap: 20px;
    font-size: 15px;
}
details
{
    margin-bottom: 10px;
}
details summary{
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
    background: #ff0000;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    
}
    /* =========================
   SIDEBAR BASE
========================= */
.sidebar {
    background: #2c3e50;
    color: #fff;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================
   HAMBURGER
========================= */
.hamburger-menu {
    display: none;
}

/* =========================
   OVERLAY (fond sombre)
========================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;

    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}
@media screen and (max-width: 768px) {
    body{
        padding:0;
    }
    .dashboard {
        flex-direction: column;
    }
    .main-content {
        padding: 10px;
        height: 100vh;
    }
    .sidebar-header{
        display: flex;
        flex-direction: row;
        width: 100%;
    }
    .modal-content{
        width: 100%;
        margin: 50% auto;
        height: 90%;
        position: fixed;
        
    }

/* =========================
   MOBILE VERSION
========================= */


    /* Activation hamburger */
    .hamburger-menu {
        display: flex;
        font-size: 22px;
        cursor: pointer;
        color: #fff;
    }

    /* Sidebar container */
    .sidebar {
        display: flex;
        flex-direction: row;
        height: 60px;
        width: 100%;
        /* border-radius: 15px 15px 0 0; */
        align-items: center;
        justify-content: space-between;
        /* padding: 0 15px; */
    }

    /* MENU SLIDE */
    .sidebar-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 50%;
        height: 100vh;

        background: linear-gradient(360deg, #2c3e50, #1f2f3f);

        display: flex;
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;

        border-radius: 0 15px 15px 0;
        box-shadow: 5px 0 20px rgba(0,0,0,0.4);

        z-index: 1001;
    }

    /* ACTIVE */
    .sidebar-menu.active {
        transform: translateX(0);
        height: 100vh;
    }

    /* ITEMS */
    .sidebar-menu li {
        list-style: none;
        margin-bottom: 15px;
        padding: 12px;
        border-radius: 10px;
        transition: 0.3s;
    }

    .sidebar-menu li:hover {
        background: rgba(255,255,255,0.1);
    }

    .sidebar-menu li a {
        color: #fff;
        font-size: 14px;
        text-decoration: none;
    }

    /* ICONES */
    .sidebar-menu li i {
        font-size: 16px;
    }
}

/* =========================
   PETITS TELEPHONES
========================= */
@media screen and (max-width: 468px) {

    .sidebar-menu {
        width: 70%; /* plus large sur petits écrans */
    }
}