* { 
        box-sizing: border-box; 
        margin: 0; 
        padding: 0; 
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
        line-height: normal; }
        
        body, html { 
          height: 100%; 
          width: 100%; 
          background-color: #f0f2f5;
          overflow: hidden; 
          position: relative; }
        
        h1,h2,h3,h4,h5,h6{ 
          margin:5px; 
          font-size: 28px;
        }
        p{ 
          font-size: 16px;
          margin:0px; 
          padding:0px; 
          line-height: normal; 
        }
        ul{ 
          margin: 0px 10px; 
          padding:0px 10px;
          font-size: 16px;
          
          }
          img{
            width: 100%;
          }
          button{
            padding: 10px;
            margin: 10px;
            font-size: 16px;
          }
       
       /*deviceloker*/ 
        @media all{
          
        }
         /*header*/ 
        @media all{
           #header {
             position: fixed;
             top: 0;
             left: 0;
             width: 100%;
             height: 60px; /* Wotè header a */
             background: #1d9bf0; /* Koulè background pou ale ak tèm nan */
             color: white;
             z-index: 999;
           }
           .app-header {
             display: flex;
             align-items: center;
             justify-content: space-between;
             height: 100%;
             padding: 0 15px;
           }
           #menu-btn {
             background: none;
             border: none;
             color: white;
             font-size: 24px;
             cursor: pointer;
           }
           #global-search-container {
             display: flex;
             align-items: center;
           }
           #global-search-input {
             padding: 6px;
             border-radius: 20px;
             border: none;
             outline: none;
           }
        }
      
       /*sidebar*/ 
        @media all{
           /* Mwen ajoute !important sou position pou l ka override ansyen an epi tounen yon overlay */
           #sidebar { width: 390px; background: #202c33; color: white; display: flex; flex-direction: column; flex-shrink: 0; transition: transform 0.3s ease; height: 100%; position: fixed !important; top: 0; left: 0; z-index: 1000; transform: translateX(-100%); box-shadow: 2px 0 10px rgba(0,0,0,0.5);}
           /* Ajoute klas sa nan JavaScript ou pou ouvri sidebar la: document.getElementById('sidebar').classList.toggle('active') */
           #sidebar.active { transform: translateX(0); }
           
             .sidebar-header { padding: 15px 20px; background: #111b21; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2a3942; }
        .logout-btn { position: absolute; right: 1px; top: 1px; background: #ff3b30; color: white; border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; font-size: 0.8em; font-weight: bold;}
        .logout-btn:hover { background: #cc2f26; }
        
        #user-list { flex: 1; overflow-y: auto; }
        .user-item { padding: 12px 20px; cursor: pointer; border-bottom: 1px solid #2a3942; transition: background 0.3s; display: flex; align-items: center; justify-content: space-between;}
        .user-item:hover, .user-item.active { background: #2a3942; }
        
        .user-info { display: flex; align-items: center; width: 100%; }
        .avatar { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(135deg, #00a884, #008f6f); color: white; display: flex; justify-content: center; align-items: center; font-size: 20px; font-weight: bold; margin-right: 15px; position: relative; flex-shrink: 0; }
        .avatar-group { background: linear-gradient(135deg, #54656f, #202c33); font-size: 22px; }
        .user-details { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
        .user-name { font-weight: bold; font-size: 16px; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
        .user-sub { font-size: 13px; color: #8696a0; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        .role-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; color: white; font-weight: bold; text-transform: uppercase; }
        .role-admin { background-color: #ff3b30; }
        .role-mod { background-color: #007aff; }

        .status-dot { position: absolute; bottom: 2px; right: 0px; height: 12px; width: 12px; border-radius: 50%; border: 2px solid #202c33; display: inline-block; }
        .sidebar-header .status-dot { border-color: #111b21; } 
        .online { background-color: #00a884; }
        .offline { background-color: #8696a0; }

        .badge { padding: 3px 8px; border-radius: 12px; font-size: 0.75em; font-weight: bold; color: white; min-width: 24px; text-align: center; margin-left: 10px; flex-shrink: 0;}
        .unread-badge { background-color: #ff3b30; } 
        .read-badge { background-color: #8696a0; } 

        /* Custom style pou meni anndan sidebar la */
        .nav-links { list-style: none; margin: 0; padding: 20px 0; }
        .nav-links li { padding: 15px 20px; border-bottom: 1px solid #2a3942; }
        .nav-links a { color: white; text-decoration: none; font-size: 16px; display: block; }
        .nav-links a:hover { color: #00a884; }

        }
        
       /*layout principal*/ 
        @media all{
           .container {
             position: absolute;
             top: 60px; /* Desann anba header a */
             bottom: 60px; /* Kanpe jis anlè footer a */
             left: 0;
             width: 100%;
             overflow-y: auto; /* Pèmèt espas mitan an scroll lè gen anpil kontni */
             background-color: #f0f2f5;
             z-index: 1;
           }
        }
      
       /*footer*/ 
        @media all{
           #footer {
             position: fixed;
             bottom: 0;
             left: 0;
             width: 100%;
             height: 60px; /* Wotè footer a */
             background: #1d9bf0;
             z-index: 999;
           }
           #bottom-footer {
             display: flex;
             justify-content: space-around;
             align-items: center;
             height: 100%;
           }
           #bottom-footer button {
             background: none;
             border: none;
             font-size: 24px;
             cursor: pointer;
             color: white;
           }
           #bottom-footer button a{
             color: white;
           }
           #bottom-footer button:hover {
             transform: scale(1.1);
           }
        }
      
      @media all{
        /* Kache signup la pa defo */
#signupOverlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Background nwa transparan */
    z-index: 1000;
    align-items: center; /* Santre vètikaman */
    justify-content: center; /* Santre orizontalman */
}

/* Style pou bwat blan signup la */
.popup-content {
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Santre login nan tou si se li sèl ki parèt */
#login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

      }
      
      
      /* Mete tout bagay nan mitan ekran an */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Style pou bwat blan login lan */
.login-card {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Bèl ti lonbray ki fè l parèt anlè */
    text-align: center;
}

.login-card h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
}

/* Style pou bwat kote moun nan ap tape yo */
.login-card input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    background: #fafafa;
    box-sizing: border-box;
    transition: all 0.3s ease; /* Pèmèt chanjman koulè yo fèt dou */
}

/* Efè lè moun nan klike nan yon input pou l ekri */
.login-card input:focus {
    border-color: #1d9bf0;
    background: white;
    outline: none;
    box-shadow: 0 0 8px rgba(29, 155, 240, 0.2);
}

/* Bouton koneksyon an */
#login-btn {
    width: 100%;
    padding: 15px;
    background: #1d9bf0;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.1s;
}

/* Efè lè dwèt moun nan pase sou bouton an oswa lè l peze l */
#login-btn:hover {
    background: #1583d0;
}

#login-btn:active {
    transform: scale(0.98); /* Fè bouton an fè yon ti desann pou l fè l sanble ak yon vrè bouton */
}

/* Tèks ak lyen ki anba yo */
.login-card p {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

#openSignup {
    background: none;
    border: none;
    color: #1d9bf0;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

#openSignup:hover {
    color: #1583d0;
    text-decoration: underline;
}
      }
      