/* assets/css/style.css
   สไตล์เสริมระดับ Premium สำหรับระบบจองห้องประชุม */

/* Font & Base Settings */
html, body {
    font-family: 'Plus Jakarta Sans', 'Anuphan', ui-sans-serif, system-ui, sans-serif;
    scroll-behavior: smooth;
    background-color: #f8fafc;
}

[x-cloak] { display: none !important; }

/* Custom scrollbar */
::-webkit-scrollbar { height: 6px; width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }

/* =========================================
   Navbar & Brand Layout
   ========================================= */
.navbar-brand {
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   Card Styles
   ========================================= */
.card-premium {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem; /* ~ rounded-3xl */
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.03), 0 4px 12px -4px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-premium:hover {
    box-shadow: 0 24px 60px -15px rgba(79, 70, 229, 0.1), 0 8px 24px -8px rgba(79, 70, 229, 0.04);
    transform: translateY(-4px) scale(1.005);
    border-color: rgba(79, 70, 229, 0.15);
}

/* Stat Card Accent Bars */
.stat-card-blue { border-left: 5px solid #4f46e5; }
.stat-card-orange { border-left: 5px solid #f59e0b; }
.stat-card-indigo { border-left: 5px solid #6366f1; }
.stat-card-sky { border-left: 5px solid #06b6d4; }
.stat-card-emerald { border-left: 5px solid #10b981; }

/* =========================================
   Button Styles (Bouncy & Interactive)
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem; /* rounded-2xl */
    font-size: 0.875rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.25), 0 4px 10px -5px rgba(79, 70, 229, 0.15);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.35), 0 8px 15px -5px rgba(79, 70, 229, 0.2);
    transform: translateY(-2px) scale(1.02);
}
.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #475569;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px -5px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    text-decoration: none;
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.05);
}
.btn-secondary:active {
    transform: translateY(1px);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff1f2;
    color: #e11d48;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #fecdd3;
    cursor: pointer;
    text-decoration: none;
}
.btn-danger:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
    transform: translateY(-1.5px);
    box-shadow: 0 10px 20px -8px rgba(225, 29, 72, 0.15);
}
.btn-danger:active {
    transform: translateY(1px);
}

/* =========================================
   Form Field Styles
   ========================================= */
.form-input, .form-select, .form-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.01);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #4f46e5;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.06), inset 0 2px 4px 0 rgba(0, 0, 0, 0.01);
}

/* =========================================
   Table Styles
   ========================================= */
.table-header {
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

/* =========================================
   Badge / Status Pill
   ========================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* =========================================
   Sidebar Navigation
   ========================================= */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-link:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: translateX(2px);
}
.sidebar-link.active {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
    font-weight: 700;
    border-left: 4px solid #4f46e5;
    padding-left: calc(1rem - 4px);
    box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.15);
}

/* =========================================
   Page Header Section
   ========================================= */
.page-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

/* =========================================
   Room Card Image Placeholder
   ========================================= */
.room-img-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* =========================================
   Timeline Slot (Calendar)
   ========================================= */
.timeline-slot {
    transition: all 0.2s ease-in-out;
}

/* =========================================
   Animated gradients & overlays
   ========================================= */
.hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 50%, #fef3c7 100%);
}

/* Glow decoration shapes */
.glow-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* =========================================
   Micro-animations
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.75; transform: scale(0.96); }
}
.animate-pulse-soft {
    animation: pulse-soft 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
.animate-drift-slow-1 {
    animation: drift 20s ease-in-out infinite;
}
.animate-drift-slow-2 {
    animation: drift 25s ease-in-out infinite alternate;
}

/* Custom shadow utilities */
.shadow-premium {
    box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.08), 0 4px 16px -4px rgba(79, 70, 229, 0.03);
}

/* Responsive Table helper */
@media (max-width: 640px) {
    .table-responsive { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
