/* =====================================================
   ระบบจองโต๊ะปัจฉิมฯ — Custom Styles
   =====================================================*/

/* Font */
body {
    font-family: 'Sarabun', sans-serif;
    background-color: #fff7ed;
}

/* Modal overlay */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Fade-in-up animation */
.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SweetAlert2 Custom Font */
.swal2-popup {
    font-family: 'Sarabun', sans-serif !important;
    border-radius: 1rem !important;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #fb923c;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Hide Scrollbar */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Table card hover */
.table-card {
    transition: all 0.2s ease;
}
.table-card:not(.pointer-events-none):hover {
    transform: translateY(-2px);
}
.table-card.pointer-events-none {
    pointer-events: none !important;
    cursor: not-allowed !important;
    user-select: none;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ea580c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stats card pulse for clickable */
.stats-card-clickable {
    transition: all 0.2s ease;
    cursor: pointer;
}
.stats-card-clickable:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Dropdown */
.dropdown-item {
    transition: background-color 0.15s ease;
}

/* Hidden class */
.hidden {
    display: none !important;
}
