/* Floating Button Styling */
.floating-calc-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffb400;
    color: #000557;
    padding: 12px 20px 12px 15px;
    border-radius: 0 30px 30px 0;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.2);
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-calc-btn:hover {
    padding-left: 25px;
    background-color: #e5a200;
}

/* Slide-out Panel Styling */
.side-calculator-panel {
    position: fixed;
    left: -400px; /* Hidden by default */
    top: 0;
    width: 350px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 5px 0 25px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
}

/* Class to toggle the panel open */
.side-calculator-panel.open {
    left: 0;
}

/* Mobile responsiveness */
@media (max-width: 400px) {
    .side-calculator-panel {
        width: 100%;
        left: -100%;
    }
    .side-calculator-panel.open {
        left: 0;
    }
}