body{
    background:#f4f6fb;
    font-family:'Segoe UI',sans-serif;
}

.sidebar{
    background:linear-gradient(180deg,#111827,#1f2937);
    min-height:100vh;
    color:white;
}

.sidebar a{
    color:#cbd5e1;
    display:block;
    padding:12px 20px;
    text-decoration:none;
}

.sidebar a:hover{
    background:rgba(255,255,255,0.1);
    color:white;
}

.hrm-card{
    border-radius:20px;
    border:0;
    box-shadow:0 15px 35px rgba(0,0,0,0.05);
    background:white;
}

.btn-primary{
    background:linear-gradient(45deg,#6366f1,#8b5cf6);
    border:0;
}

.gradient-text{
    background:linear-gradient(45deg,#6366f1,#8b5cf6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}
/* ================= MOBILE BOTTOM NAV ================= */

.mobile-bottom-nav{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #ffffff;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
}

.mobile-bottom-nav a{
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #777;
    font-size: 12px;
}

.mobile-bottom-nav i{
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}

.mobile-bottom-nav a.active{
    color: #0d6efd;
    font-weight: 600;
}

/* tránh nội dung bị che */
@media(max-width:991px){
    body{
        padding-bottom: 80px;
    }
}
/* ================= MOBILE NAV PRO ================= */

.mobile-bottom-nav-pro{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
}

.mobile-bottom-nav-pro .nav-item{
    flex:1;
    text-align:center;
    color:#777;
    font-size:20px;
    text-decoration:none;
    position:relative;
    transition:0.2s;
}

.mobile-bottom-nav-pro .nav-item.active{
    color:#0d6efd;
}

.mobile-bottom-nav-pro .nav-center{
    position:relative;
    top:-20px;
    width:60px;
    height:60px;
    background:#0d6efd;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:22px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    text-decoration:none;
    transition:0.2s;
}

.mobile-bottom-nav-pro .nav-center.active{
    background:#0b5ed7;
}

.mobile-bottom-nav-pro .badge-dot{
    position:absolute;
    top:8px;
    right:10px;
    width:10px;
    height:10px;
    background:red;
    border-radius:50%;
}

.avatar-icon{
    width:70px;
    height:70px;
    border-radius:50%;
    background: linear-gradient(135deg,#0d6efd,#0dcaf0);
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:28px;
}

@media(max-width:991px){
    body{
        padding-bottom:90px;
    }
}
.stat-box{
    background:#f8f9fa;
    border-radius:12px;
    padding:12px;
}

.stat-value{
    font-size:22px;
    font-weight:700;
    margin-bottom:0;
}
.tc{
    align-items:center;
}
.camera-wrapper{
    position:relative;
}

.camera-wrapper video{
    width:100%;
    border-radius:10px;
}

.camera-message{
    position:absolute;
    top:6.5%;
    left:50%;
    width:75%;
    transform:translateX(-50%);
    
    background:rgba(0,0,0,0.6);
    color:white;
    
    padding:8px 14px;
    border-radius:50px;
    
    font-size:14px;
}

.camera-box{
position:relative;
max-height: 60vh;
width:100%;
overflow: hidden;
}

#video{
width:100%;
height: auto;
object-fit: cover;
}
#video{
filter:
brightness(1.18)
contrast(1.08)
saturate(1.2)
blur(0.3px)
sepia(0.08);
transform: scaleX(-1);
}

.face-guide{
position:absolute;
top:50%;
left:50%;
width:180px;
height:240px;

transform:translate(-50%,-50%);

border:3px dashed white;
border-radius:50%;

pointer-events:none;

box-shadow:0 0 20px rgba(0,0,0,0.4);
}
.camera-box::after{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(255,200,200,0.03);
border-radius:12px;
pointer-events:none;
}

.face-guide{
z-index:2;
}

#flashEffect{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:white;
opacity:0;
pointer-events:none;
transition:opacity 0.15s;
}
.alert{

padding:12px 16px;

border-radius:10px;

margin-bottom:15px;

font-size:14px;

display:flex;
align-items:center;
gap:8px;

box-shadow:0 2px 8px rgba(0,0,0,0.08);

}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  top: 15px;
}
.switch input {display:none;}
.slider {
  position: absolute;
  cursor: pointer;
  background: #ccc;
  border-radius: 34px;
  top:0;left:0;right:0;bottom:0;
  transition: .3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}
input:checked + .slider {
  background: #28a745;
}
input:checked + .slider:before {
  transform: translateX(24px);
}
#pushStatus {
    line-height: 40px;
  vertical-align: text-top;
}
/* overlay */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);

    justify-content: center;
    align-items: center;

    z-index: 999;
}

/* box */
.popup-content {
    background: #fff;
    width: 360px;
    padding: 20px 25px;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    animation: fadeIn 0.25s ease;
    font-family: sans-serif;
}

/* title */
.popup-content h3 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
}

/* input */
.popup-content input,
.popup-content textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 8px;
    margin-bottom: 12px;

    border: 1px solid #ddd;
    border-radius: 6px;

    outline: none;
    transition: 0.2s;
}

.popup-content input:focus,
.popup-content textarea:focus {
    border-color: #3498db;
}

/* button group */
.popup-content .btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* buttons */
.popup-content button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* submit */
.popup-content button[type="submit"] {
    background: #3498db;
    color: #fff;
}

/* close */
.popup-content .btn-close {
    background: #eee;
}

/* animation */
@keyframes fadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}