/* ==========================================================================
   VibeCode Design System & DNA Tokens
   Extracted from https://vibecode.team-big.ru/ for Freelance Hunter
   ========================================================================== */

:root {
    --vc-bg-base: #09090b;
    --vc-bg-surface: #121215;
    --vc-bg-surface-elevated: #18181b;
    --vc-bg-subtle: rgba(255, 255, 255, 0.04);
    --vc-bg-hover: rgba(255, 255, 255, 0.08);
    --vc-bg-active: rgba(255, 255, 255, 0.12);

    --vc-border-subtle: rgba(255, 255, 255, 0.08);
    --vc-border-strong: rgba(255, 255, 255, 0.15);
    --vc-border-focus: #10b981;

    --vc-text-primary: #f4f4f5;
    --vc-text-secondary: #a1a1aa;
    --vc-text-muted: #71717a;

    --vc-accent-emerald: #10b981;
    --vc-accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --vc-accent-indigo: #6366f1;
    --vc-accent-cyan: #06b6d4;
    --vc-accent-amber: #f59e0b;
    --vc-accent-rose: #ef4444;

    --vc-font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Inter, sans-serif;
    --vc-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Global Base & HTML */
html.dark, html {
    background-color: var(--vc-bg-base) !important;
    color-scheme: dark;
}

body.vc-theme {
    background-color: var(--vc-bg-base) !important;
    color: var(--vc-text-primary) !important;
    font-family: var(--vc-font-sans);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
}

/* Header VibeCode Glass */
header.vc-header {
    background: rgba(12, 12, 15, 0.88) !important;
    border-bottom: 1px solid var(--vc-border-subtle) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

/* Panels & Cards */
.vc-panel {
    background: var(--vc-bg-surface) !important;
    border: 1px solid var(--vc-border-subtle) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.vc-panel:hover {
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.vc-panel-elevated {
    background: var(--vc-bg-surface-elevated) !important;
    border: 1px solid var(--vc-border-strong) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Tactile Buttons */
.vc-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-family: var(--vc-font-sans) !important;
    font-weight: 500 !important;
    font-size: 0.8125rem !important;
    line-height: 1.25rem !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    user-select: none !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
}

.vc-btn:active {
    transform: scale(0.97) !important;
}

.vc-btn-primary {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 12px var(--vc-accent-emerald-glow) !important;
}

.vc-btn-primary:hover {
    box-shadow: 0 2px 14px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    filter: brightness(1.06) !important;
}

.vc-btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--vc-text-primary) !important;
    border: 1px solid var(--vc-border-subtle) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.vc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: var(--vc-border-strong) !important;
    color: #ffffff !important;
}

.vc-btn-ghost {
    background: transparent !important;
    color: var(--vc-text-secondary) !important;
    border: 1px solid transparent !important;
}

.vc-btn-ghost:hover {
    background: var(--vc-bg-subtle) !important;
    color: var(--vc-text-primary) !important;
}

.vc-btn-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
}

.vc-btn-danger:hover {
    background: rgba(239, 68, 68, 0.22) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
}

/* Responsive Navigation Bar for Segmented Tabs */
.vc-tabs-nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.vc-tabs-nav::-webkit-scrollbar {
    display: none;
}

/* Segmented Tab Switcher */
.vc-tabs-bar {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(18, 18, 21, 0.95) !important;
    border: 1px solid var(--vc-border-subtle) !important;
    border-radius: 12px !important;
    padding: 4px !important;
    gap: 4px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    min-width: max-content !important;
}

.vc-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--vc-text-secondary) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    user-select: none !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.vc-tab-btn:hover {
    color: var(--vc-text-primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.vc-tab-btn.active {
    color: #ffffff !important;
    background: #1e1e24 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    font-weight: 600 !important;
}

/* Live Indicators & Badges */
.vc-dot-online {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    animation: vc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes vc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.92); }
}

.vc-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    font-family: var(--vc-font-mono) !important;
    white-space: nowrap !important;
}

.vc-badge-emerald {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.vc-badge-cyan {
    background: rgba(6, 182, 212, 0.15) !important;
    color: #22d3ee !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

.vc-badge-indigo {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
}

.vc-badge-amber {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.vc-badge-rose {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.vc-badge-zinc {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--vc-text-secondary) !important;
    border: 1px solid var(--vc-border-subtle) !important;
}

/* Form Controls & Inputs */
.vc-input, 
input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    background: #0f0f12 !important;
    border: 1px solid var(--vc-border-subtle) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: var(--vc-text-primary) !important;
    font-size: 0.8125rem !important;
    font-family: var(--vc-font-sans) !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}

.vc-input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
}

::placeholder {
    color: var(--vc-text-muted) !important;
}

/* Modals */
.vc-modal-backdrop {
    background: rgba(0, 0, 0, 0.82) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.vc-modal-card {
    background: #121215 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Custom Scrollbars */
.vc-scroll::-webkit-scrollbar,
.custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.vc-scroll::-webkit-scrollbar-track,
.custom-scroll::-webkit-scrollbar-track {
    background: #09090b !important;
}
.vc-scroll::-webkit-scrollbar-thumb,
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 4px;
}
.vc-scroll::-webkit-scrollbar-thumb:hover,
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}
