/* --- Import Roboto Font --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* --- Calculator Suite Container --- */
.calculator-suite {
    max-width: 900px;
    margin: 0 auto; /* no top margin */
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    padding: 30px 25px 40px 25px;
}

/* --- Tabs --- */
.calculator-suite .tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg,#0085FF,#5643FA);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}
.calculator-suite .tabs .tab {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
}
.calculator-suite .tabs .tab.active,
.calculator-suite .tabs .tab:hover {
    background: #5643fa;
    box-shadow: inset 0 -4px 0 rgba(255,255,255,0.25);
    transform: scale(1.03);
}

/* --- Tab Content --- */
.calculator-suite .tab-content {
    display: none;
    padding: 25px 0 0 0;
    animation: fadeIn 0.4s ease;
}
.calculator-suite .tab-content.active {
    display: block;
}

/* --- Fancy Input Groups --- */
.calculator-suite .input-group {
    position: relative;
    margin: 20px 0;
}
.calculator-suite input, 
.calculator-suite select {
    width: 100%;
    padding: 16px 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    background: rgba(255,255,255,0.9);
   box-shadow: 0px 0px 8px #999;
  -moz-box-shadow: 0px 0px 8px #999;
  -webkit-box-shadow: 0px 0px 8px #999;
    transition: all 0.3s ease;
    appearance: none;
}
.calculator-suite input:focus, 
.calculator-suite select:focus {
    box-shadow: inset 0 2px 6px rgba(86,67,250,0.2), 0 4px 15px rgba(86,67,250,0.15);
    background: #fff;
}

/* --- Floating Labels --- */
.calculator-suite .input-group label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    color: #888;
    transition: all 0.3s ease;
}
.calculator-suite input:focus + label,
.calculator-suite input:not(:placeholder-shown) + label,
.calculator-suite select:focus + label,
.calculator-suite select:not([value=""]) + label {
    top: -10px;
    font-size: 12px;
    color: #5643fa;
    background: #ffffff;
    padding: 0 6px;
}

/* --- Custom Select Arrow --- */
.calculator-suite select {
    background: url("data:image/svg+xml;utf8,<svg fill='%23333' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 16px center;
    background-size: 16px 16px;
    padding-right: 45px;
}

/* --- Buttons --- */
.calculator-suite button {
    padding: 14px 28px;
    background: linear-gradient(135deg,#0085FF,#5643fa);
    color: #fff;
    font-weight: 500;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(86,67,250,0.15);
    margin-top: 0; /* remove top margin */
}
.calculator-suite button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(86,67,250,0.25);
}

/* --- Results / Paragraphs --- */
.calculator-suite p {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-top: 12px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {opacity:0; transform: translateY(10px);}
    to {opacity:1; transform: translateY(0);}
}

/* --- Responsive --- */
@media(max-width:768px){
    .calculator-suite .tabs {
        flex-direction: column;
        border-radius: 20px 20px 0 0;
    }
}
/* --- Scientific Calculator Buttons --- */
.sci-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 buttons per row */
    gap: 12px; /* spacing between buttons */
    margin-top: 20px; /* space from inputs */
}

.sci-buttons button {
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg,#0085FF,#5643fa);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(86,67,250,0.2);
}

.sci-buttons button:hover {
    background: linear-gradient(135deg,#5643fa,#0085FF);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(86,67,250,0.3);
}

.sci-buttons button:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(86,67,250,0.2);
}
