body {
    background-color: rgb(248, 239, 227);
    margin: 0;
    overflow-x: hidden;
}

.topbar {
    display: flex;
    background-color: rgb(202, 35, 35);
    height: 60px;
    z-index: 20;
    position: sticky;
    margin-top: 10px;
    margin: 10px;
    top: 5px;
    backdrop-filter: blur(14px);
    border-bottom: 2px solid gray;
    border-radius: 1.8rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.25);
}

.titlu {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: aliceblue;
    font-size: 1.1rem;
    margin: 0;
}

hr {
    border: none;
    height: 2px;
    background-color: #838383;
}

.zonaCalcul {
    display: flex;
    justify-content: left;
    margin-left: 40px;
    margin-top: 10rem;
    gap: 10px;
    height: 140px;
}

.cardX {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.rezultate {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 50px;
}

.calculate-button {
    background-color: #bb2f2f;
    height: 48px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(18, 106, 73, .22);
    transition: .2s ease;
}

.calculate-button:hover {
    background-color: #ffffff;
    height: 48px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    color: #bb2f2f;
    font-weight: 750;
    cursor: pointer;
    border: 1.5px solid black;
    box-shadow: 0 7px 16px rgba(18, 106, 73, .22);
    transition: .2s ease;
}

.card-rezultat {
    width: 350px;
}

.rezultat-box {
    display: flex;
    width: 350px;
    height: 50px;
    justify-content: left;
    align-items: center;
    gap: 10px;
}

.rezultatPret {
    display: grid;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 50px;
    width: 150px;
    border: 1px solid black;
    border-radius: 10px;
    background-color: #d3d3d3;
}

.rezultatBox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 50px;
}

#rezultat {
    text-align: left;
    padding: 0;
    margin: 0;
}

/* Elimină săgețile în Chrome, Edge și Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

/* Elimină săgețile în Firefox */
input[type="number"] {
    appearance: textfield;
}

/* Poziționează procentul în câmp */
.percentage-input {
    position: relative;
    width: 100%;
}

.percentage-input input {
    padding-right: 35px;
}

.percentage-input span {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #333;
}

.form-control:focus {
    border-color: #c72b2b;
    box-shadow: 0 0 0 4px rgba(199, 43, 43, 0.25);
    outline: none;
}