/* Tarkov Vibe - Debug Tab & Encyclopedia Stylesheet */
.debug-tab-btn {
    border-color: #d08770 !important;
    color: #ebcb8b !important;
}

.debug-dashboard {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.debug-top-header {
    background: #11141a;
    border: 2px solid #3b4252;
    border-left: 5px solid #d08770;
    border-radius: 4px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.debug-title-area h2 {
    margin: 0;
    font-size: 18px;
    color: #eceff4;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.debug-title-area p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #8892b0;
}

.debug-stats-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.debug-stat-pill {
    background: #181d24;
    border: 1px solid #2e3440;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #d8dee9;
}

.debug-stat-pill strong {
    color: #e5c07b;
}

.debug-quick-cheats {
    background: #14171e;
    border: 1px dashed #434c5e;
    border-radius: 4px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.debug-cheats-label {
    font-size: 11px;
    font-weight: 700;
    color: #d08770;
    text-transform: uppercase;
}

.debug-cheat-btn {
    background: #252b36;
    border: 1px solid #4c566a;
    color: #eceff4;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.debug-cheat-btn:hover {
    background: #d08770;
    color: #121417;
    border-color: #d08770;
}

.debug-filter-toolbar {
    background: #11141a;
    border: 1px solid #2e3440;
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.debug-search-row {
    display: flex;
    gap: 10px;
}

.debug-search-input {
    flex: 1;
    background: #0d0f12;
    border: 1px solid #3b4252;
    color: #eceff4;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

.debug-search-input:focus {
    border-color: #e5c07b;
    box-shadow: 0 0 6px rgba(229, 192, 123, 0.4);
}

.debug-pill-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.debug-filter-pill {
    background: #181d24;
    border: 1px solid #2e3440;
    color: #8892b0;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.debug-filter-pill:hover {
    background: #232a35;
    color: #d8dee9;
}

.debug-filter-pill.active {
    background: #e5c07b;
    color: #121417;
    border-color: #e5c07b;
    font-weight: 700;
}

.debug-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}

.debug-item-card {
    background: #11141a;
    border: 1px solid #28303d;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.debug-item-card:hover {
    border-color: #4c566a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.debug-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.debug-item-icon-box {
    width: 64px;
    height: 64px;
    background: #0b0d10;
    border: 1px solid #2e3440;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}

.debug-item-icon-box svg {
    max-width: 100%;
    max-height: 100%;
}

.debug-item-title-col {
    flex: 1;
    min-width: 0;
}

.debug-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #eceff4;
    line-height: 1.3;
    margin-bottom: 2px;
}

.debug-item-id {
    font-family: monospace;
    font-size: 10px;
    color: #7b889b;
    margin-bottom: 4px;
}

.debug-tags-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.debug-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.debug-badge-3d-yes {
    background: rgba(163, 190, 140, 0.15);
    color: #a3be8c;
    border: 1px solid #a3be8c;
}

.debug-badge-3d-no {
    background: rgba(76, 86, 106, 0.2);
    color: #7b889b;
    border: 1px solid #3b4252;
}

.debug-badge-type {
    background: rgba(136, 192, 208, 0.15);
    color: #88c0d0;
    border: 1px solid rgba(136, 192, 208, 0.4);
}

.debug-item-desc {
    font-size: 11px;
    color: #9aa5b5;
    line-height: 1.4;
    background: #0d0f13;
    padding: 6px 8px;
    border-radius: 3px;
    border-left: 2px solid #434c5e;
}

.debug-specs-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #151921;
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #252b36;
    font-size: 11px;
}

.debug-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.debug-spec-k {
    color: #7d8b99;
}

.debug-spec-v {
    font-weight: 600;
    color: #d8dee9;
}

.debug-trader-box {
    background: #14171d;
    border: 1px solid #2e3440;
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.debug-trader-available {
    color: #ebcb8b;
    font-weight: 600;
}

.debug-trader-none {
    color: #65737e;
    font-style: italic;
}

.debug-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.debug-btn {
    flex: 1;
    background: #1f2530;
    border: 1px solid #3b4252;
    color: #eceff4;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.debug-btn:hover {
    background: #2e3848;
    border-color: #88c0d0;
}

.debug-btn-give {
    background: #293427;
    border-color: #4e6349;
    color: #a3be8c;
}

.debug-btn-give:hover {
    background: #a3be8c;
    color: #121417;
    border-color: #a3be8c;
}

.debug-btn-3d {
    background: #2b281f;
    border-color: #594d33;
    color: #ebcb8b;
}

.debug-btn-3d:hover {
    background: #ebcb8b;
    color: #121417;
    border-color: #ebcb8b;
}

/* ==================== 3D MODEL PREVIEWS IN DEBUG CARDS ==================== */
.debug-3d-card-viewport-wrap {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #2a3342;
    background: radial-gradient(circle at 50% 45%, #182230 0%, #0c0f14 100%);
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.7);
    margin: 4px 0 6px 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.debug-3d-card-viewport-wrap:hover {
    border-color: #4f637f;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(136, 192, 208, 0.15);
}

.debug-3d-card-viewport {
    width: 100%;
    height: 155px;
    position: relative;
    cursor: grab;
    user-select: none;
    touch-action: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.debug-3d-card-viewport:active {
    cursor: grabbing;
}

.debug-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.debug-3d-canvas-overlay {
    position: absolute;
    bottom: 6px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.debug-3d-badge-tag {
    background: rgba(14, 18, 24, 0.85);
    border: 1px solid rgba(163, 190, 140, 0.4);
    color: #a3be8c;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #a3be8c;
    border-radius: 50%;
    box-shadow: 0 0 6px #a3be8c;
    display: inline-block;
    animation: pulseDotAnim 1.8s infinite ease-in-out;
}

@keyframes pulseDotAnim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.debug-3d-open-inspect-btn {
    pointer-events: auto;
    background: rgba(26, 32, 44, 0.9);
    border: 1px solid #e5c07b;
    color: #e5c07b;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.15s;
    letter-spacing: 0.5px;
}

.debug-3d-open-inspect-btn:hover {
    background: #e5c07b;
    color: #121417;
    box-shadow: 0 0 8px rgba(229, 192, 123, 0.5);
}

/* ==================== 3D TACTICAL INSPECT MODAL ==================== */
.debug-3d-modal-box {
    max-width: 820px;
    width: 95vw;
    background: #11141a;
    border: 2px solid #3b4252;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.debug-3d-modal-header {
    background: #181d26;
    border-bottom: 1px solid #2e3440;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debug-3d-modal-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.debug-3d-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #eceff4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.debug-3d-modal-sub {
    font-size: 11px;
    color: #8892b0;
    font-family: monospace;
}

.debug-3d-modal-stage {
    width: 100%;
    height: 420px;
    background: radial-gradient(circle at 50% 45%, #1c2635 0%, #0a0d12 100%);
    position: relative;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.debug-3d-modal-stage:active {
    cursor: grabbing;
}

.debug-3d-modal-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.debug-3d-modal-hints {
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 11px;
    color: #7b889b;
    background: rgba(14, 17, 23, 0.75);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #28303d;
    pointer-events: none;
}

.debug-3d-modal-toolbar {
    background: #151922;
    border-top: 1px solid #2a313d;
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.debug-3d-tools-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.debug-3d-tools-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.debug-3d-tool-btn {
    background: #202633;
    border: 1px solid #3b4556;
    color: #d8dee9;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.debug-3d-tool-btn:hover {
    background: #2e3848;
    border-color: #88c0d0;
    color: #eceff4;
}

.debug-3d-tool-btn.active {
    background: #e5c07b;
    border-color: #e5c07b;
    color: #121417;
    font-weight: 700;
}

.debug-3d-modal-footer {
    background: #101318;
    border-top: 1px solid #242a35;
    padding: 12px 18px;
    font-size: 11px;
    color: #8892b0;
    line-height: 1.4;
}

/* ==================== ITEM CHARACTERISTICS EDITOR MODAL ==================== */
.debug-btn-edit {
    background: #2b251f;
    border-color: #594433;
    color: #e5c07b;
}

.debug-btn-edit:hover {
    background: #e5c07b;
    color: #121417;
    border-color: #e5c07b;
}

.debug-edit-modal-box {
    max-width: 680px;
    width: 95vw;
    max-height: 90vh;
    background: #11141a;
    border: 2px solid #3b4252;
    border-left: 5px solid #e5c07b;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.debug-edit-header {
    background: #151922;
    border-bottom: 1px solid #2b3342;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.debug-edit-icon {
    width: 48px;
    height: 48px;
    background: #1e2531;
    border: 1px solid #3b4556;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.debug-edit-icon svg {
    max-width: 90%;
    max-height: 90%;
}

.debug-edit-title-group {
    flex: 1;
}

.debug-edit-title {
    font-size: 14px;
    color: #eceff4;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.debug-edit-sub {
    font-size: 11px;
    color: #8892b0;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.debug-edit-sub code {
    background: #0d0f13;
    padding: 2px 6px;
    border-radius: 3px;
    color: #88c0d0;
    font-size: 10px;
}

.debug-edit-modified-tag {
    background: rgba(208, 135, 112, 0.2);
    border: 1px solid #d08770;
    color: #d08770;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
}

.debug-edit-default-tag {
    background: rgba(163, 190, 140, 0.15);
    border: 1px solid rgba(163, 190, 140, 0.5);
    color: #a3be8c;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
}

.debug-edit-form {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.debug-edit-body {
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(90vh - 140px);
}

.debug-edit-section {
    background: #161b24;
    border: 1px solid #293240;
    border-radius: 4px;
    padding: 12px 14px;
}

.debug-edit-section-title {
    font-size: 11px;
    font-weight: 800;
    color: #d08770;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #232a37;
    padding-bottom: 4px;
}

.debug-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.debug-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.debug-field-label {
    font-size: 10px;
    font-weight: 700;
    color: #8892b0;
    text-transform: uppercase;
}

.debug-input {
    background: #0d0f13;
    border: 1px solid #3b4252;
    color: #eceff4;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
}

.debug-input:focus {
    border-color: #e5c07b;
    box-shadow: 0 0 5px rgba(229, 192, 123, 0.4);
}

.debug-textarea {
    background: #0d0f13;
    border: 1px solid #3b4252;
    color: #eceff4;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 11px;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

.debug-textarea:focus {
    border-color: #e5c07b;
    box-shadow: 0 0 5px rgba(229, 192, 123, 0.4);
}

.debug-edit-footer {
    background: #151922;
    border-top: 1px solid #2b3342;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.debug-edit-footer-left {
    display: flex;
    gap: 8px;
}

.debug-edit-footer-right {
    display: flex;
    gap: 8px;
}

.debug-btn-save {
    background: #2a3d24 !important;
    border-color: #4f7344 !important;
    color: #a3be8c !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
}

.debug-btn-save:hover {
    background: #a3be8c !important;
    color: #121417 !important;
}

