/* style.css */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    display: flex;
    flex-grow: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.left-panel {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    width: 368px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.left-panel.minimized {
    width: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.right-panel {
    flex-grow: 1;
    background: #ffffff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}
h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 5px;
    text-align: center;
    animation: slideIn 0.8s ease-out;
}
p {
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 5px;
    animation: fadeIn 1.2s ease-in;
}
hr {
    border: 2px solid rgb(0, 0, 0);
    width: 100%;
}
ol {
    color: #333;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 30px;
    list-style-position: inside;
}
ol li {
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
ol li:hover {
    color: #e67e22;
}
table {
    width: 60%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1s ease-in;
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}
th {
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}
tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.2s ease;
}
.calculator-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #e67e22;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.calculator-button:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.font-button {
    display: block;
    width: 200px;
    padding: 10px 20px;
    margin: 10px 0;
    background-color: #3498db;
    color: white;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.increase-font:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.decrease-font:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.toggle-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    z-index: 10;
    transition: all 0.3s ease;
}
.toggle-button:hover {
    background-color: #d35400;
}
.container.minimized .toggle-button {
    display: block;
}
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    margin-top: auto;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 10px;
    }
    .left-panel {
        width: 100%;
        padding: 20px 0;
    }
    .left-panel.minimized {
        width: 100%;
        padding: 20px 0;
    }
    table {
        width: 100%;
    }
    .toggle-button {
        left: 10px;
    }
}

/* Toggle Styles for Questions and Answers */
.questions-list {
    color: #333;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 30px;
    list-style-position: inside;
}
.questions-list li {
    margin-bottom: 15px;
    transition: color 0.3s ease;
}
.toggle {
    display: none;
}
.question {
    cursor: pointer;
    display: block;
    color: #333;
    transition: color 0.3s ease;
}
.questions-list li .question:hover {
    color: #e67e22;
}
.answer {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    margin-top: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in;
}
.toggle:checked + .question + .answer {
    display: block;
}

/* Tab Styles (Moved from inline CSS and customized) */
.tab {
    overflow: hidden;
    border-bottom: 2px solid #34495e; /* Matches left-panel color */
    max-width: 800px; /* Aligns with content max-width */
    width: 100%;
    display: flex;
    justify-content: center;
}
.tab button {
    background-color: #34495e; /* Matches left-panel gradient */
    color: white;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: all 0.3s ease;
    font-size: 16px;
    margin: 0 5px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.tab button:hover {
    background-color: #e67e22; /* Matches calculator-button hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.tab button.active {
    background-color: #e67e22; /* Active tab stands out */
    transform: translateY(0);
    box-shadow: none;
}
.tabcontent {
    display: none;
    padding: 20px;
    max-width: 800px; /* Aligns with content max-width */
    width: 100%;
}
.tabcontent.active {
    display: block;
    animation: fadeIn 0.5s ease-in; /* Matches existing animation */
}