/* assets/css/style.css */

/* Custom Scrollbar for better aesthetics */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

/* Animations */
.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Custom Select Dropdown Styling (Premium & Soft) */
select.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
select.custom-select:hover {
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
    border-color: #c7d2fe;
}
select.custom-select:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
select.custom-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f3f4f6;
}

/* Custom Status Radio Buttons for Attendance */
.status-radio input:checked + div {
    color: white;
    transform: scale(1.05);
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.status-radio input[value="มา"]:checked + div { 
    background-color: #10b981; /* emerald-500 */
    border-color: #10b981; 
}
.status-radio input[value="สาย"]:checked + div { 
    background-color: #0ea5e9; /* sky-500 */
    border-color: #0ea5e9; 
}
.status-radio input[value="กิจ"]:checked + div { 
    background-color: #a855f7; /* purple-500 */
    border-color: #a855f7; 
}
.status-radio input[value="ป่วย"]:checked + div { 
    background-color: #eab308; /* yellow-500 */
    border-color: #eab308; 
}
.status-radio input[value="ขาด"]:checked + div { 
    background-color: #ef4444; /* red-500 */
    border-color: #ef4444; 
}

/* Sidebar Active State Customization */
.nav-item.active {
    background-color: #eef2ff !important; /* indigo-50 */
    color: #4f46e5 !important; /* indigo-600 */
    font-weight: 600;
}
.nav-item.active i {
    color: #4f46e5 !important;
}

/* Fix for number input arrows */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
