body{
background:#f8f9fa;
margin:0;
padding:0;
overflow:hidden;
font-family:Segoe UI,sans-serif;
}

.header-notif{
position:fixed;
top:0;
left:0;
right:0;
height:60px;
background:#fff;
border-bottom:1px solid #dee2e6;
z-index:1000;
}

.sidebar-notif{
position:fixed;
top:60px;
left:0;
width:250px;
height:calc(100vh - 110px);
background:#fff;
border-right:1px solid #dee2e6;
overflow-y:auto;
}

.sidebar-notif .nav-link{
color:#212529;
margin:5px 10px;
border-radius:8px;
}

.sidebar-notif .nav-link:hover{
background:#dc3545;
color:#fff;
}

.sidebar-notif .active{
background:#dc3545;
color:#fff !important;
}

.content-notif{
margin-left:250px;
margin-top:60px;
margin-bottom:50px;
height:calc(100vh - 110px);
overflow-y:auto;
padding:20px;
}

.footer-notif{
position:fixed;
bottom:0;
left:0;
right:0;
height:50px;
background:#fff;
border-top:1px solid #dee2e6;
display:flex;
align-items:center;
justify-content:center;
}

.card-stat{
border:none;
border-radius:12px;
box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.table{
background:white;
border-radius:10px;
overflow:hidden;
}

.messagerie-sidebar{
    padding: 15px;
    background: #ffffff;
    border-right: 1px solid #eaeaea;
    height: 100%;
}

.menu-messagerie{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item{
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 15px;
    border-radius: 10px;

    text-decoration: none;
    color: #333;

    transition: 0.2s;
    background: #f8f9fa;
}

.menu-item:hover{
    background: #e9ecef;
    transform: translateX(3px);
}

.menu-item .badge{
    font-size: 12px;
}

.messagerie-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.card-messagerie{
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eaeaea;

    display: flex;
    justify-content: space-between;
    align-items: center;

    text-decoration: none;
    color: #333;

    transition: 0.2s;
}

.card-messagerie:hover{
    transform: translateY(-3px);
    background: #f8f9fa;
}

.card-messagerie .badge{
    font-size: 14px;
}

.hover-card {
    transition: 0.2s;
    cursor: pointer;
}

.hover-card:hover {
    transform: scale(1.03);
    background: #f8f9fa;
}

.dashboard-card{
    transition:.25s;
    cursor:pointer;
}


.dashboard-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.table {
    white-space: nowrap;
}





/*
|--------------------------------------------------------------------------
| NAVIGATION DYNAMIQUE NOTIF+
|--------------------------------------------------------------------------
*/

.notif-content-loading {

    position: relative;

    pointer-events: none;

    opacity: .65;

    transition: opacity .15s ease;

}


.notif-dynamic-overlay {

    position: fixed;

    top: 50%;

    left: 50%;

    transform: translate(
        -50%,
        -50%
    );

    z-index: 99999;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: rgba(
        255,
        255,
        255,
        .95
    );

    padding: 20px 28px;

    border-radius: 12px;

    box-shadow:
        0 5px 25px
        rgba(0,0,0,.15);

    color: #333;

    font-size: 14px;

}


.notif-dynamic-spinner {

    width: 30px;

    height: 30px;

    border: 3px solid #dee2e6;

    border-top-color: #0d6efd;

    border-radius: 50%;

    animation:
        notifSpin .7s linear infinite;

}


@keyframes notifSpin {

    to {

        transform: rotate(
            360deg
        );

    }

}





@keyframes notifProgress {

    0% {

        transform: translateX(-100%);

    }

    100% {

        transform: translateX(300%);

    }

}

/*
|--------------------------------------------------------------------------
| FICHIERS MESSAGERIE
|--------------------------------------------------------------------------
*/

.messagerie-fichiers {

    display: grid;

    gap: 4px;

    overflow: hidden;

    border-radius: 10px;

    margin-top: 8px;

}


.messagerie-fichiers-1 {

    grid-template-columns: 1fr;

}


.messagerie-fichiers-2 {

    grid-template-columns: repeat(2, 1fr);

}


.messagerie-fichiers-3 {

    grid-template-columns: repeat(3, 1fr);

}


.messagerie-fichier-item {

    position: relative;

    display: block;

    width: 100%;

    height: 150px;

    padding: 0;

    border: 0;

    overflow: hidden;

    border-radius: 8px;

    cursor: pointer;

    background: #f1f1f1;

}


.messagerie-fichier-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .2s ease;

}


.messagerie-fichier-item:hover
.messagerie-fichier-image {

    transform:
        scale(1.04);

}


.messagerie-fichier-document {

    width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 8px;

    padding: 10px;

    color: #333;

    background: #f5f5f5;

}


.messagerie-file-me {

    color: #fff;

    background: rgba(
        255,
        255,
        255,
        .15
    );

}


.messagerie-file-icon {

    font-size: 2.5rem;

}


.messagerie-file-name {

    width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: .85rem;

}


.messagerie-more-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            0,
            0,
            0,
            .55
        );

    color: #fff;

    font-size: 2rem;

    font-weight: 700;

}

@media(max-width:767.98px){

    .messagerie-fichier-item {

        height: 110px;

    }

    .messagerie-file-icon {

        font-size: 2rem;

    }

}

/*
|--------------------------------------------------------------------------
| INDICATEUR NOUVEAU MESSAGE
|--------------------------------------------------------------------------
*/

.messagerie-new-message-indicator{

    position:absolute;

    left:50%;

    bottom:20px;

    transform:
        translateX(-50%);

    z-index:100;

    pointer-events:auto;

}


.messagerie-new-message-indicator button{

    white-space:nowrap;

    font-size:.9rem;

}

/* =========================================================
   CONFIRMATION NOTIF+
   ========================================================= */

.notif-confirm-overlay{

    position:fixed;

    inset:0;

    z-index:100000;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:20px;

    background:
        rgba(
            0,
            0,
            0,
            .45
        );

    backdrop-filter:
        blur(3px);

}


.notif-confirm-box{

    width:100%;

    max-width:420px;

    padding:28px;

    background:#fff;

    border-radius:16px;

    box-shadow:
        0 18px 50px
        rgba(
            0,
            0,
            0,
            .20
        );

    text-align:center;

    animation:
        notifConfirmAppear
        .18s
        ease-out;

}


.notif-confirm-icon{

    width:58px;

    height:58px;

    margin:
        0 auto
        15px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#fff3cd;

    color:#dc3545;

    font-size:26px;

}


.notif-confirm-title{

    margin-bottom:10px;

    font-weight:600;

}


.notif-confirm-message{

    margin-bottom:24px;

    color:#6c757d;

}


.notif-confirm-actions{

    display:flex;

    justify-content:center;

    gap:10px;

}


.notif-confirm-actions .btn{

    min-width:120px;

}


@keyframes notifConfirmAppear{

    from{

        opacity:0;

        transform:
            scale(.96)
            translateY(8px);

    }

    to{

        opacity:1;

        transform:
            scale(1)
            translateY(0);

    }

}


@media(max-width:575.98px){

    .notif-confirm-box{

        padding:22px;

    }


    .notif-confirm-actions{

        flex-direction:column-reverse;

    }


    .notif-confirm-actions .btn{

        width:100%;

    }

}


@media(max-width:767.98px){

    .messagerie-new-message-indicator{

        bottom:15px;

    }


    .messagerie-new-message-indicator button{

        font-size:.8rem;

        padding-left:12px !important;

        padding-right:12px !important;

    }

}
