:root {
    --primary: #cba358; /* Premium Gold */
    --primary-hover: #b08d48;
    --primary-light: #e3c47f;
    --btn-text: #121212;
    --dark-bg: #121212;
    --card-bg: rgba(25, 25, 25, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --danger: #ff4757;
    --success: #2ed573;
}

body.theme-hotel {
    --primary: #cba876; /* Preto com Dourado Ouro */
    --primary-hover: #b89360;
    --primary-light: #e0c598;
    --btn-text: #000000;
    --dark-bg: #08090d; /* Preto Profundo */
    --card-bg: rgba(18, 19, 28, 0.75);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(203, 168, 118, 0.25);
    --text-main: #f8f9fa;
    --text-muted: #94a3b8;
}

body.theme-motel {
    --primary: #e02475; /* Preto com Rosa Escuro */
    --primary-hover: #c41c65;
    --primary-light: #f0488f;
    --btn-text: #ffffff;
    --dark-bg: #0a0508; /* Preto Profundo */
    --card-bg: rgba(23, 11, 18, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(224, 36, 117, 0.3);
    --text-main: #f8f9fa;
    --text-muted: #b8a6af;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Background Image with Overlay for Guest App */
.guest-body {
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.guest-body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(18,18,18,0.95) 100%);
    z-index: -1;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    color: var(--primary);
}

/* Custom Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--btn-text);
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--btn-text);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}

/* Bottom Navigation (Guest) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: env(safe-area-inset-bottom, 10px);
    z-index: 1000;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}
.nav-item.active {
    color: var(--primary);
}
.nav-item:hover {
    color: var(--primary-hover);
}

/* Cards */
.menu-card {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}
.menu-card:active {
    transform: scale(0.98);
}
.menu-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    padding: 5px;
}
.menu-info {
    margin-left: 15px;
    flex: 1;
}
.menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}
.menu-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0;
}
.menu-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.service-btn i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.service-btn:hover, .service-btn:active {
    background: rgba(203, 163, 88, 0.1);
    border-color: var(--primary);
}

/* Admin/Reception Styles */
.sidebar {
    background: #1a1a1a;
    border-right: 1px solid #333;
    min-height: 100vh;
}
.sidebar .nav-link {
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 5px;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: rgba(203, 163, 88, 0.1);
    color: var(--primary);
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary);
}

/* Chat styles */
.chat-container {
    height: 60vh;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.chat-bubble.received {
    background: #2b2d31 !important;
    color: #ffffff !important;
    border: 1px solid #3f4248;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    margin-right: auto;
    margin-left: 0;
}
.chat-bubble.sent {
    background: #0d6efd !important;
    color: #ffffff !important;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
}
.chat-time {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 4px;
    text-align: right;
    color: rgba(255,255,255,0.85) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Global Form Controls Fix (Dark Text on Dark Background) */
.form-control, .form-select, .form-control[readonly] {
    background-color: var(--card-bg) !important;
    border-color: var(--glass-border) !important;
    color: var(--text-main) !important;
}

.form-control:focus, .form-select:focus {
    background-color: var(--dark-bg) !important;
    border-color: var(--primary) !important;
    color: var(--text-main) !important;
    box-shadow: 0 0 0 0.25rem rgba(203, 163, 88, 0.25) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 1;
}

select option {
    background-color: var(--dark-bg);
    color: var(--text-main);
}

/* SweetAlert inputs fix */
.swal2-input, .swal2-textarea {
    color: #fff !important;
}

/* Autofill Fix for Dark Mode */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--card-bg) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}


/* Hospeday CSS Logo */
.logo-hospeday { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.5rem; color: var(--text-main); text-decoration: none; letter-spacing: 0.5px; }
.logo-hospeday .logo-icon { position: relative; width: 32px; height: 36px; background-color: transparent; border: 2px solid var(--primary); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); display: flex; align-items: center; justify-content: center; margin-right: 10px; }
.logo-hospeday .logo-icon::before { content: 'H'; color: var(--primary); font-weight: 700; font-size: 1.2rem; }
.logo-hospeday span { color: var(--primary); margin-left: 5px; font-weight: 700; }
.logo-hospeday:hover { color: var(--text-main); }
