:root {
    --bs-primary: #6366f1;
    --bs-dark: #1e293b;
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-gradient: linear-gradient(120deg, #090610 0%, #0c031c 100%);
    --hero-gradient: linear-gradient(120deg, #100d1a 0%, #100626 100%);
    --card-gradient: rgba(54, 22, 108, 0.1);
    --border-radius-btn: 8px;
    --border-radius: 12px;
    --border-top: 3px solid rgba(99, 101, 241, 0.494);
    --border-right: 1px solid rgba(99, 101, 241, 0.494);
    --text-muted: #adacac;
}

.container {
    max-width: 1620px;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(131, 98, 231, 0.099) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.226) 0%, transparent 70%),
        var(--dark-gradient);
    background-attachment: fixed;
    color: #f8fafc;
    position: relative;
    margin: 0;
}

.navbar {
    backdrop-filter: blur(15px);
    background: linear-gradient(135deg, #150f22 0%, #0b0927 100%) !important;
    border-bottom: 1px solid rgba(126, 48, 222, 0.348);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #f8fafc !important;
}

.navbar-brand .brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.search-wrapper {
    position: relative;
    display: inline-block;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

.navbar .form-control,
.search-input {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-btn);
    color: #f8fafc;
    transition: all 0.3s ease;
    max-width: 200px;
    padding-left: 36px;
}

.navbar .form-control:focus,
.search-input:focus {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: #f8fafc;
}

.navbar .form-control::placeholder,
.search-input::placeholder {
    color: #94a3b8;
}

.navbar-actions {
    flex-wrap: nowrap;
    min-width: 0;
}

.navbar-actions>* {
    flex-shrink: 0;
}

.navbar-actions .search-input {
    width: 200px;
    min-width: 0;
}

.navbar-actions .btn,
.navbar-actions .dropdown-toggle {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .navbar-actions .search-input {
        width: 170px;
    }
}

@media (max-width: 992px) {
    .navbar-actions .search-input {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .navbar-actions .search-input {
        display: none;
    }
}

.dropdown-menu {
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 103, 247, 0.06) 0%, transparent 40%),
        linear-gradient(135deg, #1a1326 0%, #0f0b1e 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    border-radius: var(--border-radius) !important;
    backdrop-filter: blur(15px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    padding: 8px;
    min-width: 200px;
    margin-top: 8px !important;
}

.dropdown-item {
    color: #e2e8f0 !important;
    padding: 10px 14px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 10px;
    margin: 2px 0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 103, 247, 0.12)) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.dropdown-divider {
    border: none !important;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent) !important;
    margin: 8px 0;
    opacity: 0.6;
}

.btn-primary {
    background: var(--purple-gradient);
    border: none;
    font-weight: 600;
    border-radius: var(--border-radius-btn);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary,
.btn-outline-light {
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
    font-weight: 600;
    border-radius: var(--border-radius-btn);
    transition: all 0.3s ease;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f8fafc;
}

.btn-outline-primary:hover,
.btn-outline-light:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-dark {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--bs-primary);
}

.sidebar {
    background: transparent !important;
    border-right: transparent !important;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 96px);
    overflow: hidden;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#menuContainer {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

#menuContainer::-webkit-scrollbar {
    width: 4px;
}

#menuContainer::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

#menuContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

#menuContainer::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.9);
}

.sidebar-header {
    flex-shrink: 0;
}

.sidebar-header .sidebar-label {
    color: rgba(226, 232, 240, 0.9);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
    border-radius: 999px;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.sidebar-divider-header {
    margin: 1.25rem -1.5rem 0;
    opacity: 0.6;
}

.sidebar-header .menu-list {
    margin-top: 1rem;
}

.sidebar-menu::-webkit-scrollbar {
    width: 0;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

@media (min-width: 992px) {
    .docs-layout .sidebar {
        position: sticky;
        top: 76px;
        height: calc(100vh - 96px);
        overflow: hidden;
    }
}

.menu-list {
    list-style: none;
}

.menu-link {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    font-weight: 400;
    font-size: 0.9375rem;
}

.menu-link:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #f8fafc;
}

.menu-link.active {
    background: rgba(99, 102, 241, 0.25);
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.menu-link i {
    color: #94a3b8;
    width: 18px;
    text-align: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.menu-link:hover i {
    color: #cbd5e1;
}

.menu-link.active i {
    color: #ffffff;
}

.menu-folder {
    cursor: pointer;
    font-weight: 400;
}

.menu-folder .folder-icon {
    transition: transform 0.2s ease;
    color: #64748b;
}

.menu-folder:hover .folder-icon {
    color: #94a3b8;
}

.menu-folder:not(.collapsed) .folder-icon,
.menu-folder:not(.collapsed) .chevron-icon {
    color: #f59e0b;
}

.menu-folder:not(.collapsed) .chevron-icon {
    transform: rotate(90deg);
}

.chevron-icon {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    color: #64748b;
    flex-shrink: 0;
}

.sidebar-footer {
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: auto;
}

.sidebar-link-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-link-tile:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

.sidebar-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-social-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.menu-children {
    list-style: none;
    border-left: 1px solid rgba(100, 116, 139, 0.2);
}

.menu-children .menu-link {
    font-size: 0.875rem;
}

.main-content {
    background: transparent;
    min-height: calc(100vh - 76px);
}

.document-header {
    background: var(--card-gradient);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border-top: var(--border-top);
    transition: all 0.3s ease;
}

.document-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.document-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.document-meta .badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--bs-primary);
    border-radius: var(--border-radius-btn);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.document-meta .badge:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.document-content {
    background: var(--card-gradient);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.85;
    transition: all 0.3s ease;
}

.document-content h1,
.document-content h2,
.document-content h3,
.document-content h4,
.document-content h5 {
    color: #f8fafc;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
}

.document-content h1:not(:first-child),
.document-content h2:not(:first-child),
.document-content h3:not(:first-child) {
    margin-top: 2rem;
}

.document-content h1 {
    font-size: 2.25rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    padding-bottom: 0.75rem;
}

.document-content h2 {
    font-size: 1.875rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding-bottom: 0.5rem;
}

.document-content h3 {
    font-size: 1.5rem;
}

.document-content h4 {
    font-size: 1.25rem;
}

.document-content p {
    margin-bottom: 1.25rem;
}

.document-content a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.document-content a:hover {
    color: #a855f7;
    border-bottom-color: #a855f7;
}

.document-content ul,
.document-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.document-content li {
    margin-bottom: 0.5rem;
}

.document-content code {
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'Fira Code', 'Consolas', 'Menlo', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 500;
}

.document-content pre {
    background: linear-gradient(135deg, rgba(8, 13, 24, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.document-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.95rem;
    border: none;
}

.document-content blockquote {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 103, 247, 0.08) 100%);
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    color: #cbd5e1;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-left: 4px solid var(--bs-primary);
    font-style: italic;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.document-content blockquote p:last-child {
    margin-bottom: 0;
}

.document-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.document-content th,
.document-content td {
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1rem 1.25rem;
    text-align: left;
}

.document-content th {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 103, 247, 0.15) 100%);
    color: #f8fafc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.document-content tbody tr {
    transition: all 0.3s ease;
}

.document-content tbody tr:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: scale(1.01);
}

.document-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.document-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.2);
}

/* Welcome Screen */
.welcome-screen {
    text-align: center;
}

.welcome-screen h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-screen .lead {
    font-size: 1.25rem;
    color: #94a3b8;
}

.hero-icon {
    color: var(--bs-primary);
    font-size: 5rem;
}

.feature-icon-primary {
    color: var(--bs-primary);
    font-size: 3rem;
}

.feature-icon-green {
    color: #10b981;
    font-size: 3rem;
}

.feature-icon-orange {
    color: #f59e0b;
    font-size: 3rem;
}

.feature-icon-purple {
    color: #8b5cf6;
    font-size: 3rem;
}

.stat-card {
    background: var(--card-gradient);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

[class^="stat-icon-"] {
    font-size: 2.5rem;
}

.stat-icon-primary {
    color: var(--bs-primary);
}

.stat-icon-green {
    color: #10b981;
}

.stat-icon-orange {
    color: #f59e0b;
}

.stat-icon-purple {
    color: #8b5cf6;
}

.stat-value-primary {
    color: var(--bs-primary);
}

.stat-value-green {
    color: #10b981;
}

.stat-value-orange {
    color: #f59e0b;
}

.stat-value-purple {
    color: #8b5cf6;
}

.card {
    background: var(--card-gradient);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-top: var(--border-top);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card-title {
    color: #f8fafc;
    font-weight: 600;
}

.card-text {
    color: #94a3b8;
}

#changelog {
    scroll-margin-top: 120px;
}

#changelog h3 {
    color: #f8fafc;
    font-weight: 600;
}

.pagination {
    gap: 0.5rem;
}

.pagination .page-item .page-link {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #cbd5e1;
    border-radius: var(--border-radius-btn);
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    min-width: 40px;
    text-align: center;
}

.pagination .page-item .page-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #f8fafc;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--purple-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(99, 102, 241, 0.15);
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
}

.changelog-accordion {
    border-radius: 8px;
    backdrop-filter: blur(10px);
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.changelog-accordion .accordion-header {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}


.changelog-accordion .accordion-button {
    background: transparent;
    color: #e2e8f0;
    border: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.changelog-accordion .accordion-button:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #ffffff;
}

.changelog-accordion .accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

.changelog-accordion .accordion-button:focus {
    box-shadow: none;
}

.changelog-accordion .accordion-button::after {
    filter: invert(70%);
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

.changelog-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.changelog-accordion .accordion-body {
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 0 0 8px 8px;
}

.changelog-accordion .accordion-body>div:first-child {
    color: #e2e8f0;
}

.changelog-accordion .btn-primary {
    color: #ffffff !important;
}

.changelog-accordion .btn-primary:hover {
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

.changelog-accordion .btn-primary i {
    color: #ffffff !important;
}

.changelog-accordion .accordion-body p:last-child {
    margin-bottom: 0;
}

.changelog-accordion code {
    font-family: 'Fira Code', 'Consolas', 'Menlo', monospace;
    background: rgba(99, 102, 241, 0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #a5b4fc;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.25rem;
}

.document-content .alert {
    padding: 0.85rem 1.1rem;
}

.document-content .alert>* {
    margin-bottom: 0.65rem;
}

.document-content .alert>*:last-child {
    margin-bottom: 0;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fef08a;
}

.alert-info {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #bfdbfe;
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(99, 102, 241, 0.2) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    color: #e2e8f0 !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-btn) !important;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.copy-btn:hover {
    background: rgba(99, 102, 241, 0.35) !important;
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #bbf7d0 !important;
}

.offcanvas-start {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(11, 17, 31, 0.95) 100%);
    border-right: 1px solid rgba(99, 102, 241, 0.15);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.btn-close-white {
    filter: invert(1);
}

@media (max-width: 991.98px) {
    .sidebar {
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }

    .search-input {
        width: 150px;
    }

    .document-header h1 {
        font-size: 2rem;
    }

    .welcome-screen h1 {
        font-size: 2.25rem;
    }

    .document-content {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .search-input {
        width: 120px;
        font-size: 0.875rem;
    }

    .document-header h1 {
        font-size: 1.75rem;
    }

    .welcome-screen h1 {
        font-size: 1.875rem;
    }

    .document-content h1 {
        font-size: 1.875rem;
    }

    .document-content h2 {
        font-size: 1.5rem;
    }

    .document-content h3 {
        font-size: 1.25rem;
    }

    [class^="stat-icon-"] {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .welcome-screen h1 {
        font-size: 1.5rem;
    }

    .welcome-screen .display-4 {
        font-size: 2rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    [class^="stat-icon-"] {
        font-size: 1.75rem;
    }
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: none;
}

::-webkit-scrollbar-thumb {
    background: none;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: none;
}

@media (max-width: 575.98px) {
    .navbar-brand .brand-logo {
        width: 28px;
        height: 28px;
    }
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            var(--bs-primary) 0%,
            rgba(99, 102, 241, 0.3) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid rgba(30, 41, 59, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.timeline-item-first .timeline-marker {
    background: linear-gradient(135deg, #6366f1 0%, #8b67f7 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
    }

    50% {
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.7);
    }
}

.timeline-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:hover .timeline-content {
    border-color: rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
    transform: translateX(5px);
}

.timeline-avatar-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-avatar-box {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.timeline-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 103, 247, 0.2) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(99, 102, 241, 0.8);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.timeline-message {
    font-weight: 500;
    color: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
}

.timeline-message:hover {
    color: var(--bs-primary);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timeline-meta .badge {
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.timeline-date {
    white-space: nowrap;
    font-weight: 500;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: -22px;
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
        top: 10px;
    }

    .timeline-content {
        padding: 0.875rem;
    }

    .timeline-avatar-box,
    .timeline-avatar-placeholder {
        width: 40px;
        height: 40px;
    }

    .timeline-message {
        font-size: 0.875rem;
    }

    .timeline-date {
        font-size: 0.7rem;
    }

    .timeline-meta .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}