/* ปรับแต่งการแสดงผลฟอนต์ */
body {
    font-feature-settings: "pnum" on, "lnum" on;
    text-rendering: optimizeLegibility;
    padding-bottom: 64px; /* เพิ่ม padding ด้านล่างสำหรับ mobile nav */
}

/* ปรับแต่งน้ำหนักฟอนต์ */
.font-thin { font-weight: 100; }
.font-regular { font-weight: 400; }
.font-bold { font-weight: 700; }
.font-heavy { font-weight: 800; }
.font-xbold { font-weight: 900; }

.transition-all {
    transition: all 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.03);
}

/* ปรับแต่ง Navigation */
.nav-link {
    @apply px-4 py-2 rounded-lg transition-all duration-200;
}
.nav-link:hover {
    @apply bg-primary-600 text-white;
}
.nav-link.active {
    @apply bg-primary-700 text-white;
}

/* ปรับแต่งปุ่ม */
.btn {
    @apply px-4 py-2 rounded-lg transition-all duration-200 font-bold;
}
.btn-primary {
    @apply bg-primary-500 text-white hover:bg-primary-600;
}
.btn-outline {
    @apply border-2 border-primary-500 text-primary-500 hover:bg-primary-500 hover:text-white;
}

/* เพิ่ม style สำหรับปุ่มออกจากระบบ */
.btn-logout {
    @apply px-4 py-2 rounded-lg font-bold transition-all duration-200;
    @apply bg-gradient-to-r from-red-500 to-red-600;
    @apply hover:from-red-600 hover:to-red-700;
    @apply shadow-sm hover:shadow-md;
    @apply text-white;
    @apply transform hover:scale-105;
}

.btn-logout i {
    @apply transition-transform duration-200;
}

.btn-logout:hover i {
    @apply transform -translate-x-1;
}

/* Mobile Navigation */
.mobile-nav {
    @apply fixed bottom-0 left-0 right-0 bg-white shadow-lg;
    @apply flex justify-around items-center;
    @apply px-2 py-2;
    @apply border-t border-gray-200;
    @apply md:hidden; /* เพิ่ม class นี้เพื่อซ่อนบน desktop */
    height: 64px;
    z-index: 1000;
}

.mobile-nav-item {
    @apply flex flex-col items-center justify-center;
    @apply text-gray-600 hover:text-primary-500;
    @apply transition-all duration-200;
    @apply relative;
    width: 64px;
}

.mobile-nav-item.active {
    @apply text-primary-500;
}

.mobile-nav-item i {
    @apply text-xl mb-1;
}

.mobile-nav-item span {
    @apply text-xs;
    @apply block;
    text-align: center;
    line-height: 1.2;
}

/* Mobile Menu Button Animation */
.mobile-menu-btn {
    @apply relative;
    width: 24px;
    height: 24px;
}

.mobile-menu-btn span {
    @apply absolute left-0 bg-white;
    height: 2px;
    width: 100%;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 6px; }
.mobile-menu-btn span:nth-child(2) { top: 12px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 12px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 12px;
} 