/* MATHJAX RENDERING */
.MathJax_Display, 
.MathJax, 
mjx-container[jax="CHTML"][display="true"],
mjx-container[jax="SVG"][display="true"],
mjx-container[display="true"],
mjx-math {
    text-align: left !important;
    display: inline !important;
    margin: 0 !important;
    white-space: normal !important;
    font-family: 'Quicksand', sans-serif !important;
}

mjx-container {
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle !important;
    font-family: 'Quicksand', sans-serif !important;
}

mjx-container > .MJX-block {
    display: inline-block !important;
    text-align: left !important;
    font-family: 'Quicksand', sans-serif !important;
}

mjx-container:not([display="true"]) {
    display: inline !important;
    font-family: 'Quicksand', sans-serif !important;
}

.MathJax_PHTML,
.MathJax_SVG,
.MathJax_CHTML,
.MathJax_Display {
    margin: 0 !important;
    font-family: 'Quicksand', sans-serif !important;
}

.MathJax_Display {
    display: inline !important;
}

mjx-container mjx-mtext,
mjx-mtext,
.MathJax .mtext,
.MathJax_SVG .mtext,
.MathJax_CHTML .mtext {
    font-family: 'Quicksand', sans-serif !important;
}

/* Sidebar Navigation */
.sidebar-navigation {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

/* Logo Section */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--color-bg-white);
}

.nav-logo {
    height: 40px;
    width: auto;
}

/* Premium Button */
.premium-container {
    text-align: center;
    padding: 0 20px 20px 20px;
}

.btn-premium {
    display: inline-flex;
    border-radius: 12px;
    min-width: 0;

    align-items: center;
    background-color: #FFE4C4;
    color: var(--color-text-default);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-premium:hover {
    background-color: #ebd2b4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-premium:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-premium .fa-star {
    font-size: 15px;
    color: #9B6422;
}

.premium-subtitle {
    font-size: 12px;
    color: black;
    margin-top: 5px;
}

.premium-subtitle .fa-info-circle {
    font-size: 12px;
    color: #333;
    margin-left: 4px;
}

/* Premium Badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to top, #7e603c, #e4ae6d);
    border: 1px solid #e3b279;
    color: white;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 500;
    text-transform: uppercase;
}

.premium-badge .fa-star {
    margin-right: 5px;
    font-size: 10px;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    font-weight: 500;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    position: relative;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.nav-item.active {
    background-color: #20accc35;
    color: #333333;
}

.nav-item.soon {
    color: #a6a4a4;
}

.nav-item.soon img {
    opacity: 0.5;
}

.nav-item.soon:hover {
    background-color: #ffffff;
}

.nav-item.soon:after {
    content: "soon";
    position: absolute;
    right: 12px;
    background-color: #333;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 2px;
    text-transform: lowercase;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #20accc;
}

.nav-icon {
    margin-right: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon img {
    width: 18px;
    height: auto;
}

/* Footer Section */
.nav-footer {
    padding: 24px 20px;
    text-align: left;
    background-color: white;
}

.terms-link {
    display: block;
    color: #0668cb;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

.nav-disclaimer {
   color: #888;
   font-size: 11px;
   line-height: 1.5;
   margin: 25px 0;
   text-align: left;
}

.nav-copyright {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}