.mw-calculator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mw-calculator-box {
    width: 260px;
    background: #111;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mw-mode-switch {
    display: block;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.mw-mode-switch button {
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    background: #333;
    color: white;
    font-weight: 700;
    font-size: 25px;
    border-radius: 16px;
}

.mw-mode-switch .active {
    background: #4ecdc4;
}

#mw-science {
    display: none;
}


.mw-buttons.sci {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.mw-buttons.sci button {
    font-size: 14px;
    padding: 12px;
}

.mw-mode.active {
    display: block;
}

.mw-mode {
    margin-right: 20px;
}

.hidden {
    display: none !important;
}

.mw-display {
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
    font-size: 22px;
    text-align: right;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #222;
    color: #fff;
}

.mw-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mw-buttons button {
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #333;
    color: white;
    transition: 0.2s;
}

.mw-buttons button:hover {
    background: #555;
}

.mw-equal {
    background: #4ecdc4 ;
    color: black;
}

.mw-container{
    display: flex;
} 

.mw-container input{
    background-color: white;
    color: black;
    border-radius: 10px;
}

.mw-history {
    background: #111;
    padding: 20px;
    border-radius: 20px;
    color: white;
    max-height: 260px;
    overflow-y: auto;
    width: 260px;
}

.mw-history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
}

.mw-history-header button, .mw-history-header button:focus{
    border: 2px solid white;
    border-radius: 50px;
    width: 40px;
    height: 40px;
    color: white;
    background-color: #111111;
    padding: 0 0px 2px 2px;
}

.mw-history-header button:hover{
    background-color: white;
    color: black;
}

.mw-history-list div {
    padding: 5px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    font-size: 14px;
}

.mw-history-list div:hover {
    background: #222;
}