@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
    /* ===== Color Palette ===== */
    /* Primary Colors */
    --color-primary: #000000;
    --color-primary2: #3A1DAC;
    --color-primary-light: #1a1a1a;
    --color-primary-dark: #000000;

    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-tertiary: #565252;
    --color-bg-dark: #1a1a1a;
    /*note*/
    --note-bg: #fffbe6;
    --note-border: #ffcc00;
    --note-text: #997a00;

    --color-Gradient: linear-gradient(to right, #7928CA, #FF0080);
    /*code*/
    --color-code: #8E96AA23;

    /* Text Colors */

    --color-text-primary: #3C3C43;
    --color-text-secondary: #454141;
    --color-text-tertiary: #565252;
    --color-text-inverse: #ffffff;
    --color-text-muted: #a0aec0;

    /* Border Colors */
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-border-dark: #cbd5e0;
    --color-divider: #e2e2e3;

    /* ===== Typography ===== */
    /* Font Families */

    --font-primary: 'Inter', sans-serif;
    --font-family-headings-custom: "Geist";
    --font-inter: "Inter", "Inter Fallback";
    /* Font Sizes */
    --font-size-xs: 0.70rem;
    /* 10px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 1.875rem;
    /* 30px */
    --font-size-4xl: 2.25rem;
    /* 36px */
    --font-size-5xl: 3rem;
    /* 48px */
    --font-size-6xl: 3.75rem;
    /* 60px */

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Line Heights */
    --line-height-none: 1;
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* Letter Spacing */
    --letter-spacing-tighter: -0.05em;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;

    /* ===== Spacing ===== */
    --spacing-0: 0;
    --spacing-1: 0.25rem;
    /* 4px */
    --spacing-2: 0.5rem;
    /* 8px */
    --spacing-3: 0.75rem;
    /* 12px */
    --spacing-4: 1rem;
    /* 16px */
    --spacing-5: 1.25rem;
    /* 20px */
    --spacing-6: 1.5rem;
    /* 24px */
    --spacing-8: 2rem;
    /* 32px */
    --spacing-10: 2.5rem;
    /* 40px */
    --spacing-12: 3rem;
    /* 48px */
    --spacing-16: 4rem;
    /* 64px */
    --spacing-20: 5rem;
    /* 80px */
    --spacing-24: 6rem;
    /* 96px */

    /* ===== Layout ===== */
    /* Container */
    --container-max-width: 1280px;
    --container-padding: 1.5rem;

    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 64px;

    /* Header */
    --header-height: 64px;

    /* ===== Border Radius ===== */
    --radius-none: 0;
    --radius-sm: 0.125rem;
    /* 2px */
    --radius-base: 0.25rem;
    /* 4px */
    --radius-md: 0.375rem;
    /* 6px */
    --radius-lg: 0.5rem;
    /* 8px */
    --radius-xl: 0.75rem;
    /* 12px */
    --radius-2xl: 1rem;
    /* 16px */
    --radius-full: 9999px;

    /* ===== Shadows ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-none: none;
}

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-padding-top: 110px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background: radial-gradient(40% 45% at 60% -10%, rgba(117, 84, 250, 0.06) 25%, rgba(0, 0, 0, 0) 80%);
    background-color: var(--color-bg-primary);
    margin-top: 100px;
    padding: 0;
}

/* ===== Typography Styles ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-4);
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--spacing-6);
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-top: var(--spacing-8);
    margin-bottom: var(--spacing-5);
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-top: var(--spacing-6);
    margin-bottom: var(--spacing-4);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-top: var(--spacing-5);
    margin-bottom: var(--spacing-3);
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-2);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-2);
}

p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
}

/* ===== Links ===== */
a {
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

i:not(.ri-arrow-up-line) {
    color: var(--color-primary2);
    line-height: normal;
    padding-top: 2px;

}

/* ===== Lists ===== */
ul,
ol {
    margin-bottom: var(--spacing-4);
    padding-left: var(--spacing-6);
    color: var(--color-text-secondary);
}

li {
    margin-bottom: var(--spacing-2);
    line-height: var(--line-height-relaxed);
}

/* ===== Blockquote ===== */
blockquote {
    border-right: 4px solid var(--note-border);
    background-color: var(--note-bg);
    padding-left: var(--spacing-4);
    margin: var(--spacing-4) 0;
    color: var(--note-text);
    border-left: none;

}

strong {
    color: var(--color-primary2);
    font-weight: var(--font-weight-bold);
}

/* ===== Buttons ===== */
button:not(#backtotop):not(.custom-btn):not(.another-class) {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-2) var(--spacing-4);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

code {
    border-radius: 4px;
    padding: 3px 6px;
    background-color: var(--color-code);
    transition: color .25s, background-color .5s;
    color: var(--color-primary2);

}

g {
    background-image: var(--color-Gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: var(--font-weight-bold);
}

/* ===== Utility Classes ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ===== Responsive Typography ===== */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --container-padding: 1rem;
    }

    h1 {
        font-size: var(--font-size-3xl);
    }

    h2 {
        font-size: var(--font-size-2xl);
    }
}

/* ===== Documentation Sidebar Styles ===== */

.content-container {
    display: flex;
    flex-direction: row;
    column-gap: 2.7rem;
    padding: 60px 0 40px 70px;
}

.right-sidebar {
    width: 50%;
    position: sticky;
    padding: 20px 0;
    top: 100px;
    height: fit-content;
}

.doc-container {
    display: grid;
    margin: 0px 20px;
    padding: 0px 20px;
    grid-template-columns: 240px 2fr;
    padding-bottom: 40px;
}

.doc-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 100px);

    overflow-y: auto;
    font-family: var(--font-primary);
    padding: 10px 0;
    scrollbar-color: #ccc #f5f5f5;
}

.doc-sidebar::-webkit-scrollbar {
    width: 8px;
}

.doc-sidebar::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
    border: 2px solid #f5f5f5;/
}

.doc-sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.menu {
    list-style: none;
    padding: 0 10px;
    margin: 0;
}

.right-sidebar .submenu li {
    display: flex;
}

.menu-heading {
    color: #454141;
    font-size: var(--font-size-xs);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    padding: 18px 0 0px 0;
    text-transform: none;
}

.menu-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #454141;
    font-size: 13px;
    margin-top: 2px;
    padding: 4px 14px;

    transition: background-color 0.15s, color 0.15s;
}

.menu-item a:hover:not(.active) {
    background-color: #f5f5f5;
    color: var(--color-text-secondary);
    border-radius: var(--radius-xl);
}

.menu a.active {
    background-color: #e6dfff;
    color: var(--color-primary2);
    border-radius: var(--radius-xl);
    font-weight: var(--font-weight-bold);

}

hr {
    border: none;
    height: 1px;
    background: #e0e0e0;
    margin: 2rem 0;
    border-radius: 0px;
}

.content hr {
    margin: 16px 0;
    border-top: 1px solid var(--color-divider)
}

.menu hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 5px 0;
}

.tenant-dash h3 {
    display: flex;
    gap: 5px;
}

.toc-nav ul {

    border-left: 1px solid var(--color-divider);
    font-size: var(--font-size-sm)
}

.toc-nav a {
    color: var(--color-bg-tertiary);
    padding-left: 10px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;

}

.toc-heading {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-secondary);
    font-family: var(--font-family-headings-custom);
    font-size: var(--font-size-sm);
}

.toc-heading::before {
    content: "≡";
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);

}

.toc-nav a:hover {
    color: var(--color-primary2);
    border-left: 1px solid var(--color-primary2);
}

.toc-nav a.active {
    color: var(--color-primary2);
    font-weight: 600;
    border-left: 1px solid var(--color-primary2);
}

.table {
    width: 70%;
    max-width: 800px;
    border-collapse: collapse;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table thead tr {
    background-color: #f7f7f7;
    border-bottom: 2px solid #ddd;
}

.table th {
    padding: 8px 10px;
    color: #555;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* --- Body Row Styling --- */
.table td {

    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    line-height: 1.3;
}

.main-img {

    flex: 0 0 450px;
    max-width: 80%;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}


.list-checked-box {
    list-style: none;
    padding-left: 0;

}

.list-checked-box li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.list-checked-box li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 1.1em;
}

.toggle-icon {
    display: none;
    font-size: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border: none;
    color: #333;
    padding: 15px;
}

.mobile-header {
    display: none;
}

.close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* Responsive  */
/*for phone*/
@media (max-width: 576px) {
    .doc-container {
        display: grid;
        grid-template-columns: 1fr;
        margin: 0px 20px;
        padding: 20px 20px;
    }

    .content-container {
        flex-direction: row;
        column-gap: 3rem;
        padding: 0px 0 20px 0px;
    }

    .doc-sidebar {
        height: calc(100vh);
        top: 5;
        width: 0;
        overflow-x: hidden;
        position: fixed;
        z-index: 1000;
        transition: 0.3s;
        background-color: #ffffff;
        left: 5;
        transform: translateX(-100%);
    }

    .mobile-header {
        display: block;
        width: 100%;
        height: 40px;
        background-color: #ffffff;
        position: fixed;
        top: 60px;
        left: 0;
        z-index: 999;

    }

    .mobile-header .header-content {
        display: flex;
        align-items: center;
        padding: 0 15px;
        height: 100%;
    }

    .header-title {
        margin-left: 20px;
        font-size: 1.2rem;
        font-weight: bold;
    }


    .toggle-icon {
        display: block;
    }

    .doc-sidebar.open .close-btn {
        display: block;
    }

    .doc-sidebar.open {
        width: 280px;
        transform: translateX(0);
        top: 55px;
        left: 10px;
    }

    body.doc-sidebar-open {
        overflow: hidden;
    }

    .right-sidebar {
        display: none;
    }

    .toggle-icon {
        display: block;
    }
}


@media (min-width: 768px) and (max-width:1200px) {
    .element-to-change {
        width: 60%;
        margin: 0 auto;
    }

    .doc-sidebar {
        display: none;
    }

    .content-container {
        display: flex;
        flex-direction: row;
        column-gap: 1rem;
        padding: 0px 0 20px 0px;
    }

    .doc-container {
        display: grid;
        margin: 0px 20px;
        padding: 0px 20px;
        grid-template-columns: 2fr;
        padding-bottom: 40px;
    }

    .right-sidebar {
        width: 80%;
    }
}

/*Desktop/Laptop)  */
@media (min-width: 1200px) {
    .element-to-change {
        width: 400px;
        font-size: 20px;
    }
}