body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Geist', sans-serif;
    color: var(--simpui-text-dim);
    padding: 0;
    margin: 0;
}

html, body, h1, h2, h3, h4, h5, h6, p, div, span, strong, th, tr, input, select, option, textarea, label{
    font-family: "Geist", sans-serif;
    font-optical-sizing: auto;
}

h2 {
    font-size: 1.2rem;
}

h3{
    font-weight: 600;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    background: var(--simpui-bg);
    color: var(--simpui-heading-color);
    width: 100%;
    position: fixed;
    z-index: 999;
}

.hamburger {
    display: none;
    font-size: 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
}

.layout {
    display: flex;
    flex: 1;
}

nav {
    width: 240px;
    padding: 1rem;
    border-right: 1px solid #eee;
    padding-top: 6rem;
    padding-left: 2rem;
    position: fixed;
    height: 100vh;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}
nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin-bottom: 1rem;
    font-size: 14px;
}

nav a {
    color: var(--simpui-text-dim);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

nav#rightSidebar {
    right: 0 !important;
}

.nav-close{
    display: none;
}

ul.component-menu:before {
    content: "COMPONENTS";
    font-size: 10px;
    color: #737373;
}
ul.example-menu:before {
    content: "EXAMPLES";
    font-size: 10px;
    color: #737373;
}
ul.menu-component li:first-child {
    margin-top: 15px;
}

ul.menu-component {
    margin-top: 30px;
}

ul.right-menu-component:before {
    content: "QUICK NAVIGATION";
    font-size: 10px;
    color: #737373;
}
ul.right-menu-component li:first-child {
    margin-top: 15px;
}

ul.right-menu-component {
    margin-top: 0px;
}

ul.right-menu-component li {
    margin-bottom: 10px;
}

ul.right-menu-component li a {
    color: #737373;
    font-size: 12px;
    font-weight: 400;
}

ul.right-menu-component li a:hover {
    color: #0A0A0A;
    text-decoration: none;
}

ul.right-menu-component li a.active {
    color: #0A0A0A;
    text-decoration: none;
}

main {
    flex: 1;
    padding: 2rem;
    background: var(--simpui-bg);
    margin: auto;
    max-width: 40%;
    padding-top: 5rem;
}

.component-section {
    margin-bottom: 3rem;
}

.component-section h2 {
    margin-bottom: 1rem;
    color: var(--simpui-heading-color);
}

/* Make pre block styled correctly */
.pre-wrapper {
    position: relative;
    font-size: 12px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    border-radius: 4px;
    overflow: auto;
}

.pre-wrapper {
    position: relative;
    font-size: 12px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    border-radius: 4px;
    overflow: auto;
    margin-bottom: 1rem;
}

.code-label {
    position: absolute;
    top: 8px;
    left: 12px;
    background: #e5e7eb;
    color: #333;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 3;
    pointer-events: none;
}



.copy-btn {
    position: absolute;
    top: 15px;
    right: 8px;
    background: #e5e7eb;
    border: none;
    padding: 0px 0px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    z-index: 2;
    color: #808080;
}

.copy-btn:hover{
    color: #262626;
    background: #dfdfdf;
}

.language-type {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e5e7eb;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    z-index: 2;
    color: #808080;
}

.hamburgerIcon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--simpui-heading-color);
    text-decoration: none;
}

.logoicon svg {
    display: block;
    height: 24px;
    width: 24px;
}

.logoText {
    font-size: 1.2rem;
    font-weight: bold;
}

.rightBtn {
    float: right;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}

.rightBtn a{
    color: var(--simpui-heading-color);
}

.simpui-card-wrapper {
    border: 1px solid #d8d8d8;
    padding: 10rem 12rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.text-dimmed{
    color:var(--simpui-text-light);
}



.simpui-badge {
    margin:5px 5px;
}





/* Override Prism background to pure white and use monospace font at 12px */
pre[class*="language-"] {
    background: #F8F8F8 !important;
    color: var(--simpui-text-dim);
    font-size: 12px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1em;
    padding-top: 3em;
    overflow: auto;
}

code[class*="language-"], pre[class*="language-"]{
    text-shadow: 0 1px #ffffff00;
}

/* Make line numbers align and clean */
pre.line-numbers {
    padding-left: 3.5em;
}
pre.line-numbers .line-numbers-rows {
    border-right: 1px solid #ddd;
}
.line-numbers-rows > span:before {
    color: #aaa;
    font-size: 11px;
}

/* Prism toolbar (copy button) style */
.prism-toolbar {
    background: transparent;
}
.prism-toolbar button {
    font-size: 11px;
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.prism-toolbar button:hover {
    background: #e0e0e0;
}

.simpui-row{
    justify-content: space-between;
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
}


/* Login Form */
.login-form-wrapper{
    border:1px solid #d8d8d8;
    padding:1rem 2rem;
    border-radius: 0.5rem;
    background: #fff;
}
.simpui-link:hover{
    text-decoration: underline;
}

.dark-support-link a{
    color: var(--simpui-text-dim);
}

.line-text {
    display: flex;
    align-items: center;
    text-align: center;
    font-family: sans-serif;
    font-size: 13px;
    color: var(--simpui-text-light);
    margin: 20px 20px;
}

.line-text::before,
.line-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--simpui-text-light);
    margin: 0 8px; /* space between text and lines */
}

.form-demo{
    padding: 2rem 3rem;
}

.login-demo{
    padding: 5rem 10rem;
    background: #F5F5F5;
}



/* ######################### Responsive ################################# */

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.98);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 100%;
        max-width: none;
        height: 100vh;
        overflow-y: auto;
        border: none;
        padding: 0rem;
    }

    nav.active {
        transform: translateX(0);
    }

    nav li {
        margin-bottom: 1rem;
        font-size: 16px;
    }

    nav#rightSidebar {
        display: none;
    }

    .nav-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        display: block;
        color: #7e7e7e;
    }

    .nav-close:hover {
        color: #2a2a2a;
    }

    #mobileNav ul {
        /*padding-top: 2rem;*/
        padding-left: 2rem;
        /*position: fixed;*/
    }

    .menu-component-first {
        padding-top: 2rem;
        padding-left: 2rem;
        /*position: fixed;*/
    }

    ul.menu-component:before {
        font-size: 10px;
        color: #737373;
    }

    ul.menu-component li:first-child {
        margin-top: 15px;
    }


    pre {
        padding-top: 2rem;
    }

    main {
        max-width: 100%;
        padding-top: 5rem;
    }

    .simpui-card-wrapper {
        padding: 3rem 1.5rem;
    }

    header {
        width: 100%;
        position: fixed;
        z-index: 999;
    }

    .simpui-row{
        display: block;
        padding-top: 0rem;
    }
    .simpui-row .simpui-form-group{
        padding-bottom: 1rem;
    }
    .form-demo{
        padding: 1rem 1rem;
    }

}
.footer {
    font-size: 12px;
    text-align: center;
    justify-content: center;
    padding: 1rem 1rem;
    display: flex;
    background: transparent;
}








/* ######################### Dark Mode ################################# */

.dark body{
    background: #0A0A0A;
}
.dark .layout{
    background: #0A0A0A;
}

.dark header{
    border: none;
    border-bottom: 1px solid #444;
}

.dark nav{
    border-right: 1px solid #444;
}

.dark pre {
    background: #000000;
}

.dark .hamburger {
    color: #d4d4d4;
}

.dark #mobileNav {
    background: rgb(10 10 10 / 98%);
}

.dark .simpui-card-wrapper {
    border: 1px solid #444;
}

.dark .right-menu-component li a:hover{
    color: var(--simpui-heading-color);
}

.dark ul.right-menu-component li a.active {
    color: var(--simpui-heading-color);
    text-decoration: none;
}

.dark code[class*="language-"], .dark pre[class*="language-"] {
    color: var(--simpui-text-dim);
}

.dark pre[class*="language-"] {
    background: #161616 !important;
    color: var(--simpui-heading-color);
    border: 1px solid #444;
}

.dark pre.line-numbers .line-numbers-rows {
    border-right: 1px solid #444;
}

.dark .copy-btn {
    background: #262626;
}

.dark .copy-btn:hover {
    color:var(--simpui-text-dim);
    background: #3F3F46;
}








.dark .dark-support{
    background: #262626;
}
.dark .login-form-wrapper {
    border: 1px solid #444;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    background: #171717;
}
.dark .dark-support-link a{
    color: var(--simpui-text-dim);
}

.dark .footer {
    font-size: 12px;
    text-align: center;
    justify-content: center;
    padding: 1rem 1rem;
    display: flex;
    background: #0a0a0a;
}









pre span{
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
}