/* Font Definitions */
@font-face {
    font-family: 'Pentor';
    src: url('/fonts/pentorcorporate/light/pentorcorporate-light.eot');
    src: url('/fonts/pentorcorporate/light/pentorcorporate-light.eot?#iefix') format('embedded-opentype'),
    url('/fonts/pentorcorporate/light/pentorcorporate-light.woff2') format('woff2'),
    url('/fonts/pentorcorporate/light/pentorcorporate-light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Pentor';
    src: url('/fonts/pentorcorporate/regular/pentorcorporate-regular.eot');
    src: url('/fonts/pentorcorporate/regular/pentorcorporate-regular.eot?#iefix') format('embedded-opentype'),
    url('/fonts/pentorcorporate/regular/pentorcorporate-regular.woff2') format('woff2'),
    url('/fonts/pentorcorporate/regular/pentorcorporate-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Pentor';
    src: url('/fonts/pentorcorporate/semibold/pentorcorporate-semibold.eot');
    src: url('/fonts/pentorcorporate/semibold/pentorcorporate-semibold.eot?#iefix') format('embedded-opentype'),
    url('/fonts/pentorcorporate/semibold/pentorcorporate-semibold.woff2') format('woff2'),
    url('/fonts/pentorcorporate/semibold/pentorcorporate-semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Pentor';
    src: url('/fonts/pentorcorporate/bold/pentorcorporate-bold.eot');
    src: url('/fonts/pentorcorporate/bold/pentorcorporate-bold.eot?#iefix') format('embedded-opentype'),
    url('/fonts/pentorcorporate/bold/pentorcorporate-bold.woff2') format('woff2'),
    url('/fonts/pentorcorporate/bold/pentorcorporate-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
body { font-family: 'Pentor', 'Kanit', sans-serif; }

/* Sidebar Toggle Styles */
#sidebar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
}
#app-container.sidebar-collapsed #sidebar {
    width: 4.5rem; /* Mini Sidebar Width */
}
#app-container.sidebar-collapsed .sidebar-text,
#app-container.sidebar-collapsed .sidebar-arrow,
#app-container.sidebar-collapsed #sidebar-header-text {
    display: none;
}
/* Hide Submenus when collapsed */
#app-container.sidebar-collapsed div[id^="sub-"] {
    display: none !important;
}
#app-container.sidebar-collapsed #sidebar nav button {
    justify-content: center;
    padding-left: 0; padding-right: 0;
}

/* Modern Sidebar Header */
#sidebar-header-text {
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Menu Items */
#sidebar nav button {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin-bottom: 2px;
}

#sidebar nav button:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    padding-left: 1.25rem; /* Slide effect */
}

/* Active State Styling (Overrides Tailwind classes via ID) */
#sidebar nav button.bg-slate-800 {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%) !important;
    border-left-color: #6366f1;
    color: #818cf8 !important;
}

/* Custom Scrollbar for Sidebar */
#sidebar nav::-webkit-scrollbar {
    width: 4px;
}
#sidebar nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Center Toggle Button when collapsed */
#app-container.sidebar-collapsed #sidebar .h-16 button {
    margin: 0 auto !important;
}

/* Animations */
@keyframes pop { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.animate-pop { animation: pop 0.2s cubic-bezier(0.16, 1, 0.3, 1); }