/* Resets & Base Details */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-slate-50: #f8fafc;
    --bg-slate-100: #f1f5f9;
    --bg-slate-200: #e2e8f0;
    --bg-slate-800: #1e293b;
    --bg-slate-900: #0f172a;
    --text-slate-500: #64748b;
    --text-slate-800: #1e293b;
    --red-500: #ef4444;
    --green-500: #10b981;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-slate-50);
}

* { box-sizing: border-box; }

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.h-screen { height: 100vh; }
.w-full { width: 100%; }
.p-8 { padding: 2rem; }
.p-4 { padding: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

/* Components */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }

/* Sidebar */
aside { background-color: var(--bg-slate-900); width: 250px; color: white; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: 4px 12px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
}
.nav-item:hover { background-color: var(--bg-slate-800); color: white; }
.nav-item.active { background-color: var(--primary); color: white; }

/* Timeline Grid */
.timeline-grid {
    display: grid;
    grid-template-columns: 200px repeat(15, 60px); /* Room Name + 15 hours */
    gap: 1px;
    background-color: var(--bg-slate-200);
    border: 1px solid var(--bg-slate-200);
    overflow-x: auto;
}
.grid-header, .grid-cell {
    background-color: white;
    padding: 8px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}
.room-header { justify-content: flex-start; padding-left: 12px; font-weight: 600; }
.booking-block {
    position: absolute;
    height: 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    padding: 0 8px;
    opacity: 0.9;
    top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
}

/* Card */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Inputs */
input, select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--bg-slate-200);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    outline: none;
}
input:focus, select:focus { border-color: var(--primary); ring: 2px solid var(--primary); }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal-content {
    background: white; padding: 2rem; border-radius: 1rem; width: 100%; max-width: 500px;
}

/* Scale-in Animation (untuk Modal) */
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.95) translateY(-8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.animate-scale-in {
    animation: scale-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Thin scrollbar for timeline */
.overflow-x-auto::-webkit-scrollbar,
.overflow-y-auto::-webkit-scrollbar { height: 6px; width: 6px; }
.overflow-x-auto::-webkit-scrollbar-track,
.overflow-y-auto::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 999px; }
.overflow-x-auto::-webkit-scrollbar-thumb,
.overflow-y-auto::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.overflow-x-auto::-webkit-scrollbar-thumb:hover,
.overflow-y-auto::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

