/* RoomPlate Custom Global Styling & Micro-Interactions */

@layer base {
    html, body {
        margin: 0;
        padding: 0;
        scroll-behavior: smooth;
        font-family: 'Plus Jakarta Sans', sans-serif;
    }
}

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

/* Glassmorphism elements */
.glass-header {
    background: rgba(248, 249, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Glowing ambient accents */
.ambient-glow-primary {
    background: radial-gradient(circle, rgba(163, 57, 0, 0.15) 0%, rgba(248, 249, 255, 0) 70%);
}

.ambient-glow-tertiary {
    background: radial-gradient(circle, rgba(0, 105, 71, 0.12) 0%, rgba(248, 249, 255, 0) 70%);
}

/* Pulse Animation for Live Status */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.03); }
}

.animate-soft-pulse {
    animation: soft-pulse 2s infinite ease-in-out;
}

/* Mobile Drawer animation */
#mobile-menu {
    transition: max-height 0.35s ease-in-out, opacity 0.25s ease-in-out;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 18px;
    border-radius: 8px;
    background: #213145;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

@keyframes toast-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   Poolside Cabana Component Design System
   ========================================================================== */

.poolside-cabana-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.poolside-cabana-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: rgba(234, 88, 12, 0.35);
}

.poolside-cabana-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.poolside-cabana-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.poolside-cabana-card:hover .poolside-cabana-image {
    transform: scale(1.04);
}

.poolside-cabana-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
}

.poolside-cabana-badge.badge-available {
    background: rgba(220, 252, 231, 0.92);
    color: #15803d;
    border: 1px solid rgba(187, 247, 208, 0.9);
}

.poolside-cabana-badge.badge-occupied {
    background: rgba(254, 226, 226, 0.92);
    color: #b91c1c;
    border: 1px solid rgba(254, 202, 202, 0.9);
}

.poolside-cabana-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 0.75rem;
}

.poolside-cabana-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.poolside-cabana-meta {
    font-size: 0.6875rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.poolside-cabana-description {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.5;
    margin-top: 0.25rem;
}

.poolside-cabana-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

/* Floor Filter Bar Active/Inactive Transitions */
.floor-filter-btn {
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .poolside-cabana-image-wrapper {
        height: 160px;
    }
    .poolside-cabana-content {
        padding: 1rem;
    }
}

/* ==========================================================================
   HOTEL ADMIN RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* Universal contained table scroll */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive Modal Containers */
.modal-responsive {
    max-width: min(95vw, 640px);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Mobile Safe Area Inset Support */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Touch Targets for Mobile Controls */
.touch-target {
    min-height: 42px;
}

/* Responsive Utilities */
.word-break-wrap {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Tablet Optimizations (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .admin-metrics-grid-tablet {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile Optimizations (< 768px) */
@media (max-width: 767px) {
    .admin-metrics-grid-mobile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-stack-mobile {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* Small Mobile (320px to 480px) */
@media (max-width: 480px) {
    #sidePreviewCard {
        max-width: 100% !important;
        padding: 1rem !important;
    }
    #sideQrCanvasContainer canvas,
    #sideQrCanvasContainer img {
        max-width: 150px !important;
        height: auto !important;
    }
    #mainFeedbackQrContainer canvas,
    #mainFeedbackQrContainer img {
        max-width: 150px !important;
        height: auto !important;
    }
}


