﻿:root {
      --bs-primary: #0052CC;
      --bs-primary-dark: #003d99;
      --pu-yellow: #FFC800;
      --bs-font-sans-serif: 'Plus Jakarta Sans', sans-serif;
      --bs-body-bg: #f4f7fb;
    }

    /* Force 24-hour format on time inputs */
    input[type="time"] { -webkit-appearance: none; }
    input[type="time"]::-webkit-datetime-edit-ampm-field { display: none; }

    /* Hide native calendar icon on date inputs */
    input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
    
    html, body { 
      height: 100%; 
      font-family: var(--bs-font-sans-serif); 
      background-color: var(--bs-body-bg);
      background-image: 
        radial-gradient(circle at 10% 10%, rgba(191, 219, 254, 0.4), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(221, 214, 254, 0.4), transparent 40%),
        radial-gradient(circle at 50% 110%, rgba(186, 230, 253, 0.4), transparent 40%),
        radial-gradient(#cbd5e1 1px, transparent 1px);
      background-size: 100% 100%, 100% 100%, 100% 100%, 24px 24px;
      background-attachment: scroll;
    }
    
    /* Custom Utilities & Glassmorphism */
    .backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
    .bg-white-80 { background-color: rgba(255, 255, 255, 0.95) !important; }
    .glass-panel { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); }
    .cursor-pointer { cursor: pointer; }

    /* Card Hover Effects */
    .room-card { 
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      border: 1px solid rgba(255,255,255,0.8) !important; 
    }
    .room-card:hover { 
      transform: translateY(-3px); 
      box-shadow: 0 12px 24px -8px rgba(0,82,204,0.12) !important; 
    }
    .room-card .emoji-icon { transition: transform 0.2s ease; }
    .room-card:hover .emoji-icon { transform: scale(1.08); }
    
    /* Image Gallery - no scale on mobile */
    .room-gallery-img { }
    @media (hover: hover) {
      .room-card:hover .room-gallery-img { transform: scale(1.04); transition: transform 0.3s ease; }
    }

    /* Generic Animations */
    .slide-up { animation: slideUp 0.3s ease forwards; opacity: 0; transform: translateY(16px); }
    @keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

    /* Modal Animations */
    .modal-overlay-custom { background: rgba(15, 23, 42, 0.5); animation: fadeIn 0.2s ease forwards; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    .modal-content-custom { animation: modalIn 0.2s ease; border: 1px solid rgba(255,255,255,0.5); }
    @keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
    
    /* Fixed Success Overlay Animation */
    .success-overlay { 
      clip-path: circle(0% at 50% 100%); 
      transition: clip-path 0.4s ease; 
      background: linear-gradient(135deg, #10b981, #059669); 
    }
    .success-overlay.active { clip-path: circle(150% at 50% 100%); }

    /* Respect reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* UI Elements */
    .pulse-dot { animation: pulse 2s infinite; }
    @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(25, 135, 84, 0); } }
    
    /* Buttons */
    .btn-interactive { transition: transform 0.1s ease, box-shadow 0.2s ease; }
    .btn-interactive:active { transform: scale(0.96); }
    
    .btn-primary {
      background: linear-gradient(135deg, var(--bs-primary), #3b82f6);
      border: none;
      box-shadow: 0 4px 10px rgba(0, 82, 204, 0.2);
    }
    .btn-primary:hover {
      background: linear-gradient(135deg, var(--bs-primary-dark), #2563eb);
      box-shadow: 0 6px 14px rgba(0, 82, 204, 0.3);
      transform: translateY(-1px);
    }
    
    .btn-booking { position: relative; overflow: hidden; transition: all 0.2s ease; }
    .btn-booking .icon-arrow { transition: transform 0.2s ease; }
    .btn-booking:hover .icon-arrow { transform: translateX(4px); }

    .tab-btn { position: relative; transition: all 0.2s; border: none; background: transparent; }
    .tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 3px; background: var(--pu-yellow); border-radius: 3px 3px 0 0; }
    .tab-btn.active { color: var(--bs-primary) !important; background-color: white; box-shadow: 0 .125rem .25rem rgba(0,0,0,.05); border-radius: 8px; }
    
    /* Form Override */
    .form-control, .form-select { 
      border-color: #e2e8f0; padding: 0.8rem 1rem; border-radius: 0.75rem; 
      background-color: #f8fafc; transition: all 0.2s ease; font-weight: 500;
    }
    .form-control:focus, .form-select:focus { 
      background-color: #ffffff; border-color: var(--bs-primary); 
      box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1); 
    }
    
    /* Filter Chips Modern */
    .filter-chip { transition: all 0.2s ease; font-weight: 600; border: 1px solid #e2e8f0 !important; }
    .filter-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important; border-color: #cbd5e1 !important; }
    .filter-chip.active { 
      background: linear-gradient(135deg, var(--pu-yellow), #f59e0b) !important; 
      color: #1e293b !important; border-color: transparent !important; 
      box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2) !important; 
    }

    /* Calendar Specific Styles - Polished */
    .calendar-grid { 
      display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; 
      background-color: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 1.2rem; overflow: hidden; 
    }
    
    .calendar-header-cell { 
      background-color: #f1f5f9; padding: 1rem 0.25rem; text-align: center; 
      font-weight: 800; font-size: 0.8rem; color: #475569; text-transform: uppercase; letter-spacing: 1px; 
    }
    .calendar-cell { 
      background-color: #ffffff; min-height: 90px; padding: 0.5rem; transition: background-color 0.15s; 
      cursor: pointer; display: flex; flex-direction: column; position: relative; 
    }
    .calendar-cell:hover { background-color: #f8fafc; z-index: 2; box-shadow: inset 0 0 0 2px var(--bs-primary); }
    .calendar-cell.other-month { background-color: #f8fafc; opacity: 0.5; }
    .calendar-cell.past-date { background-color: #f1f5f9; opacity: 0.6; cursor: pointer; }
    .calendar-cell.past-date .date-number { color: #94a3b8; }
    
    /* Status Colors Backgrounds */
    .calendar-cell.status-pending { background: linear-gradient(to bottom right, #fff, #fffbeb); }
    .calendar-cell.status-approved { background: linear-gradient(to bottom right, #fff, #ecfdf5); }
    .calendar-cell.status-mixed { background: linear-gradient(to bottom right, #fff, #fef3c7); }
    
    /* Indikator Bar */
    .indicator-strip { position: absolute; bottom: 0; left: 0; right: 0; display: flex; height: 5px; z-index: 2; overflow: hidden; border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }

    .date-number { 
      font-weight: 700; font-size: 0.95rem; color: #334155; width: 30px; height: 30px; 
      display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s; 
    }
    .calendar-cell:hover .date-number { color: var(--bs-primary); }
    .calendar-cell.today .date-number { background-color: var(--bs-primary); color: white; box-shadow: 0 4px 10px rgba(0,82,204,0.3); }
    .calendar-cell.today:hover .date-number { color: white; }

    /* Daily List Row */
    .daily-booking-row { transition: background-color 0.2s, border-left-color 0.15s, box-shadow 0.15s; border: 1px solid #f1f5f9; border-left: 4px solid transparent; }
    .daily-booking-row:hover { background: #f8fafc; border-left-color: var(--bs-primary); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); }
    .daily-booking-row.deleting { opacity: 0; display: none; }

    /* Action button: inverse warna saat hover */
    .btn-action-approve { transition: background-color 0.15s, border-color 0.15s; }
    .btn-action-approve:hover { background-color: #10b981 !important; border-color: #10b981 !important; }
    .btn-action-approve:hover svg { color: white !important; stroke: white !important; }

    .btn-action-delete { transition: background-color 0.15s, border-color 0.15s; }
    .btn-action-delete:hover { background-color: #dc3545 !important; border-color: #dc3545 !important; }
    .btn-action-delete:hover svg { color: white !important; stroke: white !important; }

    /* Card row highlight saat hover di atas tombol aksi */
    .daily-booking-row:has(.btn-action-approve:hover) { background: #f0fdf4 !important; border-left-color: #10b981 !important; box-shadow: 0 4px 14px rgba(16,185,129,0.12) !important; }
    .daily-booking-row:has(.btn-action-delete:hover) { background: #fef2f2 !important; border-left-color: #ef4444 !important; box-shadow: 0 4px 14px rgba(239,68,68,0.12) !important; }
    
    /* Floating WhatsApp Button */
    .whatsapp-fab {
      position: fixed; bottom: 24px; right: 24px; background: linear-gradient(135deg, #25D366, #128C7E); color: white !important;
      border-radius: 50px; padding: 12px 20px; display: flex; align-items: center; gap: 10px;
      box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); z-index: 1045; text-decoration: none; transition: transform 0.2s;
    }
    .whatsapp-fab:hover { transform: translateY(-3px) scale(1.02); }
    
    /* Lightbox Styles */
    #lightboxModal { transition: opacity 0.2s ease; opacity: 0; }
    #lightboxModal.show { opacity: 1; }
    
    @media (max-width: 768px) {
      .calendar-cell { min-height: 60px; padding: 0.25rem; }
      .calendar-header-cell { font-size: 0.7rem; padding: 0.5rem 0.1rem; }
      .whatsapp-fab { padding: 14px; border-radius: 50%; bottom: 20px; right: 20px; }
      .whatsapp-fab span { display: none; }

      /* Ringankan background untuk layar kecil: hilangkan dot-grid pattern */
      html, body {
        background-image:
          radial-gradient(circle at 10% 10%, rgba(191, 219, 254, 0.3), transparent 40%),
          radial-gradient(circle at 90% 90%, rgba(221, 214, 254, 0.3), transparent 40%);
        background-size: 100% 100%, 100% 100%;
      }

      /* Stop animasi pulse pada mobile */
      .pulse-dot { animation: none; }

      /* Kurangi transisi card di mobile */
      .room-card { transition: none; }
      .room-card:hover { transform: none; box-shadow: none !important; }
    }

    /* ── Custom Time Picker ───────────────────────────────── */
    .time-picker { position: relative; }

    .filter-date-card {
      border: none;
      transition: box-shadow 0.2s ease;
    }
    .filter-date-card:hover {
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }

    .time-picker-card {
      background: white;
      border: none;
      border-radius: 0.5rem;
      padding: 0.5rem 1rem;
      cursor: pointer;
      transition: box-shadow 0.2s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      user-select: none;
    }
    .time-picker-card:hover {
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }
    .time-picker-card.tp-disabled {
      opacity: 0.45;
      cursor: not-allowed;
      pointer-events: none;
    }

    .time-picker-chevron {
      width: 15px; height: 15px;
      color: #94a3b8;
      transition: transform 0.25s ease, color 0.2s ease;
      flex-shrink: 0;
    }
    .time-picker-card.open .time-picker-chevron {
      transform: rotate(180deg);
    }

    .time-picker-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0; right: 0;
      background: white;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.14);
      z-index: 1060;
      padding: 5px;
      display: none;
      animation: timePickerDrop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
      max-height: 260px;
      overflow-y: auto;
    }
    .time-picker-menu.show { display: block; }

    @keyframes timePickerDrop {
      from { opacity: 0; transform: translateY(-6px) scale(0.98); }
      to   { opacity: 1; transform: translateY(0)    scale(1);    }
    }

    .tp-option {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 9px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.87rem;
      color: #334155;
      transition: background 0.13s ease, color 0.13s ease;
      white-space: nowrap;
    }
    .tp-option:hover { background: #f1f5f9; color: var(--bs-primary); }
    .tp-option.selected {
      background: linear-gradient(135deg, var(--bs-primary), #3b82f6);
      color: white;
    }
    .tp-option.tp-clear {
      color: #94a3b8;
      font-size: 0.8rem;
      font-weight: 500;
      border-radius: 0;
      border-bottom: 1px solid #f1f5f9;
      margin-bottom: 3px;
      padding-bottom: 10px;
    }
    .tp-option.tp-clear:hover { color: #ef4444; background: #fef2f2; }

    /* Form time select icon wrapper */
    .form-time-wrapper { position: relative; }
    .form-time-wrapper .form-select { padding-left: 2.4rem; }
    .form-time-icon {
      position: absolute; left: 11px; top: 50%;
      transform: translateY(-50%);
      width: 16px; height: 16px;
      color: #64748b;
      pointer-events: none;
      z-index: 5;
    }
