@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --primary: #6366f1;
    --primary-rgb: 99, 102, 241;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --translate-bar-height: 0px;

    --bg-base: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-sidebar: rgba(255, 255, 255, 0.9);
    --bg-alt: #f1f5f9;
    --bg-card: #ffffff;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;

    --border: rgba(226, 232, 240, 0.8);
    --border-hover: #cbd5e1;

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --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);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
    --bg-base: #020617;
    --bg-surface: rgba(15, 23, 42, 0.8);
    --bg-sidebar: rgba(15, 23, 42, 0.9);
    --bg-alt: #1e293b;
    --bg-card: #0f172a;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --border: rgba(30, 41, 59, 0.8);
    --border-hover: #334155;

    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s, color 0.4s;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

footer a {
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* Layout System */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: var(--bg-sidebar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--border);
    margin-left: 0;
    left: 0;
    padding: 2.5rem 1.25rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0.5rem;
    margin-bottom: 2.5rem;
}

.sidebar-logo img {
    width: 36px;
    height: 36px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 6px rgba(var(--primary-rgb), 0.2));
}

.sidebar-logo:hover img {
    transform: rotate(10deg) scale(1.1);
}

.sidebar-logo span {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-box {
    margin: 0 0.5rem 2rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-base);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    background: var(--bg-surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

/* Navigation */
.nav-group {
    margin-bottom: 1.5rem;
}

nav {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

.nav-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 0 1rem 0.75rem;
    font-weight: 700;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.nav-link:hover {
    background: var(--bg-base);
    color: var(--text-main);
}

.nav-link.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 4rem 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.main-content.full-width {
    max-width: 100%;
    padding: 4rem;
}

/* Hero Section Refined */
.hero-section {
    margin-bottom: 5rem;
    animation: fadeIn 0.8s ease-out;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-logo-box {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.1);
}

.hero-logo-box img {
    width: 56px;
    height: 56px;
}

.hero-text-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-content p {
    color: var(--text-muted);
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Stats Block */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
    padding: 2.5rem;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 700;
}

/* Explore Section */
.section-title {
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 800;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0 !important;
    background: transparent !important;
}

.card-footer {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.card:hover .card-footer {
    gap: 12px;
}

/* Premium Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card:hover::before {
    opacity: 1;
}

.card i {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover i {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
}

/* Document Content */
.content-body {
    font-size: 1.15rem;
    line-height: 1.8;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.content-body h1 {
    font-size: 2.5rem;
}

.content-body h2 {
    font-size: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

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

.content-body p {
    margin-bottom: 1.5rem;
}

/* Lists */
.content-body ul,
.content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

/* Tables */
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.content-body th,
.content-body td {
    padding: 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.content-body th {
    background: var(--bg-alt);
    font-weight: 700;
    color: var(--text-main);
}

/* Code Blocks */
.content-body pre {
    background: #0d1117;
    color: #e6edf3;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-body code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.content-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Blockquotes */
.content-body blockquote {
    background: var(--bg-surface);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Images */
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateY(-2px);
}

/* Admin Panel Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    background: var(--bg-base);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* Badges */
.badge {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-primary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

/* Theme Toggle */
#theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--bg-base);
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
    transition: var(--transition);
}

#theme-toggle:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.lang-btn {
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--bg-base);
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn.active {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    background: var(--bg-surface);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Admin Panel */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(74, 95, 199, 0.1) 0%, rgba(74, 95, 199, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.admin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
}

/* Document Header */
.doc-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.doc-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doc-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.doc-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Search Results */
.search-result-card {
    transition: var(--transition);
}

.search-result-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary);
}

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

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

.card,
.admin-card,
.search-result-card {
    animation: fadeIn 0.5s ease-out;
}

/* Logo Animation */
@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero img[src="logo.svg"] {
    animation: logoFloat 3s ease-in-out infinite;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2100;
    /* Higher than everything else */
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
}

.mobile-sidebar {
    display: none;
}

/* Table of Contents - Base Styles */
.doc-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
}

.toc-sidebar {
    position: sticky;
    top: 4rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
}

.toc-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toc-item a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.toc-item a:hover {
    color: var(--primary);
}

.toc-item.active a {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .doc-container {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        display: none !important;
    }

    .toc-sidebar.active {
        right: 0;
    }

    .mobile-toc-overlay {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 1.5rem;
        box-sizing: border-box;
        display: flex !important;
        border-right: none !important;
    }

    .sidebar.active {
        left: 0 !important;
    }

    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        backdrop-filter: blur(2px);
    }

    .mobile-sidebar-overlay.active {
        display: block;
    }

    .main-content {
        padding: 2rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text-content h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    footer div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-card {
        padding: 1.5rem !important;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
        margin-top: 50px;
    }

    .doc-container {
        display: block;
        padding: 0;
        gap: 0;
    }

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

    .doc-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .content-body {
        font-size: 1.05rem;
        padding: 1rem 0;
    }
}

.hero h1 {
    font-size: 2rem;
}

.hero p {
    font-size: 1rem;
}

body.sidebar-open,
body.toc-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.app-container {
    position: relative;
}

.card {
    padding: 1.5rem;
}

/* Fix for mobile white stripe/alignment */
@media (max-width: 1024px) {
    .app-container {
        display: block;
        /* Stack instead of flex for better mobile handling */
    }

    .sidebar {
        border-left: none !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }

    .form-control {
        font-size: 16px;
    }
}


/* Header Anchor Links */
h1[id],
h2[id],
h3[id],
h4[id],
h5[id],
h6[id] {
    scroll-margin-top: 5rem;
    position: relative;
}

.header-anchor {
    color: inherit;
    text-decoration: none;
}

.header-anchor:hover {
    color: var(--primary);
}

h1[id]:hover .header-anchor::before,
h2[id]:hover .header-anchor::before,
h3[id]:hover .header-anchor::before,
h4[id]:hover .header-anchor::before,
h5[id]:hover .header-anchor::before,
h6[id]:hover .header-anchor::before {
    content: "#";
    position: absolute;
    left: -1.5rem;
    color: var(--primary);
    opacity: 0.5;
}

/* Mobile Toggles Hidden by Default */
.mobile-toc-toggle,
.mobile-toc-overlay {
    display: none;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
}

/* Markdown Tables */
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    overflow-x: auto;
    display: block;
}

.content-body th,
.content-body td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.content-body th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text-main);
}

.content-body tr:nth-child(even) {
    background: rgba(var(--primary-rgb), 0.02);
}

.breadcrumb {
    flex-wrap: wrap;
    /* Ensure breadcrumbs don't overflow */
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: rgba(46, 194, 126, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Google Translate Hiding */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
.goog-te-gadget-simple img,
.goog-te-menu-value span:nth-child(3),
.goog-te-menu-value span:nth-child(5),
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.skiptranslate {
    display: none !important;
}

#google_translate_element {
    display: none !important;
}

.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}