body {
    background-color: aliceblue;
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
    overflow-x: hidden;
}

.lateralBar {
    position: fixed;
    height: 100vh;
    width: 7vw;
    max-width: 80px;
    min-width: 50px;
    left: 2%;
    top: 0;
    background-color: rgb(40, 140, 255);
    z-index: 1000;
}

.horizontalBar {
    position: absolute;
    top: 20%;
    left: 6%;
    width: min(130vh, 85vw);
    height: 15vh;
    min-height: 100px;
    background: rgb(27, 96, 175);
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
    filter: drop-shadow(12px 12px 20px rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    padding-left: 3%;
    gap: 1.5vw;
}

.horizontalBar::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(40, 140, 255);
    clip-path: inherit;
    z-index: -1;
}

#filtroContainer {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 1vw;
    align-items: center;
}

#filtroTipo {
    padding: 0.7vw 1vw;
    border: none;
    border-radius: 5px;
    font-size: clamp(12px, 1.2vw, 16px);
    cursor: pointer;
    background: white;
}

#btnFiltrar {
    padding: 0.7vw 1.5vw;
    background: rgb(27, 96, 175);
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

#btnFiltrar:hover {
    background: white;
    color: rgb(27, 96, 175);
}

#btnLimpar {
    padding: 0.7vw 1.5vw;
    background: rgb(203, 203, 203);
    color: rgb(27, 96, 175);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

#btnLimpar:hover {
    background: rgb(121, 127, 152);
    color: white;
}

#searchContainer {
    position: absolute;
    top: 8%;
    right: 5%;
    display: flex;
    gap: 1vw;
    align-items: center;
    z-index: 100;
}

#searchInput {
    padding: 0.8vw 1.5vw;
    border: 2px solid rgb(40, 140, 255);
    border-radius: 25px;
    font-size: clamp(12px, 1.2vw, 16px);
    width: clamp(200px, 22vw, 300px);
    outline: none;
    transition: all 0.3s;
}

#searchInput:focus {
    border-color: rgb(27, 96, 175);
    box-shadow: 0 0 10px rgba(40, 140, 255, 0.3);
}

#btnBuscar {
    padding: 0.8vw;
    background: rgb(40, 140, 255);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: clamp(16px, 1.5vw, 20px);
    width: clamp(40px, 3.5vw, 50px);
    height: clamp(40px, 3.5vw, 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#btnBuscar:hover {
    background: rgb(27, 96, 175);
    transform: scale(1.1);
}

#topReturn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: clamp(50px, 4vw, 60px);
    height: clamp(50px, 4vw, 60px);
    padding: 0;
    background: rgb(203, 203, 203);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#topReturn.show {
    opacity: 1;
    transform: scale(1);
}

#topReturn.show:hover {
    transform: scale(1.1);
    background: rgb(121, 127, 152);
}

#arrow-icon {
    width: 60%;
    height: 60%;
    display: block;
}

#iconContainer {
    position: absolute;
    top: 1%;
    left: 8%;
    margin-right: 1.5vw;
}

#localize-remedy-icon {
    max-width: 100%;
    width: clamp(85px, 8.5vw, 120px);
    height: clamp(85px, 8.5vw, 120px);
    object-fit: contain;
}

.title {
    position: absolute;
    top: 7%;
    left: 16%;
    font: normal bold clamp(36px, 4.5vw, 60px) sans-serif;
    color: rgba(18, 39, 60);
}

#remediosContainer {
    position: absolute;
    top: 40%;
    left: 15%;
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
    padding-bottom: 50px;
}

.remedioCard {
    background: white;
    padding: 1.5vw;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 5px solid rgb(40, 140, 255);
    width: 100%;
}

.remedioCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.remedioCard.expandido {
    background: rgb(240, 248, 255);
}

.remedioCard h3 {
    margin: 0 0 10px 0;
    color: rgb(27, 96, 175);
    font-size: clamp(18px, 1.6vw, 22px);
}

.remedioCard .tipo {
    display: inline-block;
    padding: 0.4vw 0.9vw;
    background: rgb(40, 140, 255);
    color: white;
    border-radius: 15px;
    font-size: clamp(12px, 1vw, 14px);
    margin-bottom: 10px;
}

.remedioInfo {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgb(40, 140, 255);
}

.remedioInfo.visivel {
    display: block;
}

.remedioInfo p {
    margin: 8px 0;
    color: rgb(18, 39, 60);
    font-size: clamp(14px, 1.2vw, 16px);
}

.remedioInfo strong {
    color: rgb(27, 96, 175);
}

.farmaciaInfo {
    margin-top: 15px;
    padding: 1.2vw;
    background: rgba(40, 140, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid rgb(40, 140, 255);
}

.farmaciaInfo p {
    margin: 5px 0;
}

.farmacia-nome {
    font-size: clamp(16px, 1.4vw, 18px);
    font-weight: bold;
    color: rgb(27, 96, 175) !important;
    margin: 8px 0 !important;
}

.farmacia-detalhe {
    color: rgb(18, 39, 60) !important;
    font-size: clamp(13px, 1.1vw, 15px);
}

.loading {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(20px, 1.8vw, 24px);
    color: rgb(27, 96, 175);
}

.erro {
    position: absolute;
    top: 40%;
    left: 15%;
    width: 75%;
    background: #ff4444;
    color: white;
    padding: 1.5vw;
    border-radius: 10px;
    text-align: center;
    font-size: clamp(16px, 1.3vw, 18px);
}

@media screen and (max-width: 1024px) {
    .lateralBar {
        width: 60px;
    }
    
    .title {
        font-size: 40px;
        left: 12%;
    }
    
    #remediosContainer {
        left: 12%;
        width: 80%;
    }
    
    .horizontalBar {
        width: 80vw;
    }
}

@media screen and (max-width: 768px) {
    .lateralBar {
        width: 50px;
    }
    
    .title {
        font-size: 32px;
        left: 10%;
        top: 5%;
    }
    
    #searchContainer {
        top: 12%;
        right: 3%;
    }
    
    .horizontalBar {
        width: 85vw;
        left: 8%;
        top: 22%;
        height: auto;
        min-height: 80px;
        padding: 15px;
        flex-wrap: wrap;
    }
    
    #remediosContainer {
        left: 10%;
        width: 85%;
        top: 42%;
    }
    
    #filtroContainer {
        flex-wrap: wrap;
        gap: 10px;
    }

}
