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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
    --text: #374151;
    --text-light: #6b7280;
    --code-bg: #1e1e1e;
    --code-text: #d4d4d4;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-hover: #f3f4f6;
    --sidebar-bg: #ffffff;
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --dark: #f9fafb;
    --light: #1f2937;
    --border: #374151;
    --text: #e5e7eb;
    --text-light: #9ca3af;
    --code-bg: #0d1117;
    --code-text: #c9d1d9;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-hover: #374151;
    --sidebar-bg: #1f2937;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary);
    /* margin-bottom: 1rem; */
    /* background: linear-gradient(135deg, rgba(255, 45, 32, 0.05) 0%, rgba(255, 45, 32, 0.02) 100%); */
    position: relative;
}

.sidebar-header::after {
    content: 'Laravel';
    position: absolute;
    bottom: 0.5rem;
    right: 1.5rem;
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    opacity: 0.6;
    letter-spacing: 2px;
}

.sidebar-header h1 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.4;
    color: var(--text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 4px;
    user-select: none;
}

.sidebar-header h1:hover {
    background: rgba(255, 45, 32, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-header h1:active {
    transform: translateY(0);
}

/* Style brackets in ['Project Docs'] */
.sidebar-header h1 .array-bracket {
    color: var(--php-purple);
    font-weight: 700;
}

.sidebar-header h1 .array-text {
    color: var(--primary);
    font-weight: 600;
}

.sidebar-header h1:hover .array-text {
    color: var(--primary-dark);
}

.sidebar-header p {
    font-size: 0.875rem;
    color: var(--text-light);
}

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

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-link.active {
    background: var(--bg-secondary);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.nav-submenu {
    list-style: none;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-submenu.expanded {
    max-height: 500px;
}

.nav-submenu .nav-link {
    padding-left: 2.5rem;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 3rem;
    max-width: 100%;
    width: calc(100% - 280px);
    background: var(--bg-secondary);
    min-height: 100vh;
    transition: margin-left 0.3s ease, width 0.3s ease, max-width 0.3s ease;
}

.section {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: 0 4px 12px rgba(255, 45, 32, 0.1);
}

[data-theme="dark"] .section {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.section h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section h4 {
    color: var(--dark);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.section p {
    margin-bottom: 1rem;
    color: var(--text);
}

.section ul,
.section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.section li {
    margin-bottom: 0.5rem;
}

/* Code Blocks */
.code-block {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    position: relative;
}

.code-block code {
    color: var(--code-text);
    white-space: pre;
    display: block;
}

.code-block-wrapper {
    position: relative;
    margin: 1rem 0;
}

.code-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.code-btn {
    background: rgba(99, 102, 241, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.code-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.code-btn.copied {
    background: var(--success);
}

/* Interactive Code Editor */
.code-editor {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    min-height: 200px;
    color: var(--code-text);
    width: 100%;
    resize: vertical;
}

.code-editor:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.code-playground {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.playground-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.playground-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

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

.btn-success:hover {
    background: #059669;
}

.output-panel {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output-panel.success {
    border-left: 4px solid var(--success);
}

.output-panel.error {
    border-left: 4px solid var(--danger);
}

.output-panel.info {
    border-left: 4px solid var(--primary);
}

/* Formatted Code */
.code-formatted {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.code-formatted .keyword {
    color: #c792ea;
}

.code-formatted .string {
    color: #c3e88d;
}

.code-formatted .comment {
    color: #546e7a;
    font-style: italic;
}

.code-formatted .function {
    color: #82aaff;
}

.code-formatted .variable {
    color: #f78c6c;
}

.code-formatted .number {
    color: #f78c6c;
}

.code-formatted .operator {
    color: #89ddff;
}

.code-formatted .class {
    color: #ffcb6b;
}

.code-formatted .property {
    color: #c792ea;
}

.code-inline {
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    transition: background-color 0.3s ease;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.25rem;
}

.badge-primary {
    background: rgba(255, 45, 32, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 45, 32, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .badge-primary {
    background: rgba(255, 45, 32, 0.2);
    color: #ff6666;
    border-color: rgba(255, 45, 32, 0.4);
}

[data-theme="dark"] .badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-header {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text);
}

.table tr:hover {
    background: var(--bg-secondary);
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-info {
    background: #dbeafe;
    border-color: var(--primary);
    color: #1e40af;
}

[data-theme="dark"] .alert-info {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: #c7d2fe;
}

.alert-warning {
    background: #fef3c7;
    border-color: var(--warning);
    color: #92400e;
}

[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--warning);
    color: #fde68a;
}

.alert-success {
    background: #d1fae5;
    border-color: var(--success);
    color: #065f46;
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: #6ee7b7;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tree Structure */
.tree {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
    transition: background-color 0.3s ease;
}

.tree-item {
    margin: 0.25rem 0;
}

.tree-folder {
    color: var(--warning);
}

.tree-file {
    color: var(--primary);
}

/* Search */
.search-box {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .search-box:focus {
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

/* Menu Toggle Button - Inside sidebar when open, outside when closed */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

[data-theme="dark"] .menu-toggle {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Button inside sidebar (visible when sidebar is open) */
.sidebar .menu-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 102;
}

/* Button outside sidebar (visible when sidebar is closed) */
.menu-toggle-outside {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 101;
}

/* Button inside sidebar - positioned absolutely in top-right */
.sidebar .menu-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 102;
    display: flex;
}

/* Hide button inside sidebar when sidebar is closed (desktop - collapsed) */
.sidebar.collapsed .menu-toggle {
    display: none !important;
}

/* Hide button inside sidebar when sidebar is closed (mobile - not open) */
@media (max-width: 768px) {
    .sidebar:not(.open) .menu-toggle {
        display: none !important;
    }
}

/* Always show button inside sidebar when sidebar is open (desktop) */
@media (min-width: 769px) {
    .sidebar:not(.collapsed) .menu-toggle {
        display: flex !important;
    }
}

/* Always show button inside sidebar when sidebar is open (mobile) */
@media (max-width: 768px) {
    .sidebar.open .menu-toggle {
        display: flex !important;
    }
}

/* Button outside sidebar - hidden by default */
.menu-toggle-outside {
    display: none;
}

/* Show outside button when sidebar is closed (desktop) */
body.sidebar-collapsed .menu-toggle-outside {
    display: flex;
}

/* Show outside button when sidebar is closed (mobile) */
body:not(.sidebar-open) .menu-toggle-outside {
    display: flex;
}

/* Hide outside button when sidebar is open (desktop) */
body:not(.sidebar-collapsed) .menu-toggle-outside {
    display: none;
}

/* Hide outside button when sidebar is open (mobile) */
body.sidebar-open .menu-toggle-outside {
    display: none;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Search Modal Overlay with Blur - Separate from Playground */
.search-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 20000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal-overlay.active {
    display: block;
    opacity: 1;
}

/* Blur content behind search modal (but not playground) */
body.search-active .main-content,
body.search-active .sidebar {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

/* Don't blur playground when search is active */
body.search-active .playground-modal,
body.search-active .playground-window {
    filter: none !important;
}

/* Search Modal */
.search-modal {
    display: none !important;
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    width: 90%;
    max-width: 700px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    z-index: 20001;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 70vh;
    flex-direction: column;
}

.search-modal.active {
    display: flex !important;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.search-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-modal-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1.1rem;
    background: var(--bg-primary);
    color: var(--text) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-text-fill-color: var(--text) !important;
}

.search-modal-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.search-modal-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}

.search-modal-input:-webkit-autofill,
.search-modal-input:-webkit-autofill:hover,
.search-modal-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-primary) inset !important;
    box-shadow: 0 0 0px 1000px var(--bg-primary) inset !important;
}

.search-modal-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-modal-close:hover {
    background: var(--border);
}

.search-modal-results {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-result-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
    margin: 0.25rem;
}

.search-result-item:hover,
.search-result-item.selected {
    background: var(--bg-secondary);
}

.search-result-item.active {
    background: var(--primary);
    color: white;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.search-result-item.active .search-result-title {
    color: white;
}

.search-result-path {
    font-size: 0.8rem;
    color: var(--text-light);
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.search-result-item.active .search-result-path {
    color: rgba(255, 255, 255, 0.8);
}

.search-result-snippet {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.search-result-item.active .search-result-snippet {
    color: rgba(255, 255, 255, 0.9);
}

.search-no-results {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.search-modal-hint {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-modal-hint kbd {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: monospace;
    font-size: 0.7rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* JSON/PHP Array Styling - Code Editor Style */
.json-structure {
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    background: #1e1e1e;
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    overflow-x: auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .json-structure {
    background: #0d1117;
    border-color: #30363d;
}

.json-key {
    color: #c586c0;
    font-weight: 500;
}

.json-string {
    color: #ce9178;
}

.json-bracket {
    color: #569cd6;
    font-weight: 600;
    font-size: 1.05em;
}

.json-arrow {
    color: #dcdcaa;
    margin: 0 0.3rem;
    font-weight: 500;
}

.json-comma {
    color: #808080;
    margin-left: 0.2rem;
}

.json-indent {
    display: inline-block;
    width: 1.5rem;
    position: relative;
}

.json-indent::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(128, 128, 128, 0.2);
}

.json-item {
    margin: 0.15rem 0;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.json-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(2px);
}

.json-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-left: 3px solid #6366f1;
    padding-left: 0.8rem;
}

/* Sidebar Categories - Code Editor Style */
.nav-category {
    margin: 0.5rem 0;
    background: #1e1e1e;
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav-category {
    background: #0d1117;
    border-color: #30363d;
}

.nav-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.nav-category-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    font-weight: 500;
    font-size: 0.8rem;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    background: linear-gradient(135deg, #252526 0%, #1e1e1e 100%);
    border-bottom: 1px solid #3e3e3e;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-wrap: wrap;
}

[data-theme="dark"] .nav-category-header {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    border-bottom-color: #30363d;
}

.nav-category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-category-header:hover::before {
    opacity: 1;
}

.nav-category-header:hover {
    background: linear-gradient(135deg, #2d2d30 0%, #252526 100%);
}

[data-theme="dark"] .nav-category-header:hover {
    background: linear-gradient(135deg, #1c2128 0%, #161b22 100%);
}

.nav-category-bracket {
    color: #569cd6;
    font-weight: 600;
    font-size: 1.1em;
}

.nav-category-key {
    color: #c586c0;
    font-weight: 500;
}

.nav-category-arrow {
    color: #dcdcaa;
    margin: 0 0.3rem;
    font-weight: 500;
}

.nav-category-label {
    flex: 1;
    color: #d4d4d4;
}

[data-theme="dark"] .nav-category-label {
    color: #c9d1d9;
}

.nav-category-toggle {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #808080;
    font-family: monospace;
}

.nav-category.collapsed .nav-category-toggle {
    transform: rotate(-90deg);
}

.nav-category.collapsed .nav-submenu {
    max-height: 0 !important;
    overflow: hidden;
}

.nav-submenu {
    padding: 0.25rem 0;
    background: #252526;
    transition: max-height 0.3s ease;
    overflow: hidden;
}

[data-theme="dark"] .nav-submenu {
    background: #161b22;
}

.nav-submenu-item {
    padding: 0.4rem 1rem 0.4rem 2.5rem;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.75rem;
    color: #d4d4d4;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    border-left: 2px solid transparent;
    line-height: 1.4;
}

[data-theme="dark"] .nav-submenu-item {
    color: #c9d1d9;
}

.nav-submenu-item::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #808080;
}

.nav-submenu-item.nav-submenu-closer {
    padding-top: 0.2rem;
    padding-bottom: 0.4rem;
}

.nav-submenu-item.nav-submenu-closer::before {
    display: none;
}

.nav-submenu-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-left-color: #6366f1;
    transform: translateX(3px);
}

.nav-submenu-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-left-color: #6366f1;
    color: #ffffff;
}

.nav-submenu-item.active::before {
    color: #6366f1;
}

.nav-submenu-item .json-indent {
    width: 0.5rem;
}

.nav-submenu-item .json-key {
    color: #c586c0;
}

.nav-submenu-item.active .json-key {
    color: #d4a5ff;
}

.nav-submenu-item .json-string {
    color: #ce9178;
}

.nav-submenu-item.active .json-string {
    color: #ffb380;
}

.nav-submenu-item .json-bracket {
    color: #569cd6;
}

.nav-submenu-item.active .json-bracket {
    color: #7cb8ff;
}

/* Search Result Categories - Code Editor Style */
.search-result-category {
    margin-bottom: 1rem;
    border: 1px solid #3e3e3e;
    border-radius: 8px;
    overflow: hidden;
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

[data-theme="dark"] .search-result-category {
    background: #0d1117;
    border-color: #30363d;
}

.search-result-category:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: #6366f1;
}

.search-result-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #252526 0%, #1e1e1e 100%);
    border-bottom: 2px solid #3e3e3e;
    font-weight: 500;
    font-size: 0.875rem;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-category-header:hover {
    background: linear-gradient(135deg, #2d2d30 0%, #252526 100%);
}

[data-theme="dark"] .search-result-category-header {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    border-bottom-color: #30363d;
}

[data-theme="dark"] .search-result-category-header:hover {
    background: linear-gradient(135deg, #1c2128 0%, #161b22 100%);
}

.search-result-category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
}

.search-result-category-bracket {
    color: #569cd6;
    font-weight: 600;
    font-size: 1.1em;
}

.search-result-category-key {
    color: #c586c0;
    font-weight: 500;
}

.search-result-category-arrow {
    color: #dcdcaa;
    margin: 0 0.3rem;
    font-weight: 500;
}

.search-result-category-label {
    flex: 1;
    color: #d4d4d4;
}

[data-theme="dark"] .search-result-category-label {
    color: #c9d1d9;
}

.search-result-category-count {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #a5b4fc;
    font-family: 'Fira Code', monospace;
}

.search-result-category-toggle {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #808080;
    font-family: monospace;
    margin-left: auto;
}

.search-result-category.collapsed .search-result-category-toggle {
    transform: rotate(-90deg);
}

.search-result-category.collapsed .search-result-category-items {
    max-height: 0 !important;
    overflow: hidden;
    padding: 0;
}

.search-result-category-items {
    padding: 0.5rem;
    background: #252526;
    transition: max-height 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    max-height: 5000px;
}

[data-theme="dark"] .search-result-category-items {
    background: #161b22;
}

.search-result-item-json {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.75rem;
    border-radius: 4px;
    margin: 0.15rem 0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    border-left: 2px solid transparent;
    color: #d4d4d4;
    line-height: 1.4;
}

[data-theme="dark"] .search-result-item-json {
    color: #c9d1d9;
}

.search-result-item-json::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #808080;
}

.search-result-item-json.search-result-closer {
    padding-top: 0.2rem;
    padding-bottom: 0.4rem;
}

.search-result-item-json.search-result-closer::before {
    display: none;
}

.search-result-item-json:hover {
    background: rgba(99, 102, 241, 0.1);
    border-left-color: #6366f1;
    transform: translateX(3px);
}

.search-result-item-json.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-left-color: #6366f1;
    color: #ffffff;
}

.search-result-item-json.active::before {
    color: #6366f1;
}

.search-result-item-json .json-key {
    color: #c586c0;
}

.search-result-item-json.active .json-key {
    color: #d4a5ff;
}

.search-result-item-json .json-string {
    color: #ce9178;
}

.search-result-item-json.active .json-string {
    color: #ffb380;
}

.search-result-item-json .json-bracket {
    color: #569cd6;
}

.search-result-item-json.active .json-bracket {
    color: #7cb8ff;
}

.search-result-item-json .json-arrow {
    color: #dcdcaa;
}

.search-result-item-json.active .json-arrow {
    color: #ffffaa;
}

/* Snippet styling for search results */
.search-result-item-json .snippet-text {
    margin-left: 2.5rem;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #808080;
    font-style: italic;
    line-height: 1.4;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(128, 128, 128, 0.2);
}

.search-result-item-json.active .snippet-text {
    color: rgba(255, 255, 255, 0.7);
    border-left-color: rgba(255, 255, 255, 0.3);
}

/* Add subtle animation for code-like appearance */
@keyframes codeGlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.nav-category-header:hover .nav-category-bracket,
.nav-category-header:hover .nav-category-key {
    animation: codeGlow 2s ease-in-out infinite;
}

/* Line number effect for better code editor feel */
.nav-submenu-item::after,
.search-result-item-json::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(128, 128, 128, 0.1);
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-submenu-item:hover::after,
.search-result-item-json:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .search-modal {
        width: 95%;
        top: 10%;
        max-height: 80vh;
    }

    .search-modal-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-modal-close {
        width: 100%;
    }

    .search-modal-hint {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive Styles - Smooth transitions across all screen sizes */

/* Large tablets and small desktops (1025px and above) */
@media (min-width: 1025px) {
    .sidebar {
        width: 280px;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
        max-width: 1400px;
        padding: 2rem;
        transition: margin-left 0.3s ease, width 0.3s ease;
    }

    .sidebar.collapsed~.main-content,
    body.sidebar-collapsed .main-content {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 1200px;
    }

    .menu-toggle {
        display: flex;
    }

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

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 260px;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
        padding: 1.5rem;
        transition: margin-left 0.3s ease, width 0.3s ease;
    }

    .sidebar.collapsed~.main-content,
    body.sidebar-collapsed .main-content {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 1200px;
    }

    .section {
        padding: 1.5rem;
    }

    .section h2 {
        font-size: 1.75rem;
    }

    .section h3 {
        font-size: 1.35rem;
    }

    .menu-toggle {
        display: flex;
    }

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

/* Small tablets and large phones (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

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

    .main-content {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 1200px;
        padding: 1.25rem;
    }

    .section {
        padding: 1.25rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .section h3 {
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 101;
        background: var(--primary);
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 6px;
        cursor: pointer;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    /* Responsive Code Blocks */
    .code-block {
        padding: 1rem;
        font-size: 0.8rem;
        overflow-x: auto;
    }

    /* Responsive Tables */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Touch-friendly Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
        font-size: 0.9rem;
    }

    /* Responsive Search Box */
    .search-box {
        width: 100% !important;
        padding: 0.75rem;
    }

    /* Responsive Tabs */
    .tabs {
        flex-wrap: wrap;
    }
}

/* Mobile phones (up to 480px) */
@media (max-width: 480px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 85%;
        max-width: 280px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.open {
        transform: translateX(0);
    }

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

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 0.75rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 101;
        background: var(--primary);
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 6px;
        cursor: pointer;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .menu-toggle:hover {
        background: var(--primary-dark);
    }

    .section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .section h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .section h4 {
        font-size: 1.1rem;
    }

    /* Responsive Typography */
    body {
        font-size: 15px;
    }

    /* Responsive Code Blocks */
    .code-block {
        padding: 1rem;
        font-size: 0.8rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .code-block code {
        font-size: 0.8rem;
    }

    /* Responsive Tables */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    table thead,
    table tbody,
    table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    /* Responsive Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Touch-friendly Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
        font-size: 0.9rem;
    }

    .code-btn {
        padding: 0.6rem 0.9rem;
        min-height: 36px;
    }

    /* Responsive Search Box */
    .search-box {
        width: 100% !important;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Responsive Tabs */
    .tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tabs button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    /* Responsive Modals */
    .modal {
        padding: 1rem;
    }

    .modal-content {
        margin: 0;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    /* Responsive Playground */
    .playground-window {
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* Responsive API Explorer */
    .api-endpoint-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .api-endpoint-item>* {
        width: 100%;
    }

    /* Responsive Accordion */
    .accordion-header {
        padding: 0.75rem 1rem;
    }

    /* Responsive Forms */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    /* Responsive Lists */
    .section ul,
    .section ol {
        margin-left: 1.25rem;
    }

    /* Responsive Badges */
    .badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Responsive Alerts */
    .alert {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Scroll to top button */
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

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

    .section {
        padding: 0.75rem;
        border-radius: 6px;
    }

    .section h2 {
        font-size: 1.35rem;
    }

    .section h3 {
        font-size: 1.15rem;
    }

    .section h4 {
        font-size: 1rem;
    }

    body {
        font-size: 14px;
    }

    .code-block {
        padding: 0.75rem;
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .sidebar {
        width: 85%;
        max-width: 280px;
    }

    .menu-toggle {
        top: 0.75rem;
        left: 0.75rem;
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }

    .theme-toggle {
        top: 3.5rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }

    .card-header {
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Stack elements vertically on very small screens */
    .playground-actions,
    .code-actions {
        flex-direction: column;
        width: 100%;
    }

    .playground-actions button,
    .code-actions button {
        width: 100%;
    }
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.scroll-top.show {
    display: flex;
}

/* Dark Mode Toggle */
/* Theme toggle - only apply when NOT in control-buttons-group */
.theme-toggle:not(.control-buttons-group *) {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.theme-toggle:not(.control-buttons-group *):hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .theme-toggle:not(.control-buttons-group *) {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle:not(.control-buttons-group *):hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .theme-toggle:not(.control-buttons-group *) {
        top: 4rem;
        right: 1rem;
    }
}

/* Ensure theme toggle in control-buttons-group uses group styles */
.control-buttons-group .theme-toggle {
    position: static !important;
    width: 45px !important;
    height: 45px !important;
    top: auto !important;
    right: auto !important;
    font-size: 1.2rem !important;
}

/* Interactive Tabs for Code Examples */
.code-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.code-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.code-tab:hover {
    color: var(--primary);
}

.code-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.code-tab-content {
    display: none;
}

.code-tab-content.active {
    display: block;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Interactive Playground Modal */
.playground-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.playground-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.playground-window {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1600px;
    min-width: 600px;
    height: 85vh;
    /* min-height: 400px; */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 10000;
    resize: both;
}

/* Resize handle styling - visible corner indicator */
.playground-window::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background:
        linear-gradient(-45deg,
            transparent 0%,
            transparent 25%,
            var(--border) 25%,
            var(--border) 30%,
            transparent 30%,
            transparent 40%,
            var(--border) 40%,
            var(--border) 45%,
            transparent 45%,
            transparent 55%,
            var(--border) 55%,
            var(--border) 60%,
            transparent 60%,
            transparent 70%,
            var(--border) 70%,
            var(--border) 75%,
            transparent 75%);
    cursor: nwse-resize;
    z-index: 10001;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.playground-window:hover::after {
    opacity: 1;
}

/* Prevent resize when minimized */
.playground-window.minimized {
    resize: none;
}

.playground-window.minimized::after {
    display: none;
}

.playground-window.minimized {
    height: auto;
    max-height: 60px;
}

/* Maximized state */
.playground-window.maximized {
    width: 100% !important;
    height: 100vh !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    min-width: 100% !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    resize: none !important;
    position: fixed !important;
}

.playground-window.maximized::after {
    display: none;
}

.playground-modal.maximized {
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.playground-window-header {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.playground-window-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.playground-window-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.playground-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 1rem;
}

.playground-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.playground-window-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Fancy Interactive Tabs */
.playground-tabs {
    display: flex;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 2px solid var(--border);
    padding: 0.5rem 1rem;
    overflow-x: auto;
    position: relative;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.playground-tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        #8b5cf6 25%, 
        #ec4899 50%, 
        #f59e0b 75%, 
        var(--primary) 100%);
    width: 100%;
    opacity: 0.3;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.playground-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
    user-select: none;
    border-radius: 8px 8px 0 0;
    margin: 0 0.25rem;
    overflow: hidden;
}

.playground-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.5s;
}

.playground-tab:hover::before {
    left: 100%;
}

.playground-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    border-radius: 2px 2px 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.playground-tab:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.playground-tab:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.playground-tab.active {
    color: var(--primary);
    background: linear-gradient(180deg, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(99, 102, 241, 0.05) 100%);
    transform: translateY(0);
    box-shadow: 0 -2px 8px rgba(99, 102, 241, 0.2);
}

.playground-tab.active::after {
    transform: translateX(-50%) scaleX(1);
    background: linear-gradient(90deg, var(--primary), #8b5cf6, var(--primary));
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px var(--primary);
        opacity: 1;
    }
    50% { 
        box-shadow: 0 0 15px var(--primary), 0 0 25px rgba(99, 102, 241, 0.5);
        opacity: 0.8;
    }
}

.playground-tab.active::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(99, 102, 241, 0.2), 
        transparent);
    animation: shimmer-active 2s infinite;
}

@keyframes shimmer-active {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Tab icon animation */
.playground-tab span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.playground-tab:hover span {
    transform: scale(1.2) rotate(5deg);
}

.playground-tab.active span {
    transform: scale(1.1);
    animation: bounce-icon 0.6s ease;
}

@keyframes bounce-icon {
    0%, 100% { transform: scale(1.1) translateY(0); }
    50% { transform: scale(1.2) translateY(-3px); }
}

.playground-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playground-tab-content.active {
    display: block !important;
}

/* Tab ripple effect on click */
.playground-tab {
    pointer-events: auto !important;
    position: relative;
    overflow: hidden;
}

.playground-tab .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Floating Open Button - Aligned with theme toggle in bottom-right */
.playground-float-btn {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.playground-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--primary-dark);
}

.playground-float-btn.active {
    background: var(--danger);
    border-color: rgba(255, 255, 255, 0.4);
    animation: none;
    transform: scale(1.05);
}

.playground-float-btn.active:hover {
    transform: scale(1.1);
}

/* Align with theme toggle on mobile */
@media (max-width: 768px) {
    .playground-float-btn {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.6);
    }
}

/* Inline Open Button */
.open-playground-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-left: 1rem;
}

.open-playground-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .playground-window {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .playground-float-btn {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }
}

/* Game Styles */
.game-section {
    min-height: 400px;
}

.game-mode-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 2rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-mode-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.game-mode-btn:active {
    transform: translateY(-2px);
}

.quiz-question {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quiz-option {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 0.95rem;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(4px);
}

.quiz-option.correct {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.quiz-option.wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.game-progress {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.game-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
    border-radius: 4px;
}

.code-challenge {
    background: var(--code-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    position: relative;
}

.code-line {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.code-line:hover {
    background: rgba(99, 102, 241, 0.1);
}

.code-line.selected {
    background: rgba(99, 102, 241, 0.2);
    border-left: 3px solid var(--primary);
}

.match-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.match-item {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.match-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.match-item.matched {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    pointer-events: none;
}

.match-item.selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.achievement-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 1rem;
    display: inline-block;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.achievement-badge.locked {
    background: var(--bg-secondary);
    color: var(--text-light);
    opacity: 0.5;
}

.achievement-badge.unlocked {
    animation: unlock 0.5s ease;
}

@keyframes unlock {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.game-feedback {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

.game-feedback.correct {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 2px solid var(--success);
}

.game-feedback.wrong {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 2px solid var(--danger);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.game-button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0.5rem;
}

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

.game-button-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.game-button-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 2px solid var(--border);
}

.game-button-secondary:hover {
    background: var(--border);
}

/* HTTP Client Styles */
.http-tab-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.http-tab-btn:hover {
    color: var(--primary);
}

.http-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.http-tab-panel {
    display: none;
    min-height: 100px;
}

.http-tab-panel.active {
    display: block;
}

.http-key-value-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.http-key-value-row input {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text);
    font-size: 0.875rem;
}

.http-key-value-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.http-history-item {
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.http-history-item:hover {
    background: var(--border);
    border-color: var(--primary);
}

.http-history-method {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.http-history-method.GET {
    background: #10b981;
    color: white;
}

.http-history-method.POST {
    background: #3b82f6;
    color: white;
}

.http-history-method.PUT {
    background: #f59e0b;
    color: white;
}

.http-history-method.DELETE {
    background: #ef4444;
    color: white;
}

.http-history-method.PATCH {
    background: #8b5cf6;
    color: white;
}

/* ============================================
   EXTRA FEATURES STYLES
   ============================================ */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 10000;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .reading-progress {
    background: rgba(255, 255, 255, 0.05);
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Control Buttons Group */
.control-buttons-group {
    position: fixed;
    top: 45px;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
}

.control-buttons-group button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-buttons-group button:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.control-buttons-group button.active {
    background: var(--primary);
    color: white;
}

/* Font Size Menu */
.font-size-menu {
    position: fixed;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 80px;
}

.font-size-menu.show {
    display: flex;
}

.font-size-menu button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-size-menu button:hover {
    background: var(--primary);
    color: white;
}

/* Table of Contents Panel */
.toc-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.toc-panel.open {
    right: 0;
}

.toc-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.toc-header h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.toc-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toc-close:hover {
    background: var(--bg-hover);
}

.toc-body {
    padding: 1rem;
}

.toc-item {
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.toc-item:hover {
    border-left-color: var(--primary);
    padding-left: 1.25rem;
}

.toc-item a {
    color: var(--text);
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.toc-item.active {
    border-left-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding-left: 1.25rem;
}

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

.toc-item.level-2 {
    margin-left: 1rem;
    font-size: 0.85rem;
}

.toc-item.level-3 {
    margin-left: 2rem;
    font-size: 0.8rem;
}

/* Bookmarks Panel */
.bookmarks-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.bookmarks-panel.open {
    right: 0;
}

.bookmarks-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.bookmarks-header h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.bookmarks-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.bookmarks-close:hover {
    background: var(--bg-hover);
}

.bookmarks-body {
    padding: 1rem;
}

.bookmarks-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.bookmarks-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.bookmarks-list li:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.bookmarks-list li a {
    color: var(--text);
    text-decoration: none;
    flex: 1;
    font-size: 0.9rem;
}

.bookmarks-list li a:hover {
    color: var(--primary);
}

.bookmarks-list li button {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.bookmarks-list li button:hover {
    background: var(--danger);
    color: white;
}

/* Reading Time Display */
.reading-time-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.reading-time-display:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* Section Bookmark Button */
.section-header-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-bookmark-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.section-header-wrapper:hover .section-bookmark-btn {
    opacity: 1;
    transform: translateX(0);
}

.section-bookmark-btn:hover {
    background: var(--bg-hover);
    transform: scale(1.2);
}

.section-bookmark-btn.bookmarked {
    opacity: 1;
    transform: translateX(0);
    color: var(--warning);
}

/* Keyboard Shortcuts Modal */
.shortcuts-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(4px);
}

.shortcuts-modal-overlay.show {
    display: block;
}

.shortcuts-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: none;
    overflow: hidden;
}

.shortcuts-modal.show {
    display: block;
}

.shortcuts-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.shortcuts-modal-header h3 {
    margin: 0;
    color: var(--primary);
}

.shortcuts-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.shortcuts-modal-close:hover {
    background: var(--bg-hover);
}

.shortcuts-modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-description {
    color: var(--text);
    font-size: 0.9rem;
}

.shortcut-keys {
    display: flex;
    gap: 0.25rem;
}

.shortcut-key {
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    color: var(--text);
}

/* Focus Mode - Uses sidebar collapse styles */
/* Focus mode button active state is handled by sidebar collapse */

/* Section Navigation Arrows - Same style as other control buttons */
.control-buttons-group .section-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-buttons-group .section-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.control-buttons-group .section-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.control-buttons-group .section-nav-btn:disabled:hover {
    background: var(--bg-primary);
    color: var(--text);
    transform: scale(1);
}

/* Jump to Top/Bottom Buttons */
.jump-btn:not(.control-buttons-group *) {
    position: fixed;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 997;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
}

.jump-btn:not(.control-buttons-group *).show {
    opacity: 1;
    pointer-events: all;
}

.jump-to-top:not(.control-buttons-group *) {
    bottom: 80px;
    right: 20px;
}

.jump-to-bottom {
    bottom: 20px;
    right: 20px;
}

.jump-btn:not(.control-buttons-group *):hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Jump button in control-buttons-group */
.control-buttons-group .jump-btn {
    position: static !important;
    width: 45px !important;
    height: 45px !important;
    bottom: auto !important;
    right: auto !important;
    pointer-events: none !important;
    opacity: 0 !important;
    display: none !important;
    transition: opacity 0.3s ease !important;
}

.control-buttons-group .jump-btn.show {
    opacity: 1 !important;
    pointer-events: all !important;
    display: flex !important;
}

.control-buttons-group .jump-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Copy Section Link Button - only apply when NOT in control-buttons-group */
.copy-link-btn:not(.control-buttons-group *) {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 997;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.copy-link-btn:not(.control-buttons-group *):hover {
    background: var(--success);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    opacity: 1;
}

.copy-link-btn:not(.control-buttons-group *).copied {
    background: var(--success);
    color: white;
}

/* Copy link button in control-buttons-group */
.control-buttons-group .copy-link-btn {
    position: static !important;
    width: 45px !important;
    height: 45px !important;
    bottom: auto !important;
    right: auto !important;
    opacity: 1 !important;
}

.control-buttons-group .copy-link-btn:hover {
    background: var(--success);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.control-buttons-group .copy-link-btn.copied {
    background: var(--success);
    color: white;
}

/* Recent Sections Panel */
.recent-sections-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.recent-sections-panel.open {
    right: 0;
}

.recent-sections-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.recent-sections-header h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.recent-sections-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.recent-sections-close:hover {
    background: var(--bg-hover);
}

.recent-sections-body {
    padding: 1rem;
}

.recent-sections-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.recent-sections-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.recent-sections-list li:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.recent-sections-list li a {
    color: var(--text);
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.recent-sections-list li a:hover {
    color: var(--primary);
}

.recent-sections-list li .recent-section-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    z-index: 99;
    display: none;
    transition: all 0.3s ease;
}

body.sidebar-collapsed .breadcrumb-nav {
    left: 0;
    padding-left: 5rem; /* Space for menu button (44px + 1rem margin + 0.5rem spacing) */
}

.breadcrumb-nav.show {
    display: block;
}

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

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

.breadcrumb-separator {
    color: var(--text-light);
    font-size: 0.75rem;
}

.section {
    position: relative;
}

/* Code Snippet Download Button */
.code-download-btn {
    background: rgba(99, 102, 241, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.code-download-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* Code Fullscreen Button */
.code-fullscreen-btn {
    background: rgba(99, 102, 241, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.code-fullscreen-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.code-block-wrapper {
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .control-buttons-group {
        top: 60px;
        right: 1rem;
        gap: 0.25rem;
    }

    .control-buttons-group button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .toc-panel,
    .bookmarks-panel,
    .recent-sections-panel {
        width: 100%;
        right: -100%;
    }

    .control-buttons-group .section-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .jump-btn:not(.control-buttons-group *) {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .jump-to-top:not(.control-buttons-group *) {
        bottom: 70px;
        right: 10px;
    }

    .jump-to-bottom {
        bottom: 10px;
        right: 10px;
    }

    .control-buttons-group .jump-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .copy-link-btn:not(.control-buttons-group *) {
        bottom: 130px;
        right: 10px;
    }

    .control-buttons-group .copy-link-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .breadcrumb-nav {
        left: 0;
        padding: 0.5rem 1rem;
        padding-left: 5rem; /* Space for menu button on mobile */
    }

    .breadcrumb-item {
        font-size: 0.75rem;
    }
}

/* ============================================
   FANCY NEW FEATURES
   ============================================ */

/* Quick Jump Modal */
.quick-jump-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(4px);
}

.quick-jump-overlay.show {
    display: block;
}

.quick-jump-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: none;
    overflow: hidden;
}

.quick-jump-modal.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.quick-jump-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg-secondary);
}

.quick-jump-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text);
    transition: border-color 0.2s ease;
}

.quick-jump-input:focus {
    outline: none;
    border-color: var(--primary);
}

.quick-jump-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.quick-jump-close:hover {
    background: var(--bg-hover);
}

.quick-jump-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.quick-jump-hint {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.quick-jump-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-jump-item:hover,
.quick-jump-item.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(4px);
}

.quick-jump-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quick-jump-item-path {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Fullscreen Code Modal */
.fullscreen-code-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--code-bg);
    z-index: 10002;
    display: none;
    flex-direction: column;
}

.fullscreen-code-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fullscreen-code-header {
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fullscreen-code-header h4 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
}

.fullscreen-code-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fullscreen-code-close:hover {
    background: var(--bg-hover);
}

.fullscreen-code-body {
    flex: 1;
    overflow: auto;
    padding: 2rem;
}

.fullscreen-code-body pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.fullscreen-code-body code {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--code-text);
}

/* Code Block Line Numbers */
.code-block.with-line-numbers {
    counter-reset: line-number;
}

.code-block.with-line-numbers code {
    display: block;
    padding-left: 3.5rem;
    position: relative;
}

.code-block.with-line-numbers code::before {
    counter-increment: line-number;
    content: counter(line-number);
    position: absolute;
    left: 0;
    width: 3rem;
    text-align: right;
    padding-right: 1rem;
    color: var(--text-light);
    font-size: 0.85em;
    user-select: none;
}

/* Section Read Tracking */
.section.read {
    position: relative;
}

.section.read::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0.7;
    z-index: 1;
}

/* Text Highlighting */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: inherit;
}

.highlighted-text {
    background: rgba(255, 235, 59, 0.4);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.highlighted-text:hover {
    background: rgba(255, 235, 59, 0.6);
}

/* Smooth Scroll Enhancement */
html {
    scroll-behavior: smooth;
}

/* Reading Progress Per Section */
.section-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease;
    z-index: 1;
}

/* Game Back Button */
#game-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#game-back-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(-3px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

#game-back-btn:active {
    transform: translateX(-1px);
}

/* Laravel Builder Game Styles */
@keyframes pulse-glow-btn {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    }
    50% { 
        box-shadow: 0 4px 30px rgba(255, 107, 107, 0.6), 0 0 20px rgba(255, 107, 107, 0.3);
    }
}

.builder-component-item:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.builder-canvas-component:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#builder-canvas.drag-over {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--primary);
}

/* Easter Egg Modal */
.easteregg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.easteregg-content {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    border: 3px solid var(--primary);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.easteregg-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.easteregg-header h2 {
    margin: 0;
    font-size: 1.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.easteregg-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.easteregg-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.easteregg-body {
    padding: 2rem;
}

/* Playground Feature Modals */
.playground-feature-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10003;
    display: none;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.playground-feature-modal.show {
    display: block;
}

.playground-feature-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.playground-feature-header h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.playground-feature-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.playground-feature-close:hover {
    background: var(--bg-hover);
}

.playground-feature-body {
    padding: 1.5rem;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.template-list,
.history-list,
.saved-requests-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.template-item,
.history-item,
.saved-request-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-item:hover,
.history-item:hover,
.saved-request-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.template-item-title,
.history-item-title,
.saved-request-item-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.template-item-desc,
.history-item-time,
.saved-request-item-method {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.template-item-actions,
.history-item-actions,
.saved-request-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.template-item-actions button,
.history-item-actions button,
.saved-request-item-actions button {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-item-actions button:hover,
.history-item-actions button:hover,
.saved-request-item-actions button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.saved-request-item-method {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.saved-request-item-method.GET {
    background: #10b981;
    color: white;
}

.saved-request-item-method.POST {
    background: #3b82f6;
    color: white;
}

.saved-request-item-method.PUT {
    background: #f59e0b;
    color: white;
}

.saved-request-item-method.DELETE {
    background: #ef4444;
    color: white;
}

.saved-request-item-method.PATCH {
    background: #8b5cf6;
    color: white;
}