/* ─── Hotel Reservation System — Custom Styles ─── */

/* CSS Variables */
:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8e;
    --secondary: #c9a84c;
    --secondary-light: #e0c66e;
    --accent: #0d9488;
    --bg-cream: #faf8f5;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(201, 168, 76, 0.3); }
    50%      { box-shadow: 0 0 20px rgba(201, 168, 76, 0.6); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in    { animation: fadeIn 0.5s ease-out forwards; }
.animate-slide-left { animation: slideInLeft 0.5s ease-out forwards; }
.animate-slide-right{ animation: slideInRight 0.5s ease-out forwards; }

/* Stagger children animations */
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Room card hover */
.room-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
.room-card .room-card-image img {
    transition: transform 0.6s ease;
}
.room-card:hover .room-card-image img {
    transform: scale(1.08);
}

/* Hero gradient overlay */
.hero-gradient {
    background: linear-gradient(135deg, rgba(30,58,95,0.85) 0%, rgba(15,23,42,0.6) 50%, rgba(13,148,136,0.3) 100%);
}

/* Price shimmer */
.price-tag {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light), var(--secondary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite linear;
}

/* Custom date picker */
input[type="date"] {
    position: relative;
    cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Stepper */
.stepper-line {
    height: 2px;
    background: #e2e8f0;
    transition: background 0.5s ease;
}
.stepper-line.active {
    background: var(--accent);
}
.stepper-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: #e2e8f0;
    color: #64748b;
}
.stepper-dot.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
}
.stepper-dot.completed {
    background: var(--accent);
    color: white;
}

/* Toast notifications */
.toast {
    animation: fadeInUp 0.4s ease-out, fadeIn 0.3s ease-out;
}
.toast.closing {
    animation: fadeIn 0.3s ease-out reverse;
}

/* Sidebar admin */
.sidebar-link {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--secondary);
}

/* Calendar cells */
.cal-cell {
    transition: all 0.15s ease;
    min-height: 32px;
}
.cal-cell:hover {
    background: rgba(13, 148, 136, 0.08);
}
.cal-reservation {
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: opacity 0.2s;
}
.cal-reservation:hover {
    opacity: 0.85;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin stat card */
.stat-card {
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 50;
    animation: fadeIn 0.2s ease;
}
.modal-content {
    animation: fadeInUp 0.3s ease;
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    body { background: white !important; }
}
