/* Moonveil Studio - Mockup-Aligned Premium CSS Design System (Full Width & PhotoLearn Palette) */

:root {
    /* Color Palette (PhotoLearn Style) */
    --color-bg: #F8FAFC;                 /* Soft slate blue-grey background */
    --color-header-bg: #FFFFFF;          /* Pure white header */
    --color-surface: #FFFFFF;            /* Pure white cards & blocks */
    --color-search-bg: #F1F5F9;          /* Light grey-blue search background */
    --color-border: #E2E8F0;             /* Clean border line */
    --color-border-hover: #CBD5E1;       /* Darker border for hover state */
    
    /* Brand Accents */
    --color-primary: #0F172A;            /* Rich dark navy */
    --color-primary-hover: #1E293B;      /* Slate grey-blue */
    --color-badge-red: #EF4444;          /* Accent red for discounts/alerts */
    
    /* Text Colors */
    --color-text-primary: #0F172A;        /* Dark charcoal */
    --color-text-secondary: #475569;      /* Slate grey */
    --color-text-muted: #94A3B8;          /* Muted grey */
    --color-text-light: #FFFFFF;

    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.5;
    padding-bottom: 48px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Full Width Fluid Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
}

/* Standard Main Content Wrapper */
.main-content-area {
    padding-top: 24px;
    padding-bottom: 24px;
    flex-grow: 1;
    width: 100%;
}

/* Banner uses full-width carousel layout, no grid needed */

/* Header Navigation - PhotoLearn Style */
.main-header {
    background-color: var(--color-header-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-image {
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.05;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-subtitle {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.header-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-link-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

.header-link-text:hover {
    color: var(--color-text-primary);
    background-color: var(--color-search-bg);
}

.header-link-text.active-login {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.header-link-text.active-login:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-text-light);
}

/* Social Media Buttons */
.header-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text-secondary);
    background-color: var(--color-search-bg);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn-ig:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #fff;
}

.social-btn-wa:hover {
    background-color: #25D366;
    border-color: transparent;
    color: #fff;
}

/* Banners Section - Multi-Image Carousel */
.banner-section {
    padding: 24px 0 16px 0;
}

.banner-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-carousel-track {
    display: flex;
    gap: 12px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-carousel-track.no-transition {
    transition: none !important;
}

.banner-carousel-track .banner-slide {
    flex-shrink: 0;
    width: calc((100% - 24px) / 3); /* 3 visible images with 2 gaps of 12px */
    height: 340px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.banner-carousel-track .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide:hover img {
    transform: scale(1.06);
}

/* Glassmorphism gradient text overlay */
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-border-hover);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.banner-dots .dot.active {
    width: 24px; /* Pill-shaped active state */
    background-color: var(--color-primary);
    border-radius: 4px;
    transform: none;
}

/* Search Bar Section */
.search-section {
    padding: 8px 0 24px 0;
}

.search-form-mockup {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 13.5px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.search-input-mockup {
    width: 100%;
    background-color: var(--color-search-bg);
    border: 1px solid var(--color-border);
    padding: 8px 16px 8px 38px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    border-radius: 8px;
    outline: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    height: 38px;
}

.search-input-mockup:focus {
    background-color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.search-input-mockup:focus + .search-icon {
    color: var(--color-primary);
}

.search-input-mockup::placeholder {
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Suggestions styling */
.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.suggestion-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.suggestion-pill {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.suggestion-pill:hover {
    color: #FFFFFF;
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 6-Columns Package Grid Section */
.packages-section {
    padding: 0;
}

.packages-wrapper-card {
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.packages-header-info {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

.packages-main-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.packages-main-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.packages-grid-mockup {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 1350px) {
    .packages-grid-mockup {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 1024px) {
    .packages-grid-mockup {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .packages-grid-mockup {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .packages-grid-mockup {
        grid-template-columns: 1fr;
    }
}

/* Package Card - Compact & Modern */
.package-card-mockup {
    /* Base CSS Variables for dynamic tier colors (default: Standar) */
    --tier-accent: #0F172A;
    --tier-border: var(--color-border);
    --tier-border-hover: var(--color-border-hover);
    --tier-bg: var(--color-surface);
    --tier-badge-bg: var(--color-primary);
    --tier-badge-text: var(--color-text-light);
    --tier-shadow-hover: rgba(15, 23, 42, 0.08);

    background-color: var(--tier-bg);
    border: 1px solid var(--tier-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.package-card-mockup:hover {
    transform: translateY(-3px);
    border-color: var(--tier-accent);
    box-shadow: 0 8px 18px -4px var(--tier-shadow-hover), var(--shadow-sm);
}

/* Card Tier Themes - Clean and Elegant Pastel/Neutral tints */

/* 1. Hemat / Video / Magnetik / Lainnya (Basic slate-gray style) */
.package-card-mockup.card-tier-hemat,
.package-card-mockup.card-tier-video,
.package-card-mockup.card-tier-magnetik,
.package-card-mockup.card-tier-lainnya {
    --tier-accent: #475569;
    --tier-border: #E2E8F0;
    --tier-border-hover: #94A3B8;
    --tier-bg: #F8FAFC;
    --tier-badge-bg: #475569;
    --tier-badge-text: #FFFFFF;
    --tier-shadow-hover: rgba(71, 85, 105, 0.08);
}

/* 2. Standard / Magazine (Classic Navy/dark elegant style) */
.package-card-mockup.card-tier-standard,
.package-card-mockup.card-tier-magazine {
    --tier-accent: #0F172A;
    --tier-border: #E2E8F0;
    --tier-border-hover: #0F172A;
    --tier-bg: #FFFFFF;
    --tier-badge-bg: #0F172A;
    --tier-badge-text: #FFFFFF;
    --tier-shadow-hover: rgba(15, 23, 42, 0.08);
}

/* 3. Premium (Luxurious very soft purple theme) */
.package-card-mockup.card-tier-premium {
    --tier-accent: #7C3AED;
    --tier-border: #E9D5FF;
    --tier-border-hover: #7C3AED;
    --tier-bg: #FAF5FF;
    --tier-badge-bg: linear-gradient(135deg, #7C3AED, #9333EA);
    --tier-badge-text: #FFFFFF;
    --tier-shadow-hover: rgba(124, 58, 237, 0.12);
}

/* 4. Special (Premium very soft champagne/gold theme) */
.package-card-mockup.card-tier-special {
    --tier-accent: #D97706;
    --tier-border: #FDE047;
    --tier-border-hover: #D97706;
    --tier-bg: #FFFDF5;
    --tier-badge-bg: linear-gradient(135deg, #D97706, #F59E0B);
    --tier-badge-text: #FFFFFF;
    --tier-shadow-hover: rgba(217, 119, 6, 0.12);
}

/* Card Tier Switcher Navigation (Segmented Control style) */
.tier-switcher-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
    margin: 2px 0 8px 0;
    padding: 2px;
    background-color: var(--color-search-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    position: relative;
    z-index: 6;
}

.tier-switcher-container::-webkit-scrollbar {
    display: none;
}

.tier-switcher-btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 3px 4px;
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    border: none;
    background: none;
    color: var(--color-text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.tier-switcher-btn:hover {
    color: var(--color-text-primary);
    background-color: rgba(0, 0, 0, 0.04);
}

.tier-text-full {
    display: inline;
}

.tier-text-short {
    display: none;
}

/* Only use short symbol on extra small mobile screens (<= 480px) if needed */
@media (max-width: 480px) {
    .tier-switcher-container.has-many-tiers .tier-text-full {
        display: none;
    }
    .tier-switcher-container.has-many-tiers .tier-text-short {
        display: inline;
        font-size: 9px;
        font-weight: 800;
    }
}

.tier-switcher-btn.active {
    color: var(--tier-accent) !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card-image-container {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--color-bg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card-mockup:hover .card-image-container {
    transform: scale(1.015);
}

.card-img-mockup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image fading helper (legacy) */
.card-img-mockup.fade-out {
    opacity: 0.3;
}

/* Location Overlay on Image bottom-left */
.card-location-overlay {
    position: absolute;
    bottom: 6px;
    left: 6px;
    color: var(--color-text-light);
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 5;
}

/* Dynamic Pill Badge */
.card-badge-tag-pill {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--tier-badge-bg);
    color: var(--tier-badge-text);
    font-size: 8.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 14px;
    text-transform: capitalize;
    box-shadow: var(--shadow-sm);
    z-index: 5;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Red Circular Discount Badge */
.card-badge-discount-circle {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: var(--color-badge-red);
    color: var(--color-text-light);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    z-index: 5;
}

.discount-label-text {
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.card-body-mockup {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-mockup {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--tier-border);
    line-height: 1.3;
    transition: border-color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title-mockup a {
    transition: color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.card-title-mockup a:hover {
    color: var(--tier-accent) !important;
}

.card-features-list-mockup {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10.5px;
    color: var(--color-text-secondary);
    min-height: 44px; /* Uniform height */
}

.card-feature-item-mockup {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-feature-item-mockup::before {
    content: "•";
    color: var(--tier-accent);
    font-weight: bold;
    display: inline-block;
    width: 6px;
}

.card-price-mockup {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.current-price-mockup {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--tier-accent);
    transition: color 0.3s ease;
}

/* Detail View Layout */
.detail-layout-container {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 992px) {
    .detail-layout-container {
        grid-template-columns: 1fr;
    }
}

.detail-main-content {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.detail-gallery {
    aspect-ratio: 16/9;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-header-info {
    padding: 32px;
    border-bottom: 1px solid var(--color-border);
}

.detail-category {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.detail-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.detail-body-section {
    padding: 32px;
}

.detail-body-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border);
}

.detail-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.features-list li {
    font-size: 14px;
    color: var(--color-text-secondary);
    display: flex;
    gap: 8px;
}

/* Sidebar Booking Card */
.booking-sidebar-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.booking-sidebar-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.sidebar-price-block {
    background-color: var(--color-search-bg);
    border: 1px solid var(--color-border);
    padding: 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
}

.sidebar-price-label {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.sidebar-original-price {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.sidebar-current-price {
    font-size: 22px;
    font-weight: 800;
}

.booking-form {
    display: block;
}

.wa-booking-form {
    display: block;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    background-color: var(--color-search-bg);
    transition: var(--transition-smooth);
}

.form-control:focus {
    background-color: var(--color-surface);
    border-color: var(--color-border-hover);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.btn-submit-booking {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--color-primary);
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-submit-booking:hover {
    background-color: var(--color-primary-hover);
}

.sidebar-auth-alert {
    padding: 16px;
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    text-align: center;
    border-radius: var(--radius-md);
}

.sidebar-auth-alert p {
    font-size: 13px;
    color: #1E40AF;
    margin-bottom: 12px;
}

.btn-sidebar-auth {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-light);
    background-color: #2563EB;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    display: inline-block;
}

/* Toast Notifications */
.toast-alert {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 1000;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s forwards;
}

.alert-success {
    background-color: #10B981;
}

.alert-error {
    background-color: #EF4444;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Authentication Layout Cards */
.auth-layout-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.auth-footer a {
    font-weight: 700;
    text-decoration: underline;
    color: var(--color-text-primary);
}

/* Client Dashboard: Table */
.dashboard-container {
    padding: 24px 40px;
}

.dashboard-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.dashboard-title-row {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bookings-table-wrapper {
    overflow-x: auto;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bookings-table th {
    padding: 14px;
    background-color: var(--color-search-bg);
    border-bottom: 1px solid var(--color-border);
    font-weight: 700;
    text-align: left;
}

.bookings-table td {
    padding: 14px;
    border-bottom: 1px solid var(--color-border);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.status-pending {
    color: #D97706;
    background-color: #FEF3C7;
}

.status-badge.status-approved {
    color: #059669;
    background-color: #D1FAE5;
}

.status-badge.status-cancelled {
    color: #DC2626;
    background-color: #FEE2E2;
}

/* Footer Section */
.main-footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 64px 0 24px;
    border-top: 1px solid #1E293B;
}

.footer-container {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .footer-logo {
    color: var(--color-text-light);
    font-size: 22px;
    font-weight: 800;
    display: block;
    margin-bottom: 12px;
}

.footer-brand .footer-desc {
    font-size: 14px;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul a {
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.footer-links ul a:hover {
    color: var(--color-text-light);
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin UI Special Adjustments */
input[type="file"].form-control {
    padding: 8px 12px;
    background-color: var(--color-search-bg);
}

/* Admin Layout (Sidebar & Main content) */
.admin-layout-wrapper {
    display: flex;
    min-height: calc(100vh - 72px);
    background-color: var(--color-bg);
}

.admin-sidebar {
    width: 280px;
    background-color: #FFFFFF;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 72px;
    left: 0;
    height: calc(100vh - 72px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
    overflow-y: auto;
}

.admin-sidebar.collapsed {
    transform: translateX(-100%);
}

.admin-sidebar-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

.admin-sidebar-menu {
    padding: 24px 16px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.admin-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.admin-menu-item a:hover {
    color: var(--color-text-primary);
    background-color: #F1F5F9;
}

.admin-menu-item.active a {
    color: var(--color-text-primary);
    background-color: #E2E8F0;
}

.admin-main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.admin-sidebar.collapsed ~ .admin-main-content {
    margin-left: 0;
}

.admin-top-navbar {
    height: 70px;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* User Pill Badge */
.user-name-link {
    font-weight: 600 !important;
    color: var(--color-text-primary) !important;
    background-color: var(--color-search-bg);
    border: 1px solid var(--color-border);
    padding: 6px 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: capitalize;
}

/* Red Logout Button */
.logout-link-red {
    color: #EF4444 !important;
    font-weight: 700 !important;
    transition: var(--transition-smooth);
}

.logout-link-red:hover {
    background-color: #FEE2E2 !important;
    color: #DC2626 !important;
}

/* ===== WhatsApp Booking Form Styles ===== */

/* Price + Button side by side */
.sidebar-price-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

/* Green WhatsApp order button */
.btn-order-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #059669;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    flex-shrink: 0;
}

.btn-order-wa:hover {
    background-color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

/* Divider inside form */
.wa-form-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 20px 0;
}

/* Input with @ prefix */
.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.input-with-prefix:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.input-prefix {
    padding: 10px 12px;
    background-color: var(--color-search-bg);
    color: var(--color-text-secondary);
    font-weight: 700;
    font-size: 14px;
    border-right: 1px solid var(--color-border);
    user-select: none;
}

.input-with-prefix .form-control {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
}

/* Required star indicator */
.required-star {
    color: #EF4444;
    font-weight: 700;
}

/* Send WA button */
.btn-wa-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    margin-top: 8px;
}

.btn-wa-send:hover {
    background-color: #1fba59;
}

/* Page Header Card (Matches Tailwired bg-gradient-to-r from-gray-900 to-gray-700 rounded-2xl shadow-xl) */
.page-header-card {
    background: linear-gradient(to right, #111827, #374151); /* from-gray-900 to-gray-700 gradient */
    color: #FFFFFF;
    padding: 16px 28px;
    border-radius: 16px; /* rounded-2xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
    margin-bottom: 12px; /* Jarak ke bawah 12px konsisten */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

/* Background decoration glows */
.page-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    margin-right: -64px;
    margin-top: -64px;
    width: 192px;
    height: 192px;
    border-radius: 50%;
    background-color: #FFFFFF;
    opacity: 0.05;
    filter: blur(48px);
    pointer-events: none;
}

.page-header-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: -32px;
    margin-bottom: -32px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-color: #9CA3AF;
    opacity: 0.1;
    filter: blur(32px);
    pointer-events: none;
}

.page-header-info {
    flex: 1;
    min-width: 250px;
    position: relative;
    z-index: 10;
}

.page-header-info h2 {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.page-header-info p {
    font-size: 14px;
    color: #D1D5DB; /* text-gray-300 */
    margin: 0;
    line-height: 1.5;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* White Header Button (Matches 'Export' button in screenshot) */
.btn-header-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    height: 38px;
    box-sizing: border-box;
    background-color: #FFFFFF;
    color: #0F172A !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-header-white:hover {
    background-color: #F1F5F9;
    border-color: #F1F5F9;
    transform: translateY(-1px);
}

.booking-layout-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 14px;
    align-items: start;
}

.booking-card {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}

.wa-booking-form .form-group {
    margin-bottom: 12px !important;
}

.wa-booking-form .form-group:last-child {
    margin-bottom: 0 !important;
}

.wa-booking-form .form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 4px;
    display: block;
}

.wa-booking-form .form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #F8FAFC;
    color: #0F172A;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.wa-booking-form .form-control:focus {
    background: #FFFFFF;
    border-color: #0F172A;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

/* Summary Panel Styles */
.sticky-summary-card {
    position: sticky;
    top: 96px; /* Offset from header navigation */
}

.summary-package-header {
    margin-bottom: 12px;
}

.summary-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
    display: block;
}

.summary-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 4px 0 6px 0;
}

.summary-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 12px 0;
}

.summary-price-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.price-row .new-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-primary);
}

.price-row .old-price {
    text-decoration: line-through;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-right: 8px;
}

.deposit-row {
    font-weight: 600;
    color: #B45309; /* Warm brown-orange color */
    background: #FFFBEB;
    padding: 10px 14px;
    border-radius: var(--radius-md);
}

.deposit-val {
    font-weight: 800;
}

.summary-note {
    background-color: var(--color-search-bg);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ===== Sidebar Backdrop for Mobile & Tablet ===== */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* ===== Form Responsive Grid Utilities ===== */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.form-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

/* ===== Table Responsive Container ===== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== Responsive Bookings View (Table on Desktop, Schedule-style Cards on Mobile/Tablet) ===== */
.bookings-desktop-view {
    display: block;
}

.bookings-mobile-cards-view {
    display: none;
}

/* ===== Tablet Breakpoints (992px and below) ===== */
@media (max-width: 992px) {
    .bookings-desktop-view {
        display: none !important;
    }
    
    .bookings-mobile-cards-view {
        display: flex !important;
        flex-direction: column;
        gap: 14px;
    }

    .container {
        padding: 0 24px;
    }
    
    .header-container {
        padding: 0 24px;
    }
    
    .admin-main-content {
        margin-left: 0 !important;
        width: 100%;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.15);
        z-index: 105;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0) !important;
    }
    
    .form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .banner-carousel-track .banner-slide {
        width: calc((100% - 12px) / 2);
        height: 280px;
    }
    
    .booking-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sticky-summary-card {
        position: static;
    }
}

/* ===== Mobile Breakpoints (768px and below) ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo-title {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 16px;
    }
    
    .header-link-text {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .form-grid-3,
    .form-grid-2,
    .form-grid-responsive {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .packages-wrapper-card {
        padding: 12px 14px;
    }
    
    .page-header-card {
        padding: 16px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .page-header-info h2 {
        font-size: 20px;
    }
    
    .page-header-info p {
        font-size: 12.5px;
    }
    
    .page-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .banner-carousel-track .banner-slide {
        width: 100%;
        height: 220px;
    }
    
    /* Optimize spacing for package cards on mobile */
    .packages-grid-mockup {
        gap: 12px;
    }
    
    .package-card-mockup {
        border-radius: 12px;
    }
    
    .card-body-mockup {
        padding: 12px 10px;
    }
    
    .card-title-mockup {
        font-size: 14px;
        margin-bottom: 8px;
        padding-bottom: 4px;
    }
    
    .tier-switcher-container {
        margin: 4px 0 12px 0;
    }
    
    .tier-switcher-btn {
        padding: 4px 6px;
        font-size: 9px;
    }
    
    .card-features-list-mockup {
        margin-bottom: 12px;
        font-size: 10px;
        min-height: auto;
    }
    
    .card-price-mockup {
        padding-top: 8px;
    }
    
    .current-price-mockup {
        font-size: 13px;
    }
    
    .schedule-item-card {
        padding: 14px 12px !important;
        gap: 14px !important;
    }
    
    .schedule-filter-tab {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }
}

/* ===== Extra Small Mobile (480px and below) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header-container {
        padding: 0 12px;
    }
    
    .packages-wrapper-card {
        padding: 12px 10px;
        border-radius: 8px;
    }
    
    .page-header-card {
        padding: 14px 14px 12px 14px;
        margin-bottom: 12px;
    }
    
    .page-header-card::before,
    .page-header-card::after {
        display: none;
    }
    
    .user-name-link {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


