body {
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-color:#BFD7F7;
    color:midnightblue;
    margin: 0 auto;
    padding: 20px;
    max-width: 800px;
}

h1 {
    text-align: center;
    color:#3456B8;
    margin-bottom: 20px;
}

form {
    background-color: #A6C2F3;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

textarea {
    width:95%;
    padding: 10px;
    border: 2px solid #8CACEF;
    border-radius: 4px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    resize: vertical;
    background-color: #FFF5EE;
}

select {
    padding: 8px;
    border: 2px solid #7396EB;
    border-radius: 4px;
    background-color: #8CACEF;
    width: 100%;
    max-width: 200px;
    color:#26428E;
}

button {
    background-color: #5A80E6;
    color: #FAEBD7;
    padding: 10px 20px;
    border: 2px solid #3A5FCC;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color:#5A80E6;
}

#output {
    margin-top: 20px;
    padding: 15px;
    background-color:#BFD7F7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: pre-wrap;
    font-family: monospace;
}

#tabContainer {
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-color:#BFD7F7;
    color:#2D4CA3;
    margin: 0 auto;
    padding: 20px;
    max-width: 800px;
}

#tabButtons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.tabButton {
    background-color: #7396EB;
    color: #1F387A;
    border: 2px solid #2D4CA3;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.tabButton.active {
    background-color: royalblue;
    color: #FAEBD7;
    border-color:#1F387A;
}

.tabButton:hover {
    background-color: royalblue;
    color: #FAEBD7;
    border-color: royalblue;
}


.tabPanel {
    display: none;
    background-color: #BFD7F7; 
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tabPanel.active {
    display: block; 
}

#clearHistoryBtn {
    background-color: #FF8886;
    color: white;
    border: 2px solid #FF6863;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 14px;
}

#clearHistoryBtn:hover {
    background-color: #FAEBD7;
    color: #e74c3c;
    border-color: #e74c3c;
}

#historyList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#historyList li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #A6C2F3;
    border-left: 4px solid #3A5FCC;
    border-radius: 4px;
    font-family: monospace;
}

.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #8CACEF;
    transition: 0.4s;
    border-radius: 28px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 5px;
    bottom: 3px;
    background-color: #3456B8;
    transition: 0.4s;
    border-radius: 50%;
}


input:checked + .slider::before {
    background-color: #8CACEF;
    transform: translateX(22px);
}

input:checked + .slider {
    background-color: #5A80E6;
}

