/* Custom Scrollbar for better UI */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Glassmorphism utility */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Sidebar navigation styling */
.nav-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-left: 4px solid #fff;
    font-weight: bold;
}
.nav-btn i {
    transition: transform 0.3s;
}
.nav-btn:hover i {
    transform: scale(1.2);
}

/* FullCalendar Customization */
.fc {
    font-family: 'Kanit', sans-serif !important;
}
.fc-toolbar-title {
    font-size: 1.25rem !important;
    font-weight: bold !important;
    color: #1e3a8a;
}
.fc-button-primary {
    background-color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}
.fc-button-primary:hover {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
}
.fc-event {
    cursor: pointer;
    border-radius: 4px;
    border: none !important;
    padding: 2px 4px;
    font-size: 0.8rem;
}

/* Status Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-pending {
    background-color: #fef08a;
    color: #854d0e;
}
.badge-approved {
    background-color: #bbf7d0;
    color: #166534;
}
.badge-rejected {
    background-color: #fecaca;
    color: #991b1b;
}

/* Print Font */
@font-face {
    font-family: 'TH SarabunPSK';
    src: local('TH SarabunPSK'), local('TH Sarabun PSK'), local('THSarabunPSK');
    font-weight: normal;
    font-style: normal;
}

.print-font {
    font-family: 'TH SarabunPSK', 'TH Sarabun New', 'Sarabun', sans-serif !important;
}

/* Print Utilities */
@media print {
    body * {
        visibility: hidden;
    }
    #print-template, #print-template * {
        visibility: visible;
    }
    #print-template {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}
