/* ============================================================
   SHADOWSKINGS — TACTICAL COMBAT PANEL (SHADOWMERE THEME)
   Supports: Troops, Training, Multi‑Select Operations, Reports
   ============================================================ */

/* ============================================================
   PANEL ROOT — MUST SIT ABOVE MAP OVERLAY
   ============================================================ */
.tactical-combat-panel {
    position: relative;
    z-index: 9999; /* ensures panel stays above map overlay */
    padding: 24px;
    color: #e6d9ff;
    background: radial-gradient(circle at top left, #1a0f2f 0, #090512 55%, #05030a 100%);
}

/* HEADER */
.tactical-combat-panel .tactical-header h1 {
    margin: 0;
    font-size: 30px;
    color: #f3eaff;
    text-shadow: 0 0 18px rgba(160, 110, 255, 0.7);
}

.tactical-combat-panel .tactical-header .subheader {
    margin-top: 6px;
    font-size: 15px;
    color: #cbb6ff;
    opacity: 0.85;
}

/* ============================================================
   TAB BAR
   ============================================================ */
.tactical-combat-panel .tactical-tabs {
    margin-top: 28px;
    display: flex;
    gap: 14px;
}

.tactical-combat-panel .tactical-tab {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    background: rgba(25, 10, 45, 0.6);
    border: 1px solid rgba(160, 120, 255, 0.25);
    color: #d8c8ff;
    transition: 0.2s ease;
    user-select: none;
}

.tactical-combat-panel .tactical-tab:hover {
    background: rgba(40, 20, 70, 0.8);
    border-color: rgba(200, 150, 255, 0.4);
}

.tactical-combat-panel .tactical-tab.active {
    background: rgba(70, 30, 140, 0.9);
    border-color: rgba(220, 170, 255, 0.7);
    color: #f3eaff;
    box-shadow:
        inset 0 0 14px rgba(180, 110, 255, 0.45),
        0 0 14px rgba(150, 80, 255, 0.5);
}

/* ============================================================
   TAB CONTENT WRAPPER
   ============================================================ */
.tactical-content {
    margin-top: 26px;
}

.tactical-tab-content {
    display: none;
    padding: 20px;
    background: rgba(15, 8, 30, 0.75);
    border: 1px solid rgba(160, 120, 255, 0.25);
    border-radius: 10px;
    min-height: 420px;
    box-shadow:
        inset 0 0 18px rgba(120, 60, 200, 0.25),
        0 0 18px rgba(80, 40, 150, 0.25);
}

.tactical-tab-content.active {
    display: block;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.tac-section-header h2 {
    margin: 0;
    font-size: 24px;
    color: #e6d9ff;
    text-shadow: 0 0 12px rgba(150, 80, 255, 0.6);
}

.tac-section-header .tac-race-label,
.tac-section-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #cbb6ff;
    opacity: 0.85;
}

/* ============================================================
   TROOPS TAB — LIST LAYOUT
   ============================================================ */
.tac-troops-grid {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tac-troop-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(25, 10, 45, 0.85);
    border: 1px solid rgba(160, 120, 255, 0.35);
    box-shadow:
        inset 0 0 14px rgba(120, 60, 200, 0.35),
        0 0 14px rgba(80, 40, 150, 0.35);
}

.tac-troop-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tac-troop-name {
    font-size: 18px;
    color: #f3eaff;
}

.tac-troop-tier {
    font-size: 14px;
    color: #cbb6ff;
    opacity: 0.9;
}

.tac-troop-category {
    font-size: 13px;
    color: #bfa7ff;
    opacity: 0.9;
}

.tac-troop-stats {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #e8d9ff;
}

.tac-troop-costs {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #e8d9ff;
}

/* ============================================================
   TRAINING TAB
   ============================================================ */

.tactical-training-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tactical-training-panel .training-header h2 {
    margin: 0;
    font-size: 26px;
    color: #d9c4ff;
    text-shadow: 0 0 12px rgba(150, 80, 255, 0.5);
}

.tactical-training-panel .training-header p {
    margin: 4px 0 0 0;
    opacity: 0.75;
    font-size: 15px;
    color: #bfa7ff;
}

.tactical-training-panel .training-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

.tactical-training-panel .training-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tactical-training-panel .training-details {
    background: rgba(20, 10, 40, 0.7);
    border: 1px solid rgba(160, 120, 255, 0.25);
    border-radius: 10px;
    padding: 20px;
    min-height: 300px;
    box-shadow:
        inset 0 0 14px rgba(120, 60, 200, 0.25),
        0 0 14px rgba(80, 40, 150, 0.25);
}

.training-details-empty {
    opacity: 0.7;
    font-size: 15px;
    color: #cbb6ff;
    text-align: center;
    margin-top: 40px;
}

.training-selected-header {
    background: rgba(30, 15, 55, 0.85);
    border: 1px solid rgba(180, 140, 255, 0.35);
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #f3eaff;
    text-align: center;
    box-shadow:
        inset 0 0 14px rgba(150, 80, 255, 0.35),
        0 0 14px rgba(120, 60, 220, 0.35);
}

.training-list-item {
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(25, 10, 45, 0.75);
    border: 1px solid rgba(160, 120, 255, 0.25);
    color: #e6d9ff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow:
        inset 0 0 10px rgba(120, 60, 200, 0.25),
        0 0 10px rgba(80, 40, 150, 0.25);
}

.training-list-item:hover {
    background: rgba(40, 20, 70, 0.9);
    border-color: rgba(200, 150, 255, 0.45);
    box-shadow:
        inset 0 0 14px rgba(150, 80, 255, 0.35),
        0 0 14px rgba(120, 60, 220, 0.45);
}

.training-details-body {
    padding: 10px;
    color: #e6d9ff;
}

.training-details-section {
    background: rgba(20, 10, 40, 0.7);
    border: 1px solid rgba(160, 120, 255, 0.25);
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    box-shadow:
        inset 0 0 12px rgba(120, 60, 200, 0.25),
        0 0 12px rgba(80, 40, 150, 0.25);
}

.training-details-section h3,
.training-details-section h4 {
    margin: 0 0 8px 0;
    color: #e6d9ff;
    text-shadow: 0 0 10px rgba(150, 80, 255, 0.5);
}

.train-btn-primary {
    margin-top: 10px;
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    color: #f3eaff;
    background: linear-gradient(
        to bottom right,
        rgba(70, 30, 140, 0.9),
        rgba(40, 15, 90, 0.9)
    );
    border: 1px solid rgba(200, 150, 255, 0.45);
    box-shadow:
        inset 0 0 16px rgba(160, 90, 255, 0.35),
        0 0 16px rgba(120, 60, 220, 0.45);
    transition: 0.2s ease;
}

.train-btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        to bottom right,
        rgba(90, 40, 170, 1),
        rgba(50, 20, 110, 1)
    );
    border-color: rgba(220, 170, 255, 0.7);
    box-shadow:
        inset 0 0 20px rgba(180, 110, 255, 0.45),
        0 0 20px rgba(150, 80, 255, 0.6);
}

/* ============================================================
   OPERATIONS TAB — MULTI‑SELECT + TRAVEL TIME
   ============================================================ */

/* ⭐ FIXED CHECKBOX + HERO ROW ALIGNMENT ⭐ */
.deployment-troop-item {
    display: grid;
    grid-template-columns: 28px 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(25, 10, 45, 0.7);
    border: 1px solid rgba(160, 120, 255, 0.25);
    border-radius: 8px;
    margin-bottom: 10px;
}

.deployment-troop-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.deployment-troop-name {
    font-size: 16px;
    color: #f3eaff;
    white-space: nowrap;
}

.deployment-troop-meta {
    font-size: 13px;
    color: #cbb6ff;
    opacity: 0.85;
}

.deployment-troop-qty {
    font-size: 13px;
    color: #ffd27f;
}

.ops-stack-block {
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(25, 10, 45, 0.7);
    border-radius: 6px;
}

.ops-stack-block h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #ffd27f;
}

.ops-stack-block input[type="number"] {
    width: 80px;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(30, 15, 55, 0.8);
    border: 1px solid rgba(160, 120, 255, 0.3);
    color: #e6d9ff;
    font-size: 13px;
}

.ops-stack-block input[type="number"]:focus {
    outline: none;
    border-color: rgba(200, 150, 255, 0.6);
    box-shadow: 0 0 8px rgba(150, 80, 255, 0.4);
}

/* ============================================================
   REPORTS TAB — ACTIVE MISSION CARDS
   ============================================================ */

#tac-reports-root {
    margin-top: 16px;
}

.report-card {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(25, 10, 45, 0.75);
    border: 1px solid rgba(160, 120, 255, 0.25);
    box-shadow:
        inset 0 0 12px rgba(120, 60, 200, 0.25),
        0 0 12px rgba(80, 40, 150, 0.25);
}

.report-title {
    font-size: 18px;
    color: #f3eaff;
    margin-bottom: 4px;
}

.report-status {
    font-size: 14px;
    color: #cbb6ff;
    margin-bottom: 4px;
}

.report-timer {
    font-size: 14px;
    color: #ffd27f;
    margin-bottom: 8px;
}

.report-stacks {
    font-size: 13px;
    color: #e6d9ff;
}
