/* ===================================================
   DOUANESIG INTELLIGENCE
   STYLE.CSS
=================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    background:#edf2f7;

    font-family:'Segoe UI',sans-serif;

    overflow-x:hidden;

}

/*************************************************
WRAPPER
**************************************************/

.wrapper{

    display:flex;

    width:100%;

    min-height:100vh;

}

/*************************************************
SIDEBAR
**************************************************/

#sidebar{

    width:270px;

    background:#0b4d7d;

    color:white;

    position:fixed;

    left:0;

    top:0;

    bottom:0;

    overflow:auto;

    box-shadow:0 0 20px rgba(0,0,0,.25);

    z-index:1000;

}

.logo{

    display:flex;

    align-items:center;

    padding:25px;

}

.logo-icon{

    width:65px;

    height:65px;

    border-radius:50%;

    background:white;

    color:#0b4d7d;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:28px;

    margin-right:15px;

}

.logo h3{

    font-size:22px;

    font-weight:bold;

}

.logo span{

    color:#90caf9;

}

.logo p{

    font-size:12px;

    opacity:.8;

}

/*************************************************
MENU
**************************************************/

.menu{

    list-style:none;

    padding:15px;

}

.menu li{

    margin-bottom:8px;

}

.menu li a{

    display:flex;

    align-items:center;

    padding:14px;

    color:white;

    text-decoration:none;

    border-radius:12px;

    transition:.3s;

}

.menu li a:hover{

    background:#1565c0;

}

.menu li.active a{

    background:white;

    color:#0b4d7d;

    font-weight:bold;

}

.menu i{

    width:30px;

    font-size:18px;

}

/*************************************************
UTILISATEUR
**************************************************/

.sidebar-user{

    margin:25px;

    background:rgba(255,255,255,.12);

    padding:15px;

    border-radius:15px;

    display:flex;

    align-items:center;

}

.sidebar-user img{

    width:55px;

    height:55px;

    border-radius:50%;

    margin-right:10px;

}

.online{

    color:#7CFC00;

    font-size:12px;

}

/*************************************************
CONTENU
**************************************************/

#content{

    margin-left:270px;

    width:calc(100% - 270px);

}

/*************************************************
HEADER
**************************************************/

.topbar{

    background:white;

    padding:20px 30px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 3px 12px rgba(0,0,0,.08);

}

.topbar .left{

    display:flex;

    align-items:center;

    gap:20px;

}

#toggleSidebar{

    border:none;

    background:#0b4d7d;

    color:white;

    width:45px;

    height:45px;

    border-radius:10px;

}

.search{

    width:250px;

}

.right{

    display:flex;

    align-items:center;

    gap:15px;

}

.icon{

    position:relative;

    font-size:22px;

    cursor:pointer;

}

.badge{

    position:absolute;

    top:-5px;

    right:-5px;

}

/*************************************************
CARTES
**************************************************/

.stat-card{

    background:white;

    border-radius:18px;

    padding:20px;

    display:flex;

    align-items:center;

    gap:20px;

    transition:.3s;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.stat-card:hover{

    transform:translateY(-5px);

}

.stat-card h2{

    font-weight:bold;

}

.stat-icon{

    width:55px;
    height:55px;
    border-radius:15px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:24px;

}

.blue{

    background:#1976d2;

}

.green{

    background:#43a047;

}

.orange{

    background:#fb8c00;

}

.red{

    background:#e53935;

}

.purple{

    background:#8e24aa;

}

.cyan{

    background:#00acc1;

}

.success{

    color:#2e7d32;

}

/*************************************************
CARTE LEAFLET
**************************************************/

#map{

    height:520px;

    width:100%;

}

/*************************************************
ALERTES
**************************************************/

.alertes{

    height:520px;

    overflow:auto;

}

.alerte{

    border-left:6px solid;

    margin-bottom:15px;

    padding:15px;

    background:#f8f9fa;

    border-radius:10px;

}

.rouge{

    border-color:#e53935;

}

.orange{

    border-color:#fb8c00;

}

.jaune{

    border-color:#fdd835;

}

.verte{

    border-color:#43a047;

}

/*************************************************
TABLEAUX
**************************************************/

.table{

    margin-bottom:0;

}

.table th{

    background:#0b4d7d;

    color:white;

}

/*************************************************
CARD
**************************************************/

.card{

    border:none;

    border-radius:20px;

    overflow:hidden;

}

.card-header{

    font-weight:bold;

}

/*************************************************
FOOTER
**************************************************/

footer{

    color:#666;

    font-size:14px;

}

/*************************************************
RESPONSIVE
**************************************************/

@media(max-width:992px){

#sidebar{

    left:-270px;

}

#content{

    margin-left:0;

    width:100%;

}

.search{

    display:none;

}

.topbar{

    flex-direction:column;

    gap:15px;

}

.right{

    flex-wrap:wrap;

}

}