/**
 * Hotel Calendar v2 - Main Styles
 */

/* =====================================================
   RESERVATION STYLES
   ===================================================== */

.reservation {
    position: absolute;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
    cursor: grab;
    pointer-events: auto;
    transition: box-shadow 0.15s, transform 0.15s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.reservation:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 25 !important;
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: -2px;
}

.reservation.dragging {
    cursor: grabbing;
    opacity: 0.8;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 100 !important;
}

/* =====================================================
   RESERVATION STATUS STYLES
   ===================================================== */

.reservation.status-10 {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.reservation.status-20 {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.reservation.status-30 {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.reservation.status-40 {
    background: #e2e8f0;
    color: #64748b;
    border-color: #cbd5e1;
}

.reservation.status-50 {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.reservation.status-60 {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.reservation.status-70 {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.dark .reservation.status-40 {
    background: #374151;
    color: #9ca3af;
    border-color: #4b5563;
}

.dark .reservation.status-70 {
    background: rgba(127, 29, 29, 0.3);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* =====================================================
   RESIZE HANDLE
   ===================================================== */

.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    cursor: ew-resize;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.edit-mode-on .reservation:hover .resize-handle {
    opacity: 1;
    pointer-events: auto;
}

.resize-handle::after {
    content: '';
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

/* =====================================================
   SELECTION PREVIEW
   ===================================================== */

.selection-preview {
    position: absolute;
    border-radius: 6px;
    background: rgba(20, 184, 166, 0.7);
    opacity: 0.7;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    z-index: 50;
    border: 2px solid rgba(20, 184, 166, 0.9);
}

/* =====================================================
   DARK MODE
   ===================================================== */

.dark .reservation {
    border-color: rgba(255,255,255,0.15);
}

.dark .reservation:hover {
    outline-color: rgba(255,255,255,0.4);
}

/* String Statuses Mapping */
.reservation.status-new {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.reservation.status-confirmed,
.reservation.status-business {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.reservation.status-checkedin {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.reservation.status-checkedout {
    background: #e2e8f0;
    color: #64748b;
    border-color: #cbd5e1;
}
.dark .reservation.status-checkedout {
    background: #374151;
    color: #9ca3af;
    border-color: #4b5563;
}
