/* =========================================================
   MAIN WRAPPER
========================================================= */
.fin-calculator-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.fin-calculator-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

/* =========================================================
   TABS
========================================================= */
.fin-calc-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.fin-calc-tab {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    transition: 0.2s;
}

.fin-calc-tab:hover {
    background: #eee;
}

.fin-calc-tab.active {
    background: #0d47a1;
    color: #fff;
    border-color: #0d47a1;
}

/* =========================================================
   CARD CONTAINER
========================================================= */
.fin-calc-card {
    display: none;
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    margin-bottom: 25px;
}

.fin-calc-card.active {
    display: block;
}

.calc-heading {
    color: #0a5c22;
    font-weight: 600;
    font-size: 20px;
    text-align: left;
    margin-bottom: 15px;
}

/* =========================================================
   GENERAL CALCULATOR DISPLAY
========================================================= */
#general-display {
    width: 100%;
    height: 70px;
    padding: 16px;
    background: #f3f4f6;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 34px;
    text-align: right;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* =========================================================
   GENERAL CALCULATOR KEYPAD
========================================================= */
.calc-keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Base button style */
.calc-keypad button,
.btn-clear {
    padding: 18px 0;
    font-size: 22px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.15s ease;
}

/* NUMBER BUTTONS (BLACK TEXT + LIGHT GRAY BG) */
.btn-number {
    background: #f2f2f2;
    color: #000;
    border: 1px solid #dcdcdc;
}

.btn-number:hover {
    background: #e5e5e5;
}

/* OPERATOR BUTTONS (#e0e0e0 background + black text) */
.btn-operator {
    background: #e0e0e0;
    color: #000;
    border: 1px solid #c9c9c9;
}

.btn-operator:hover {
    background: #d5d5d5;
}

/* EQUALS BUTTON (BLUE + WHITE TEXT) */
#general-equals {
    background: #0d47a1;
    color: #fff;
    font-size: 26px;
    border: none;
}

#general-equals:hover {
    background: #093574;
}

/* CLEAR BUTTON */
.btn-clear {
    width: 100%;
    margin-top: 18px;
    background: #ff5252;
    color: #fff;
    font-size: 20px;
    border-radius: 10px;
}

.btn-clear:hover {
    background: #d84343;
}

/* =========================================================
   OTHER CALCULATORS
========================================================= */
.fin-calc-card input[type="number"],
.fin-calc-card input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 17px;
}

.calc-btn {
    padding: 14px 20px;
    background: #0d47a1;
    color: #fff;
    width: 100%;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}

.calc-btn:hover {
    background: #093574;
}

.calc-output {
    background: #f2f7ff;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d3e1ff;
    margin-top: 15px;
}