@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --surface-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: rgba(226, 232, 240, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-dark-bg: rgba(15, 23, 42, 0.75);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.01em;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.glass-panel-dark {
    background: var(--glass-dark-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Custom Navbar */
.navbar-brand-custom {
    font-weight: 800;
    font-size: 1.35rem;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Card Enhancements */
.card-event {
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f1f5f9;
}

.card-event:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Guest Room Hero */
.guest-hero {
    position: relative;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2rem;
    overflow: hidden;
}

.guest-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.65) 60%, rgba(15, 23, 42, 0.95) 100%);
}

.guest-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.gallery-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-media {
    transform: scale(1.05);
}

.gallery-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.gallery-card-actions {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 24px 12px 10px;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-play-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    padding-left: 3px;
    transition: transform 0.2s ease;
}

.gallery-card:hover .video-play-btn {
    transform: scale(1.1);
    background: #ffffff;
}

/* Floating Action Bottom Bar */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.06);
}

.btn-floating-action {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.btn-floating-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.55);
    color: white;
}

/* Offcanvas Bottom Sheet */
.offcanvas-bottom-sheet {
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
    border: none !important;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin-inline: auto;
}

.upload-action-tile {
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    padding: 24px 18px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.upload-action-tile:hover {
    border-color: var(--primary-color);
    background: #eef2ff;
}

.upload-action-tile input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.tile-icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Like Button */
.btn-like {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.15s ease;
}

.btn-like:active {
    transform: scale(1.25);
}

.btn-like.liked i {
    color: #f43f5e;
}

/* Print Card Template for Tables */
@media print {
    body * {
        visibility: hidden;
    }
    #print-qr-section, #print-qr-section * {
        visibility: visible;
    }
    #print-qr-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: block !important;
    }
}

.table-qr-card {
    border: 3px solid #1e293b;
    border-radius: 24px;
    padding: 36px;
    background: white;
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}
