body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    -webkit-tap-highlight-color: transparent;
}

.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border: 1px solid #e2e8f0;
}

.btn {
    transition: all 0.2s ease-in-out;
}

.btn:active {
    transform: scale(0.95);
}

#globalLoader {
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    min-width: 70px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.1s;
}

.status-badge:hover {
    transform: scale(1.05);
}

.s-tepat-waktu {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.s-terlambat {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.s-loyalitas {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.s-tidak-hadir {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.s-pulang-cepat {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

.s-lupa-pulang {
    background: #fffaff;
    color: #be123c;
    border: 1px solid #ffe4e6;
}

.s-sakit {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.s-izin {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.s-cuti {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.s-off {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.multiselect-dropdown {
    position: relative;
}

.multiselect-btn {
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.multiselect-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    z-index: 50;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    padding: 0.5rem;
}

.multiselect-content.show {
    display: block;
}

.multiselect-search {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.multiselect-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
}

.multiselect-item:last-child {
    border-bottom: none;
}

.multiselect-item:hover {
    background-color: #f1f5f9;
}

.multiselect-item input {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.nav-item {
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.nav-item.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-mobile {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.sidebar-mobile.open {
    transform: translateX(0);
}

.console-log {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
}

.custom-scroll::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.tab-pill {
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tab-pill.active {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.tab-pill.inactive {
    background-color: #fff;
    color: #64748b;
    border-color: #e2e8f0;
}

.tab-pill.inactive:hover {
    background-color: #f8fafc;
}

/* --- TOAST NOTIFICATION --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    background: white;
    border-left: 4px solid #3b82f6;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    animation: slideInRight 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 500;
}

.toast-item.success {
    border-left-color: #22c55e;
}

.toast-item.error {
    border-left-color: #ef4444;
}

.toast-item.info {
    border-left-color: #3b82f6;
}

.toast-item i {
    font-size: 1.25rem;
}

.toast-item.success i {
    color: #22c55e;
}

.toast-item.error i {
    color: #ef4444;
}

.toast-item.info i {
    color: #3b82f6;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}