/* ==========================================================================
   FOX1CEK.COM OFFICIAL DESIGN SYSTEM - DOCUMENTATION WEB APP
   ========================================================================== */

:root {
    --bg-dark: #0b0f19;
    --bg-sidebar: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.4);
    --bg-card-hover: rgba(30, 41, 59, 0.7);
    --bg-input: rgba(30, 41, 59, 0.6);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.3);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-sub: #64748b;
    
    --accent-cyan: #38bdf8;
    --accent-teal: #22d3ee;
    --accent-green: #34d399;
    --accent-purple: #c084fc;
    
    --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
    
    --font-code: 'Fira Code', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-teal);
}

/* Accent Hash Symbols */
.accent {
    color: var(--accent-cyan);
    font-family: var(--font-code);
    font-weight: 700;
}

.bracket {
    color: var(--accent-cyan);
    font-family: var(--font-code);
    font-weight: 700;
}

/* App Layout */
.docs-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
    width: 290px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.brand-link {
    display: flex;
    align-items: center;
}

.logo-fox {
    font-family: var(--font-code);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 11px;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.sidebar-search {
    position: relative;
    padding: 16px 20px 8px 20px;
}

.sidebar-search i {
    position: absolute;
    left: 32px;
    top: 28px;
    color: var(--text-sub);
    font-size: 13px;
}

#doc-search {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 8px 12px 8px 36px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-code);
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
}

#doc-search:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Navigation Menu */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    background: rgba(56, 189, 248, 0.08);
    color: #fff;
}

.nav-item.active {
    color: var(--accent-cyan);
    font-weight: 700;
    background: rgba(56, 189, 248, 0.12);
    border-left: 3px solid var(--accent-cyan);
}

.ext-icon {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.5;
}

.menu-section-title {
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    margin: 18px 14px 6px 14px;
}

/* Dropdown Group */
.nav-group {
    display: flex;
    flex-direction: column;
}

.group-title {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.group-title:hover {
    background: rgba(255, 255, 255, 0.04);
}

.group-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-badge {
    font-family: var(--font-code);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.side-badge.badge-free {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.2);
}

.side-badge.badge-paid {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.group-arrow {
    font-size: 11px;
    color: var(--text-sub);
    transition: transform 0.3s ease;
}

.nav-group.open .group-arrow {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.group-items {
    display: none;
    flex-direction: column;
    padding-left: 18px;
    margin-top: 2px;
    border-left: 1px solid var(--border-color);
    margin-left: 20px;
}

.nav-group.open .group-items {
    display: flex;
}

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-subitem:hover, .nav-subitem.active {
    color: #fff;
    background: rgba(56, 189, 248, 0.1);
}

.nav-subitem.active {
    color: var(--accent-cyan);
    font-weight: 700;
}

.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-sub);
}

.prompt {
    color: var(--accent-green);
    font-weight: 700;
}

.command {
    color: var(--accent-cyan);
}

/* Main Area */
.docs-main {
    margin-left: 290px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.docs-topbar {
    height: 60px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-breadcrumbs {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--text-muted);
}

.current-crumb {
    color: #fff;
    font-weight: 600;
}

.topbar-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn {
    background: var(--gradient-brand);
    color: #0b0f19;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.primary-btn:hover {
    color: #0b0f19;
    opacity: 0.9;
}

/* Content Container */
.docs-container {
    max-width: 900px;
    padding: 40px;
}

.doc-page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.doc-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-family: var(--font-code);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.lead-text {
    font-size: 16px;
    color: var(--text-muted);
}

.tebex-notice {
    margin-top: 14px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    color: #e0f2fe;
}

/* Terminal Window Component (fox1cek.com style) */
.terminal-window {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.terminal-header {
    background: #1e293b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ef4444; }
.btn-min { background: #f59e0b; }
.btn-max { background: #10b981; }

.terminal-title {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-sub);
    margin-left: 16px;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.line {
    word-break: break-all;
}

.line.typing {
    color: var(--accent-cyan);
}

/* Features Grid */
.features-grid, .info-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.feature-box, .info-card, .issue-card, .faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.feature-box:hover, .info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-box i { font-size: 22px; margin-bottom: 12px; display: block; }
.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-purple { color: var(--accent-purple); }

.feature-box h3, .info-card h3, .issue-card h3, .faq-item h3 {
    font-family: var(--font-code);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-box p, .info-card p, .issue-card p, .faq-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Code Blocks */
.code-block-large {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}

.code-header {
    padding: 10px 18px;
    background: #1e293b;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-code);
}

pre {
    padding: 20px;
    font-family: var(--font-code);
    font-size: 13px;
    overflow-x: auto;
    color: var(--accent-cyan);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-code);
    font-size: 12px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: #0b0f19;
    background: var(--accent-cyan);
}

/* Tables */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.docs-table th, .docs-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.docs-table th {
    background: rgba(30, 41, 59, 0.8);
    color: #fff;
    font-family: var(--font-code);
    font-weight: 700;
}

.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 700;
}

.badge-success { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 13px;
    margin-bottom: 24px;
}

.alert-info {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #e0f2fe;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
    color: var(--accent-cyan);
}
