/* Global CSS for Tizen Smart TV (1920x1080) */

:root {
    --primary-blue: #1976D2;
    --primary-blue-dark: #0D47A1;
    --accent-orange: #FF9800;
    --background-dark: #121212;
    --surface-dark: #1E1E1E;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --focus-glow: 0 0 15px var(--accent-orange);
    --transition-speed: 300ms;
}

html {
    height: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 18px;
}

#app {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.page, .screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    z-index: 1;
    overflow: hidden;
}

.page.active, .screen.active {
    display: flex;
}

/* Common UI Elements */
.button {
    padding: 15px 40px;
    background-color: var(--surface-dark);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.focusable {
    cursor: pointer;
}

.focusable:focus,
.focusable:hover {
    outline: none;
    --border-color: #333;
    border-color: var(--accent-orange);
    background-color: var(--primary-blue-dark);
    box-shadow: var(--focus-glow);
    transform: scale(1.05);
}

/* Page Transitions */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    overflow: hidden;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Login Page Styles */
#login-page {
    background: var(--background-dark);
    display: none;
    justify-content: center;
    align-items: center;
}

#login-page.active {
    display: flex;
}

.login-background {
    position: absolute;
    inset: 0;
    background: #000;
    background-size: cover;
    background-position: center;
    transition: background-image 800ms ease-in-out;
    z-index: 0;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.login-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    padding: 20px 60px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 2;
}

.brand-title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Footer Ticker */
.footer-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px !important;
    line-height: 45px;
    background: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    z-index: 40;
}

.ticker-content {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.login-clock {
    text-align: right;
}

#login-time {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
}

#login-date {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.login-content {
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 520px;
    background: rgba(26, 26, 26, 0.7);
    border-radius: 16px;
    padding: 28px 28px 24px;
}

.login-title {
    text-align: center;
    font-size: 44px;
    margin: 0 0 20px;
    color: #fff;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.input-container input {
    background: #333;
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    padding: 14px 18px;
    font-size: 24px;
    border-radius: 12px;
    width: 400px;
    outline: none;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.input-container input:disabled {
    opacity: 0.8;
}

.input-container input:focus, 

.input-container input:hover {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.login-error {
    min-height: 28px;
    color: #ff4444;
    font-size: 18px;
    text-align: center;
}

.login-button {
    width: 200px;
    height: 56px;
    background: #007BFF;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.demo-button {
    width: 200px;
    height: 50px;
    background: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-button:focus,
.demo-button:hover {
    background: var(--accent-orange);
    color: #000;
    transform: scale(1.1);
}

.login-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    font-style: italic;
}

/* Welcome Page Styles */
#welcome-page {
    background: #000;
}

.welcome-background {
    position: absolute;
    inset: 0;
    background: #000;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.welcome-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.welcome-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 60px;
    z-index: 20;
}

.welcome-hotel-logo {
    height: 80px;
    max-width: 300px;
    object-fit: contain;
}

.welcome-top-right {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    color: #fff;
}

.top-info-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.room-info {
    text-align: right;
}

.room-label {
    font-size: 26px;
    font-weight: 700;
}

#welcome-room-number {
    font-size: 26px;
    font-weight: 700;
}

.message-info {
    padding-top: 5px;
}

.message-info i {
    font-size: 50px;
    color: #fff;
}

.weather-info {
    text-align: right;
}

.weather-temp {
    font-size: 28px;
    font-weight: 800;
}

.weather-cond {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.divider-dot {
    font-size: 30px;
    padding-top: 10px;
}

.time-date-info {
    text-align: right;
}

.time-display {
    font-size: 28px;
    font-weight: 800;
}

.date-display {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* Main Card */
.welcome-body {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    width: 1700px;
    z-index: 20;
}

.welcome-card {
    background: rgba(18, 18, 18, 0.85);
    border-radius: 20px;
    padding: 35px 50px;
    display: flex;
    gap: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 480px;
    align-items: flex-start;
}

.card-left {
    flex: 1;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.welcome-letter {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-height: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-right {
    width: 180px;
    padding-top: 10px;
}

.welcome-manager-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Language Selection */
.welcome-language {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    z-index: 30;
}

.lang-item {
    width: 105px;
    height: 77px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flag-container {
    width: 50px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flag-container img {
    width: 45px;
    height: auto;
    object-fit: contain;
}

.lang-item span {
    display: none; /* Hide text as per screenshot buttons */
}

.lang-item:focus, 

.lang-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

/* Settings Button */
.settings-fab {
    position: absolute;
    bottom: 35px;
    right: 45px;
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 30;
}

.settings-fab i {
    font-size: 40px;
    color: #fff;
}

.settings-fab:focus, 

.settings-fab:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: scale(1.1);
}

/* Live TV Styles */
.tv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.channel-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 400px;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 60px 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    pointer-events: auto;
    z-index: 100;
}

#live-tv-page.active .channel-sidebar {
    transform: translateX(0);
}

.channel-item {
    padding: 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 24px;
}

.channel-item:focus, 

.channel-item:hover {
    background: var(--primary-blue);
    box-shadow: var(--focus-glow);
}

.welcome-message {
    text-align: center;
    margin-bottom: 50px;
}

.welcome-message h2 {
    font-size: 36px;
    color: var(--text-secondary);
}

.welcome-message h1 {
    font-size: 72px;
    margin: 10px 0;
    color: #fff;
}

.language-selection {
    display: flex;
    gap: 30px;
}

.lang-btn {
    background: var(--surface-dark);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 20px 50px;
    font-size: 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:focus, 

.lang-btn:hover {
    background: var(--primary-blue);
    border-color: var(--accent-orange);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-blue);
}

/* Home Page Styles */
#home-page {
    background: #000;
}

.home-top-block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 25;
}

.home-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: none; /* Make transparent to show overlay block */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 30;
}

.home-top-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.home-guest-info {
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding-left: 30px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 30;
}

.hotel-logo {
    width: 190px; /* Increased 25% from 150px */
    height: auto;
    object-fit: contain;
    margin-top: -10px;
}

.home-top-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-info-item {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.room-info {
    font-size: 24px;
    font-weight: 700;
    flex-direction: row !important;
    gap: 8px;
    align-items: center;
}

.message-info {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.message-info:focus, 

.message-info:hover {
    background: var(--accent-orange);
    color: #000;
    transform: scale(1.1);
}

.weather-info {
    align-items: flex-start;
}

.weather-row1 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
}

.weather-row1 i {
    color: #FFD700; /* Sunny yellow */
}

.weather-cond {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.divider-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin: 0 5px;
}

.time-display {
    font-size: 20px;
    font-weight: 700;
}

.date-display {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Middle Section */
.home-middle-section {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-55%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 56px;
    z-index: 20;
}

.welcome-copy h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.welcome-copy p {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.qr-card {
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    animation: fadeInRight 1s ease;
}

.qr-image-container {
    width: 140px;
    height: 140px;
}

.qr-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-label {
    margin-top: 8px;
    font-size: 8px; /* Very small in APK */
    font-weight: 800;
    color: #333;
    text-align: center;
}

/* Home Menu Grid - Fixing Clipping & Scrolling */
.menu-grid {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start; /* Do not center, allow overflow */
    gap: 30px;
    overflow-x: auto;
    padding: 20px 80px; /* Padding for first/last items */
    z-index: 30;
    scrollbar-width: none; /* Hide scrollbar for TV */
}

.menu-grid::-webkit-scrollbar {
    display: none;
}

.menu-item {
    min-width: 260px;
    height: 180px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.menu-item:focus, 

.menu-item:hover {
    transform: scale(1.1);
    background: var(--accent-orange);
    border-color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.menu-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.menu-icon i {
    font-size: 60px;
    color: #fff;
}

.menu-image-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-item:focus .menu-icon i,
.menu-item:focus .menu-title , 

.menu-item:focus .menu-icon i,
.menu-item:hover .menu-title {
    color: #000;
}

.menu-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding: 0 10px;
    letter-spacing: 0.5px;
}

.bg-carousel-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #000;
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-layer.active {
    opacity: 1;
    z-index: 1;
}

.bg-layer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Page Specific Styles */
#content-page {
    background-color: #000;
    transition: background 0.8s ease-in-out;
}

.home-overlay, .content-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* Home UI elements container */
.home-topbar, .home-middle-section, .menu-grid, .footer-ticker {
    z-index: 20;
}

.content-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 30;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.back-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-btn:focus, 

.back-btn:hover {
    background: var(--accent-orange);
    transform: scale(1.1);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.content-three-column {
    position: absolute;
    top: 120px; /* Space for topbar */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    padding: 40px 60px;
    gap: 25px; /* Reduced gap based on reference */
    z-index: 20;
}

/* Sidebar (Category List) */
.sidebar {
    width: 300px; /* Fixed width */
    background: rgba(26, 31, 38, 0.75); /* --card-dark */
    border-radius: 18px;
    border: none;
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 15px;
    overflow-y: hidden;
    box-shadow: none;
}

.sidebar-header {
    width: 100%;
    background: linear-gradient(to right, #3B82F6, #2563EB);
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    text-align: center;
    padding: 18px;
    border-radius: 15px;
    text-transform: uppercase;
}

.sidebar-items {
    flex: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow-y: auto;
    padding-right: 5px;
}
.sidebar-items::-webkit-scrollbar {
    display: none;
}

.sub-item {
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(45, 55, 72, 0.5); /* --borderGray */
    border: none;
    color: rgba(207, 207, 207, 1); /* textGray */
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: capitalize;
    text-align: center;
}

.sub-item:focus,
.sub-item:hover,
.sub-item.selected {
    background: #3B82F6; /* accentBlue */
    color: #fff;
    border-color: transparent;
    transform: none;
    box-shadow: none;
    font-weight: 700;
    cursor: pointer;
}

/* Middle Column (Grid Items) */
.middle-column {
    flex: 0.5; /* Takes less space than detail */
    background: rgba(26, 31, 38, 0.75); /* --card-dark */
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 12px;
    box-shadow: none;
    overflow: hidden;
}

.middle-header {
    display: flex;
    flex-direction: column;
}

.middle-header h2, #content-category-title {
    font-size: 27px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.middle-header-underline {
    width: 75px;
    height: 3px;
    background: linear-gradient(to right, #3B82F6, #60A5FA);
    border-radius: 3px;
    margin-bottom: 12px;
}

.items-grid {
    flex: 1; /* Take up vertical space */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;
    align-content: start;
    gap: 12px;
    overflow-y: auto;
    padding-right: 0px;
}

.gallery-item {
    position: relative;
    background: #000;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: none;
    aspect-ratio: 16/9;
}

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item:focus, 

.gallery-item:hover {
    transform: scale(1.05);
    border: 2px solid #00D9FF;
    box-shadow: none;
    z-index: 10;
}

/* Sub-menu as icon grid (when no gallery layout_type) */
.sub-menu-grid-item {
    aspect-ratio: unset !important;
    height: auto !important;
    min-height: 120px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sub-menu-grid-item .title {
    position: relative !important;
    background: none !important;
    padding: 0 !important;
    font-size: 16px;
    text-align: center;
}

.sub-menu-grid-item:focus, 

.sub-menu-grid-item:hover {
    transform: scale(1.05);
    border: 2px solid #3B82F6;
    background: rgba(59,130,246,0.3) !important;
    box-shadow: 0 0 20px rgba(59,130,246,0.4);
}

/* Detail Column (Item Details - Zoomed View) */
.detail-column {
    flex: 2; /* Takes significantly more space than middle column for 'Zoom' look */
    width: auto;
    background: rgba(26, 31, 38, 0.4); 
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    padding: 0; /* Remove padding for edge-to-edge zoom if desired */
    position: relative;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

#detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zoomed effect */
    transition: transform 0.5s ease;
}

.item-description-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 60px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.zoom-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.zoom-description {
    font-size: 22px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.description-text {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(207, 207, 207, 1);
}

/* Backward compatibility for content generated by JS */
#item-detail h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 9px;
}

#item-detail h2 {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
}

#item-detail p {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(207, 207, 207, 1);
}

/* Layout 2: Information Text (Special wide view) */
.layout-info-text {
    width: 100%;
    max-width: 1240px;
    margin: 40px auto;
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Layout 3: Hotel Services */
.service-item-detail {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Restaurant Specifics */
.cart-badge {
    background: var(--accent-orange);
    color: #000;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 800;
    margin-left: 12px;
}

/* ============================================================
   WEB DEMO OVERRIDES - Responsive Scaling for Browser Preview
   ============================================================ */

/* Login Card - responsive width */
.login-card {
    width: min(520px, 90vw);
}

.input-container input {
    width: min(400px, 80vw);
}

/* Welcome Body - scale from fixed 1800px TV size */
.welcome-body {
    width: min(1800px, 96vw);
}

/* Welcome Card - allow flexible height */
.welcome-card {
    /* Removed min-height: unset; to allow larger fixed heights requested for web demo */
}

/* Topbars responsive heights */
@media (max-width: 1400px) {
    .home-topbar,
    .content-topbar,
    .welcome-topbar {
        height: auto;
        min-height: 80px;
        padding: 12px 24px;
    }
    .content-three-column {
        top: 80px;
        padding: 20px 24px;
    }
    .hotel-logo {
        width: 120px;
    }
    .menu-grid {
        bottom: 40px;
        padding: 12px 40px;
    }
    .sidebar {
        width: 200px;
    }
}

/* Allow text input selection for demo usability */
.login-fields input {
    -webkit-user-select: text !important;
    user-select: text !important;
}