* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #101010;
    min-height: 100vh;
}




.logo .imge{

    width: 70px;
    height: 70px;
    text-align: center;
    
}






.sidebar {
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    background-color: #1e293b;
    height: 100%;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 20px 16px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #334155;
}

.sidebar a {
    display: block;
    color: #94a3b8;
    padding: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar a.active {
    background-color: #3b82f6;
    color: #ffffff;
   
}

.sidebar a:hover:not(.active) {
    background-color: #334155;
    color: white;
}

.sidebar a.overspeeding-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-active-badge{
    background-color: gray;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(128, 128, 128, 0.6);
    padding: 2px 6px;
    min-width: 23px;
    text-align: center;
    margin-left: 75px;
    
   
}



.sidebar-badge {
    background-color: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
    padding: 2px 6px;
    min-width: 22px;
    text-align: center;
}

/* MAIN CONTENT BLOCK */
.header-title {
    margin-left: 220px;
    padding: 30px 40px 10px 40px;
    color: whitesmoke;
}

.content {
    margin-left: 220px;
    padding: 0 40px 40px 40px;
}

.table-container {
    background-color: #1e293b;
    padding: 24px;
    width: 100%; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-top: 10px;


}

.table-container h2 {
    margin-bottom: 20px;
    color: whitesmoke;
    text-align: left;
}


.user-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    table-layout: fixed; 
}


.active-page th:nth-child(1) { width: 6%; }  
.active-page th:nth-child(2) { width: 10%; }
.active-page th:nth-child(3) { width: 20%; }
.active-page th:nth-child(4) { width: 16%; } 
.active-page th:nth-child(5) { width: 22%; } 
.active-page th:nth-child(6) { width: 16%; } 
.active-page th:nth-child(7) { width: 10%; } 


.overspeeding-page th:nth-child(1) { width: 5%; }  
.overspeeding-page th:nth-child(2) { width: 8%; }  
.overspeeding-page th:nth-child(3) { width: 15%; } 
.overspeeding-page th:nth-child(4) { width: 18%; } 
.overspeeding-page th:nth-child(5) { width: 15%; }
.overspeeding-page th:nth-child(6) { width: 15%; } 
.overspeeding-page th:nth-child(7) { width: 15%; } 
.overspeeding-page th:nth-child(8) { width: 16%; } 


.user-table th, .user-table td {
    padding: 14px 16px;
    vertical-align: middle;
    color: #cbd5e1;
    border-bottom: 1px solid #334155;
    
    
    white-space: nowrap; 
    text-overflow: ellipsis;
}

.user-table td:not(:nth-child(2)) {
    overflow: hidden;
}

.user-table th {
    background-color: #334155;
    color: whitesmoke;
    font-weight: 600;
    white-space: normal;
    overflow: visible;
}
    
.user-table tbody tr:nth-child(even) {
    background-color: #273549;
}


.avatar-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
}

.avatar-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-thumb:hover {
    transform: scale(2.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 9999; 
}


.online {
    color: #4ade80;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px; 
}


.online::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.8); 

}



.offline {
    color: red;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px; 
}

.offline::before {
    content: " ";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.8); 
}






.modal-overlay {
    display: none;             
    position: fixed;           
    top: 0;
    left: 0;
    width: 100vw;              
    height: 100vh;           
    background-color: rgba(0, 0, 0, 0.75); 
    z-index: 9999;             
         
}



.modal-box {
    background-color: #1e1e24; 
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;          
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #31b0d5; 
    height: auto;             
}




.modal-header h2 {
    margin-top: 0;
    color: #ff4a4a;  
    text-align: center;          
}

.modal-header p {
    color: #b3b3b3;
    font-size: 12px;
    margin-bottom: 25px;
    text-align: center;
}


.modal-actions .btn{
             
             font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
             font-size: 10px;

}

.btn {
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    margin: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-left: 25%;
    width: 50%;
;
    
}



.btn { background-color: #788285; color: whitesmoke; }
.btn:hover { background-color: #31b0d5; }





.modal-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

#logout-modal .modal-box {
    border-color: #3b82f6;
}

#logout-modal .modal-header h2 {
    color: #31b0d5;
}

#logout-modal .btn-warning {
    background-color: #3b82f6;
    color: white;
}

#logout-modal .btn-warning:hover {
    background-color: #2563eb;
}

#logout-modal .btn-cancel {
    background-color: #334155;
    color: #e2e8f0;
}

#logout-modal .btn-cancel:hover {
    background-color: #475569;
}









.user-table tbody tr:hover {
    background-color: #09090a !important;
    cursor: pointer;
}



.search-box-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content:flex-end;
    margin-right: 40px;
}












.speed-alert {
    color: #ff3b30;
    font-weight: 700;
}

/* MOBILE MEDIA QUERIES */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .sidebar a {
        float: left;
    }
    
    .header-title, .content {
        margin-left: 0;
        padding: 20px;
    }
}

@media screen and (max-width: 400px) {
    .sidebar a {
        text-align: center;
        float: none;
    }
}





#overspeeding-table-body td:last-child {
    position: relative;
    vertical-align: middle;
    padding-right: 120px; 
}

.row-pdf-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, background-color 0.2s;
}

.row-pdf-btn:hover {
    background-color: #2563eb;
}

#overspeeding-table-body tr:hover .row-pdf-btn {
    opacity: 1;
    pointer-events: auto; 
}




















