/* =========================
   AUTH PAGE
========================= */
body.auth-page.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc, #e3f2fd);
}


/* =========================
   TOPBAR - USER (CENTER & ALIGN)
========================= */
.topbar .navbar-nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 15px;
}

.topbar .nav-item {
    display: flex;
    align-items: center;
}

.topbar .nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

.topbar .nav-link span {
    margin-right: 8px;
}


/* =========================
   SIDEBAR - MENU UTAMA
========================= */
.sidebar .nav-link{
    font-size:14px;
    font-weight:600;
    transition:all .2s ease;
}

.sidebar .nav-link i{
    font-size:16px;
}

/* =========================
   SIDEBAR - DROPDOWN
========================= */
.sidebar .collapse-inner .collapse-item {
    display: block;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #5a5c69;
    border-radius: 6px;
    transition: all 0.25s ease;
}

/* Hover */
.sidebar .collapse-inner .collapse-item:hover {
    background-color: #f1f5f9;
    color: #2c3e50;
    transform: translateX(5px);
}

/* Active */
.sidebar .collapse-inner .collapse-item.active {
    background-color: #4e73df;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Click animation */
.sidebar .collapse-inner .collapse-item:active {
    transform: scale(0.97);
}

/* Dropdown animation */
.collapse {
    transition: all 0.3s ease;
}


/* =========================
   SIDEBAR - BRAND & LOGO
========================= */
.sidebar .sidebar-brand {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .sidebar-brand-text {
    font-size: 14px;
    font-weight: bold;
}

/* Logo */
.sidebar .sidebar-brand img,
.logo-sidebar {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}


/* =========================
   TOPBAR - TITLE
========================= */
.topbar {
    min-height: 80px;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.topbar h4 {
    margin-bottom: 0;
}

.topbar span {
    display: block;
    margin-top: 2px;
}

.toggle-password-input {
    padding-right: 40px;
}

.table td {
    padding-top: 6px;
    padding-bottom: 6px;
}

.employee-row:hover {
    background-color: #f8f9fc;
    transition: 0.2s;
}

/* ICON & TEXT - tidak terlalu putih terang */
.sidebar .nav-item.active i,
.sidebar .nav-item.active span {
    color: #e0e3eb; /* soft putih */
}

.sidebar .nav-link {
    transition: all 0.2s ease;
}

.modal-animate .modal-dialog {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-animate.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* modal alasan cuti */
.modal-content {
    border-radius: 12px;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.bg-gradient-primary {
    background: linear-gradient(45deg, #4e73df, #224abe);
}

.dropdown-item {
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 8px;
}

.dropdown-item:hover {
    background: #f8f9fc;
    transform: translateX(3px);
}

.dropdown-menu {
    animation: fadeInDropdown 0.2s ease;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:768px){

    .topbar h4{
        font-size:18px;
    }

    .topbar small{
        font-size:11px;
    }

    .sidebar .sidebar-brand{
        padding:.5rem;
        height:70px;
    }

    .sidebar .sidebar-brand img{
        width:40px;
        height:40px;
    }

    .container-fluid{
        padding-left:12px;
        padding-right:12px;
    }

    .card-body{
        padding:1rem;
    }

}