/* Tarkov Vibe - PMC 3D Visual Card, 3D Weapon Switcher, Character Skills & Health/Medical Stylesheet */
.pmc-visual-card {
    background: linear-gradient(180deg, #151921 0%, #0d1014 100%);
    border: 2px solid #3c3427;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.85), 0 6px 20px rgba(0,0,0,0.6);
    padding: 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow-y: auto;
}

.pmc-dogtag-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #252830 0%, #15171d 100%);
    border: 1px solid #474f5d;
    border-left: 4px solid #d4af37;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.dogtag-emblem {
    font-size: 26px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.dogtag-callsign {
    font-family: 'Teko', sans-serif;
    font-size: 20px;
    letter-spacing: 1.2px;
    color: #fff;
    line-height: 1;
}

.dogtag-faction {
    font-size: 11px;
    color: #d4af37;
    font-weight: 700;
    margin-top: 2px;
}

.dogtag-sn {
    font-size: 9px;
    color: #737c8c;
    font-family: monospace;
}

.pmc-3d-canvas-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle, rgba(35,42,32,0.45) 0%, rgba(13,16,20,0.95) 80%);
    border: 1px solid #3c3427;
    border-radius: 4px;
    padding: 8px;
    gap: 8px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    position: relative;
    user-select: none;
}

.pmc-3d-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 5px;
}

.badge-3d {
    font-size: 10px;
    font-weight: 700;
    color: #e5c07b;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-3d::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #528d44;
    border-radius: 50%;
    box-shadow: 0 0 8px #528d44;
}

.pmc-3d-actions {
    display: flex;
    gap: 5px;
}

.btn-3d-tool {
    background: #1e242d;
    border: 1px solid #3c4438;
    color: #abb2bf;
    border-radius: 3px;
    padding: 2px 7px;
    font-size: 10px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-3d-tool:hover {
    background: #2a333f;
    color: #e5c07b;
    border-color: #e5c07b;
}

.pmc-3d-container {
    width: 100%;
    height: 310px;
    position: relative;
    cursor: grab;
    touch-action: none;
    overflow: hidden;
    border-radius: 4px;
}

.pmc-3d-container:active {
    cursor: grabbing;
}

.pmc-3d-hint {
    font-size: 10px;
    color: #7f8c8d;
    letter-spacing: 0.5px;
    text-align: center;
}

.pmc-loadout-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}

.loadout-tag {
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 3px;
    background: #13171d;
    border: 1px solid #282f3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.loadout-tag.equipped {
    color: #e5c07b;
    border-color: rgba(229,192,123,0.4);
    background: rgba(229,192,123,0.06);
    font-weight: bold;
}

.loadout-tag.empty {
    color: #556274;
    font-style: italic;
}

.pmc-stats-subcard {
    background: #101318;
    border: 1px solid #2d261b;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
}

.stat-subcard-title {
    font-family: 'Teko', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    color: #d4af37;
    border-bottom: 1px solid #3c3427;
    padding-bottom: 2px;
    margin-bottom: 4px;
}

.pmc-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 4px;
    color: #cbd5e1;
}

/* ==================== PMC 3D WEAPON SWITCHER ==================== */
.pmc-weapon-switcher {
    margin: 8px 0;
    padding: 8px 10px;
    background: #11141a;
    border: 1px solid #28303d;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.switcher-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #8f9ba8;
    text-transform: uppercase;
}

.switcher-btn-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.pmc-wpn-btn {
    background: #181d24;
    border: 1px solid #343c4a;
    color: #c8d0d8;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 3px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.pmc-wpn-btn:hover {
    background: #232a35;
    border-color: #e5c07b;
    color: #fff;
}

.pmc-wpn-btn.active {
    background: linear-gradient(90deg, #2a2517 0%, #1e1e1a 100%);
    border-color: #e5c07b;
    color: #e5c07b;
    box-shadow: 0 0 8px rgba(229, 192, 123, 0.35);
}

.pmc-wpn-btn.empty {
    opacity: 0.6;
    color: #6c7887;
}

.pmc-wpn-btn .key-badge {
    background: #252b36;
    border: 1px solid #434c5e;
    color: #d8dee9;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 2px;
}

.pmc-wpn-btn.active .key-badge {
    background: #e5c07b;
    color: #121417;
    border-color: #ffe680;
}

/* ==================== SUB-TAB 2: CHARACTER & SKILLS (1 / 3 PROPORTIONS) ==================== */
.char-subtab-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
    width: 100%;
    height: calc(100% - 60px);
}

.char-col-left {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
}

.char-col-skills {
    flex: 3;
    min-width: 500px;
}

.skills-manager-panel {
    background: linear-gradient(180deg, #151921 0%, #0d1014 100%);
    border: 2px solid #3c3427;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.85), 0 6px 20px rgba(0,0,0,0.6);
    padding: 14px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    overflow-y: auto;
}

.skills-header-bar {
    border-bottom: 2px solid #3c3427;
    padding-bottom: 6px;
}

.skills-sub-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.skill-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.skill-nav-btn {
    background: #14171d;
    border: 1px solid #3c3427;
    color: #a0a5ad;
    font-family: 'Teko', sans-serif;
    font-size: 17px;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skill-nav-btn:hover {
    color: #e5c07b;
    border-color: #635338;
}

.skill-nav-btn.active {
    color: #e5c07b;
    border-color: #d4af37;
    background: #262118;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.skill-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 12px;
}

.skill-card {
    background: #12151b;
    border: 1px solid #2d333f;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.15s, border-color 0.15s;
}

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

.skill-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-icon-box {
    font-size: 24px;
    background: #1c212a;
    border: 1px solid #343c4a;
    border-radius: 4px;
    padding: 4px 8px;
}

.skill-title-name {
    font-weight: 700;
    color: #fff;
    font-size: 13px;
}

.skill-title-group {
    font-size: 10px;
    color: #8892a0;
}

.skill-level-pill {
    margin-left: auto;
    font-family: 'Teko', sans-serif;
    font-size: 17px;
    color: #d4af37;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    padding: 2px 8px;
    border-radius: 3px;
}

.skill-progress-track {
    height: 8px;
    background: #0a0d11;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #202732;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #f1c40f 100%);
    transition: width 0.3s ease;
}

.skill-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #7e8794;
    margin-top: 3px;
}

.skill-description-text {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

.skill-bonus-footer {
    margin-top: auto;
}

.bonus-badge {
    font-size: 11px;
    color: #4ade80;
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.3);
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    font-weight: 600;
}

/* ==================== SUB-TAB 3: HEALTH & MEDICAL ==================== */
.health-subtab-layout {
    display: flex;
    gap: 18px;
    align-items: stretch;
    width: 100%;
    height: calc(100% - 60px);
}

.health-col-info {
    flex: 1;
    min-width: 260px;
    max-width: 330px;
}

.health-col-doll {
    flex: 1.2;
    min-width: 320px;
}

.health-col-meds {
    flex: 1.2;
    min-width: 320px;
}

.health-info-panel,
.health-doll-panel,
.health-meds-panel {
    background: linear-gradient(180deg, #151921 0%, #0d1014 100%);
    border: 2px solid #3c3427;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.85), 0 6px 20px rgba(0,0,0,0.6);
    padding: 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow-y: auto;
}

.vitals-status-box {
    background: #11141a;
    border: 1px solid #282f3a;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vital-row-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 3px;
}

.vital-row-track {
    height: 9px;
    background: #0b0e12;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #242c38;
}

.vital-row-fill.energy-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    height: 100%;
}

.vital-row-fill.hydro-fill {
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    height: 100%;
}

.health-effects-section,
.health-factors-section {
    background: #11141a;
    border: 1px solid #282f3a;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.panel-subtitle {
    font-family: 'Teko', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    color: #e5c07b;
    border-bottom: 1px solid #3c3427;
    padding-bottom: 2px;
}

.effect-chip {
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.effect-chip.positive {
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.3);
    color: #4ade80;
}

.effect-chip.warning {
    background: rgba(250,204,21,0.1);
    border: 1px solid rgba(250,204,21,0.3);
    color: #facc15;
}

.effect-chip.negative {
    background: rgba(248,113,113,0.15);
    border: 1px solid rgba(248,113,113,0.4);
    color: #f87171;
}

.effect-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.effect-desc {
    font-size: 10px;
    opacity: 0.85;
}

.factor-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 3px;
    color: #cbd5e1;
}

.doll-hp-counter {
    font-size: 14px;
    font-weight: 700;
}

.doll-overall-bar {
    height: 8px;
    background: #0a0d11;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #202732;
}

.doll-overall-fill {
    height: 100%;
    background: linear-gradient(90deg, #528d44 0%, #4ade80 100%);
    transition: width 0.3s ease;
}

.body-parts-grid-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.body-part-card {
    background: #11141a;
    border: 1px solid #262d38;
    border-radius: 4px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.body-part-card.hp-normal {
    border-left: 4px solid #4ade80;
}

.body-part-card.hp-wounded {
    border-left: 4px solid #facc15;
}

.body-part-card.hp-critical {
    border-left: 4px solid #f87171;
}

.body-part-card.hp-blackout {
    border-left: 4px solid #000;
    background: #0a0a0c;
}

.part-header-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
}

.part-status-badge {
    font-size: 10px;
    font-weight: 700;
}

.hp-normal .part-status-badge { color: #4ade80; }
.hp-wounded .part-status-badge { color: #facc15; }
.hp-critical .part-status-badge { color: #f87171; }
.hp-blackout .part-status-badge { color: #888; }

.part-hp-track {
    height: 6px;
    background: #05070a;
    border-radius: 3px;
    overflow: hidden;
}

.hp-normal .part-hp-fill { background: #4ade80; height: 100%; }
.hp-wounded .part-hp-fill { background: #facc15; height: 100%; }
.hp-critical .part-hp-fill { background: #f87171; height: 100%; }
.hp-blackout .part-hp-fill { background: #333; height: 100%; }

.part-hp-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #8b9bb4;
}

.therapist-quick-service {
    background: #11141a;
    border: 1px solid #3c3427;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-note {
    font-size: 10px;
    color: #8b9bb4;
    line-height: 1.3;
}

.stash-meds-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.stash-med-card {
    background: #12151c;
    border: 1px solid #272f3c;
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.med-card-svg {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.med-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
}

.med-card-name {
    font-weight: 700;
    color: #e5c07b;
}

.med-card-loc {
    font-size: 10px;
    color: #8b9bb4;
}

.med-card-uses {
    font-size: 10px;
    color: #cbd5e1;
}

.empty-meds-box {
    text-align: center;
    padding: 30px 15px;
    color: #64748b;
    background: #101318;
    border-radius: 4px;
    border: 1px dashed #262d38;
}

.empty-meds-box .empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.empty-meds-box .empty-title {
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    color: #a0a5ad;
    letter-spacing: 1px;
}

.empty-meds-box p {
    font-size: 11px;
    margin-top: 4px;
}
