/* GLASS STYLE */
body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #1e1c31, #31306e);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;

}

/* MAIN BOX */
.calc {
    width: 330px;
    padding: 20px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

/* TOP BUTTONS */
.top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.icon-btn, .switch-btn {
    padding: 8px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    color: #fff;
    transition: 0.2s;
}

.icon-btn:hover,
.switch-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* DISPLAY */
#display {
    width: 100%;
    height: 65px;
    font-size: 28px;
    text-align: right;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    outline: none;
}

/* HISTORY BOX */
.history-box {
    height: 80px;
    overflow-y: auto;
    font-size: 14px;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    color: #ccc;
}

/* BUTTON GRID */
.btn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.btn {
    height: 55px;
    border-radius: 15px;
    border: none;
    font-size: 20px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    background: rgba(255,255,255,0.25);
}

.op {
    color: #00d4ff;
}

.eq {
    background: #00d4ff;
    color: #000;
    font-weight: bold;
}

.eq:hover {
    background: #1ce6ff;
}

.danger {
    background: #ff3d3d;
}

.danger:hover {
    background: #ff5a5a;
}

.wide {
    grid-column: span 2;
}

/* SCI MODE */
.sci-grid {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.sci {
    background: rgba(0, 255, 123, 0.2);
}

.sci:hover {
    background: rgba(0, 255, 123, 0.3);
}

/* DARK MODE */
body.dark {
    background: linear-gradient(135deg, #1e1c31, #31306e);
}

/* Make calculator react to dark mode */
body.dark .calc {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.15);
}

body:not(.dark) .calc {
    background: rgba(0, 0, 0, 0.1);
}
