@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;600;700&display=swap');

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #1a1a1a;
    color: white;
    margin: 0;
    padding: 0;
}

/* Mantém o overlay global ocupando toda a tela na view de cardápio */
body[data-view="menu"] .container {
    height: 100vh;
}

body[data-view="menu"] .container::before {
    display: none;
}

.menu-container {
    width: 100vw;
    height: 100vh;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    /* Background será aplicado via JavaScript com imagem da API */
    background-size: cover;
    background-position: center;
    overflow: visible;
}
.menu-container::before{
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    /* 65% de opacidade escura - transparente */
    z-index: 0 !important;
    /* Abaixo do conteúdo, mas sobre a imagem de background */
    pointer-events: none !important;
    /* Não interfere com cliques */
}
/* Garante que o conteúdo fique acima da máscara (padrão home) */
.menu-container > * {
    position: relative;
    z-index: 1;
}
/* topo direito */
.menu-header-info {
    position: fixed;
    top: 32px;
    right: 79px;
    display: block;
    text-align: right;
    z-index: 10;
}

.room-info {
    display: inline-block;
    vertical-align: middle;
    margin-right: 40px;
    text-align: right;
}

.room-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.room-number {
    font-family: 'Inter';
    font-size: 20px;
    font-weight: 300;
    line-height: 100%;
    display: inline-block;
    vertical-align: middle;
}

.date-weather {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
}

.date-text {
    font-family: 'Inter';
    font-size: 14px;
    font-weight: 300;
    line-height: 100%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.weather-temp {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.weather-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.temp {
    font-family: 'Inter';
    font-size: 24px;
    font-weight: 400;
    line-height: 100%;
    display: inline-block;
    vertical-align: middle;
}

.time {
    font-family: 'Inter';
    font-size: 24px;
    font-weight: 400;
    line-height: 100%;
    display: inline-block;
    vertical-align: middle;
}

.time .am {
    font-weight: 200;
    text-transform: uppercase;
}

.menu-sidebar-bg {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 313px;
    height: 100vh;
    background: rgb(15, 15, 15);
    z-index: 9;
}

.menu-container .header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
}

.menu-sidebar {
    position: absolute;
    left: 42px;
    top: 130px;
    min-width: 182px;
    width: auto;
    z-index: 10;
    /* Fallback IE9 */
    display: block;
}

.category-btn {
    box-sizing: border-box;
    display: inline-block;
    width: auto;
    min-width: 120px;
    padding: 10px 20px;
    margin-bottom: 18px;
    background: transparent;
    opacity: 0.7;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 90px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    /* Permitir quebra de linha - sem truncamento */
    white-space: normal;
    word-wrap: break-word;
    /* Sem limite de altura ou largura máxima - permite expandir conforme necessário */
    /* Fallback IE9 */
    display: inline-block;
}

.category-btn:hover {
    opacity: 1;
}

.category-btn.active {
    background: rgba(193, 28, 54, 0.65);
    border: 1px solid rgba(193, 28, 54, 0.7);
    opacity: 1;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}


.menu-content {
    position: absolute;
    top: 0px;
    left: 24.5%;
    width: 75.5%;
    height: 720px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 145px 30px 35px 50px;
    /* Fallback IE9: sem flexbox */
    display: block;
}

/* Ocultar scrollbar nativa mas manter funcionalidade de scroll */
.menu-content {
    /* IE e Edge antigo */
    -ms-overflow-style: none;
    scrollbar-width: none; /* Firefox */
}

.menu-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Scrollbar customizada */
.custom-scrollbar {
    position: fixed;
    right: 30px;
    top: 145px;
    width: 3px;
    height: 516px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 15;
    pointer-events: auto;
    opacity: 1;
}

.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(193, 28, 54, 0.65);
    border-radius: 10px;
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
}

.category-title {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 32px;
    line-height: 39px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 40px 0;
    padding: 0;
    width: 100%;
}

.dish-list {
    /* Fallback IE9 */
    display: block;
    width: 100%;
}

.dish-item {
    width: 400px;
    min-height: 70px;
    padding-left: 82px;
    /* IE9: usar inline-block */
    display: inline-block;
    vertical-align: top;
    margin-bottom: 30px;
    margin-right: 90px;
    position: relative;
}

.dish-item:nth-child(2n) {
    margin-right: 0;
}

.dish-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.dish-info {
    /* Fallback IE9 */
    display: inline-block;
    vertical-align: top;
    width: 295px;
}

.dish-info-header {
    /* Fallback IE9 */
    display: block;
    width: 100%;
    margin-bottom: 6px;
    overflow: hidden;
}

.dish-info h3 {
    margin: 0;
    /* IE9 fallback */
    float: left;
    max-width: 190px;
    /* Browsers modernos */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.dish-info p {
    display: none;
}

.dish-price {
    /* IE9 fallback */
    float: right;
}

.price-currency {
    font-weight: 200;
    font-style: italic;
}

.price-value {
    font-weight: 300;
    font-style: italic;
    padding: 1px
}

/* Estado selecionado: moldura arredondada */
.dish-item.selected::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -6px;
    left: -8px; 
    border: 2px solid rgba(232, 54, 87, 0.9);
    border-radius: 16px;
    pointer-events: none; 
}

/* ===========================================
   MEDIA QUERIES PARA DIFERENTES TAMANHOS DE TELA
   Compatível com IE9+ e ES5
   =========================================== */

/* Responsive: Monitores médios (1366px - 1919px) */
@media screen and (min-width: 1366px) and (max-width: 1919px) {
    .menu-sidebar-bg {
        width: 350px;
    }
    
    .menu-sidebar {
        left: 50px;
        top: 140px;
        min-width: 200px;
        width: auto;
    }
    
    .category-btn {
        padding: 12px 24px;
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 20px;
    }
    
    .menu-content {
        left: 24.5%;
        width: 75.5%;
        height: 768px;
        padding: 155px 40px 40px 60px;
    }
    
    .custom-scrollbar {
        right: 40px;
        top: 155px;
        height: 550px;
    }
    
    .category-title {
        font-size: 42px;
        line-height: 42px;
        margin-bottom: 43px;
    }
    
    .dish-item {
        width: 427px;
        min-height: 75px;
        padding-left: 88px;
        margin-right: 96px;
        margin-bottom: 32px;
    }
    
    .dish-img {
        width: 75px;
        height: 75px;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .dish-info {
        width: 314px;
    }
    
    .dish-info h3 {
        font-size: 21px;
        line-height: 25px;
        max-width: 209px;
    }
    
    .dish-info p {
        font-size: 15px;
        line-height: 18px;
    }
    
    .room-number {
        font-size: 21px;
    }
    
    .date-text {
        font-size: 15px;
    }
    
    .temp, .time {
        font-size: 25px;
    }
    
    .weather-icon {
        width: 21px;
        height: 21px;
    }
    
    .room-icon {
        width: 25px;
        height: 25px;
    }
}

/* Responsive: TVs e monitores grandes (1920px+) */
@media screen and (min-width: 1920px) {
    .menu-sidebar-bg {
        width: 400px;
    }
    
    .menu-sidebar {
        left: 60px;
        top: 160px;
        min-width: 240px;
        width: auto;
    }
    
    .category-btn {
        padding: 15px 30px;
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 25px;
    }
    
    .menu-content {
        left: 24.5%;
        width: 75.5%;
        height: 1080px;
        padding: 217px 60px 50px 80px;
    }
    
    .custom-scrollbar {
        right: 60px;
        top: 217px;
        height: 773px;
    }
    
    .category-title {
        font-size: 48px;
        line-height: 59px;
        margin-bottom: 50px;
    }
    
    .dish-item {
        width: 570px;
        min-height: 105px;
        padding-left: 123px;
        margin-right: 135px;
        margin-bottom: 45px;
    }
    
    .dish-img {
        width: 105px;
        height: 105px;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .dish-info {
        width: 441px;
    }
    
    .dish-info h3 {
        font-size: 26px;
        line-height: 30px;
        max-width: 293px;
    }
    
    .dish-info p {
        font-size: 18px;
        line-height: 22px;
    }
    
    .room-number {
        font-size: 26px;
    }
    
    .date-text {
        font-size: 18px;
    }
    
    .temp, .time {
        font-size: 30px;
    }
    
    .weather-icon {
        width: 26px;
        height: 26px;
    }
    
    .room-icon {
        width: 30px;
        height: 30px;
    }
    
    .menu-header-info {
        top: 40px;
        right: 100px;
    }
    
    .room-info {
        margin-right: 50px;
    }
}

/* TVs maiores (QHD / 4K) */
@media screen and (min-width: 2560px) {
    .menu-sidebar-bg {
        width: 560px;
    }

    .menu-sidebar {
        left: 80px;
        top: 180px;
        min-width: 300px;
    }

    .menu-content {
        /* usar posicionamento por pixels para garantir espaço reservado */
        left: 560px;
        width: calc(100% - 560px);
        height: 1400px;
        padding: 230px 80px 60px 100px;
    }
}

@media screen and (min-width: 3840px) {
    .menu-sidebar-bg {
        width: 760px;
    }

    .menu-sidebar {
        left: 100px;
        top: 220px;
        min-width: 360px;
    }

    .menu-content {
        left: 760px;
        width: calc(100% - 760px);
        height: 2000px;
        padding: 260px 100px 80px 120px;
    }
}
