/* Floating buttons */
.floating-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    background: var(--brand-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
}

#btnTools { bottom: 20px; right: 20px; }
#btnCalc  { bottom: 20px; left: 20px; }

/* Popups */
.popup {
    position: fixed;
    width: 280px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
    z-index: 999;
}

#popupTools { bottom: 80px; right: 20px; }
#popupCalc  { bottom: 80px; left: 20px; }

.tabs { display: flex; margin-bottom: 10px; }
.tabs button {
    flex: 1; border: none; padding: 6px; cursor: pointer; background: var(--brand-color-light);
}
.tabs button.active { background: var(--brand-color); color: white; }

.display {
    font-size: 22px;
    text-align: center;
    margin-bottom: 10px;
}

.controls button { margin: 2px; }

/* Calculator */
.calc-display {
    width: 100%;
    height: 40px;
    text-align: right;
    margin-bottom: 10px;
    font-size: 18px;
    padding: 5px;
    border: 1px solid #ccc;
}
.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.calc-buttons button {
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: var(--brand-color-light);
}

@media (max-width: 500px) {
    #popupTools, #popupCalc {
    width: 90%;
    left: 5% !important;
    right: 5% !important;
    }
}