/* Compact Equipment Grid - Game Style */
.equipment-compact-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.equipment-compact-item {
    border: 1px solid #333333;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100px;
}

.equipment-header {
    background: #2c2c2c;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.equipment-stats-box {
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.equipment-cost-box {
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a; /* Darker than stats-box */
    border-radius: 0 0 4px 4px;
}

.equipment-compact-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.equipment-compact-label {
    font-size: 11px;
    color: #b0bec5;
    text-align: center;
    font-weight: 600;
}



.equipment-compact-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    align-items: center;
}

.equipment-stat {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    font-size: 12px;
    padding-left: 4px;
    width: 100%;
}

.equipment-stat-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.stat-name {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
}

.stat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
}

.stat-icon {
    font-size: 12px;
}

.stat-label {
    font-size: 10px;
    color: #b0bec5;
}

.input-with-suffix {
    position: relative;
    display: inline-block;
}

.input-suffix {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0bec5;
    font-size: 10px;
    pointer-events: none;
}

.equipment-compact-input {
    width: 70px;
    padding: 5px 20px 5px 5px;
    background: #1e1e1e;
    border: 1px solid #424242;
    border-radius: 4px;
    color: #4fc3f7;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.equipment-compact-input-no-suffix {
    padding: 5px;
    width: 70px;
}

.equipment-compact-input-weapon-crit {
    width: 50px;
    padding: 5px 20px 5px 5px;
}

/* Remove number input arrows */
.equipment-compact-input::-webkit-outer-spin-button,
.equipment-compact-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.equipment-compact-input[type=number] {
    -moz-appearance: textfield;
}

.equipment-compact-input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

.stat-unit {
    font-size: 10px;
    color: #b0bec5;
}

.bonus-input {
    width: 70px;
    padding: 5px 20px 5px 5px;
    background: #1e1e1e;
    border: 1px solid #424242;
    border-radius: 4px;
    color: #4fc3f7;
    text-align: center;
    font-size: 12px;
}

.bonus-input::-webkit-outer-spin-button,
.bonus-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bonus-input[type=number] {
    -moz-appearance: textfield;
}

.bonus-input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

/* Bonuses grid styled like buffs */
/* Top bar: type tabs + total */
.bonus-top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.bonus-top-bar .battle-type-tabs {
    flex: 1;
    margin: 0;
}

/* Total Bonus Bar (bottom) */
.bonus-total-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.total-bonus-label {
    font-size: 11px;
    font-weight: 600;
    color: #b0bec5;
}

.total-bonus-value {
    font-size: 13px;
    font-weight: 700;
    color: #4fc3f7;
}

/* Two-column layout */
.bonus-columns {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 0 8px;
}

.bonus-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bonus-column-header {
    font-size: 10px;
    font-weight: 600;
    color: #b0bec5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 0 4px;
}

/* Compact Toggle Items */
.bonus-item-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: #252525;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bonus-item-toggle:hover {
    background: #2c2c2c;
    border-color: #4a4a4a;
}

.bonus-item-toggle.active {
    background: rgba(79, 195, 247, 0.15);
    border-color: #4fc3f7;
}

.bonus-item-toggle.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #1a1a1a;
}

.bonus-item-toggle.disabled:hover {
    background: #1a1a1a;
    border-color: #3a3a3a;
}

.bonus-name {
    font-size: 11px;
    color: #e0e6ed;
}

.bonus-percent {
    font-size: 11px;
    font-weight: 600;
    color: #4fc3f7;
}

/* Battle Type Tabs */
.battle-type-tabs {
    display: flex;
    gap: 0;
    margin: 6px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #3a3a3a;
}

.battle-type-tab {
    flex: 1;
    padding: 6px 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #b0bec5;
    background: #252525;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid #3a3a3a;
}

.battle-type-tab:last-child {
    border-right: none;
}

.battle-type-tab:hover {
    background: #2c2c2c;
    color: #e0e6ed;
}

.battle-type-tab.active {
    background: #4fc3f7;
    color: #1e1e1e;
}

.bonus-group-spacer {
    height: 15px;
}

/* Dropdown rows */
.bonus-dropdown-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #252525;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
}

.bonus-dropdown-label {
    font-size: 11px;
    color: #e0e6ed;
    min-width: 48px;
    flex-shrink: 0;
}

.bonus-select {
    flex: 1;
    background: #1e1e1e;
    border: 1px solid #424242;
    border-radius: 3px;
    color: #4fc3f7;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    cursor: pointer;
}

.bonus-select:focus {
    outline: none;
    border-color: #4fc3f7;
}

.bonus-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
@import url('https://fonts.googleapis.com/css2?family=Saira:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400;500;600;700&display=swap');



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Saira', sans-serif;
    background-color: #121212; /* Dark background like in the game */
    color: #e0e6ed;
    min-height: 100vh;
}

/* Apply 110% zoom only on larger desktop screens (wider than 1024px) */
@media (min-width: 1025px) {
    body {
        zoom: 1.1;
    }
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.panel {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2c2c2c;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.right-panel {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2c2c2c;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.section {
    margin-bottom: 12px;
    background: #252525; /* Slightly lighter than panel */
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #333333;
}

.section h2 {
    color: #4fc3f7; /* Light blue like in the game UI */
    margin-bottom: 8px;
    font-size: 15px;
    border-bottom: 2px solid #333333;
    padding-bottom: 4px;
}

.character-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.character-box {
    background: #2c2c2c;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.character-level-box {
    grid-row: span 2;
    flex-direction: column;
    justify-content: center;
}

.character-level {
    font-size: 16px;
    font-weight: 700;
    color: #4fc3f7;
}

.character-level-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.character-box-label {
    font-size: 13px;
    color: #e0e6ed;
    font-weight: 500;
    white-space: nowrap;
}

.character-box-value {
    font-size: 14px;
    font-weight: 600;
    color: #e0e6ed;
}

.character-box-input {
    display: flex;
    align-items: center;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 5px 10px;
    background: #2c2c2c; /* Dark gray like game UI elements */
    border-radius: 4px;
    border-left: 3px solid transparent;
    font-size: 13px;
}

/* Color coding skills to match game UI */
.skill-item.attack { border-left-color: #ff6b6b; }
.skill-item.precision { border-left-color: #ffa726; }
.skill-item.crit { border-left-color: #ab47bc; }
.skill-item.armor { border-left-color: #66bb6a; }
.skill-item.dodge { border-left-color: #42a5f5; }
.skill-item.health { border-left-color: #26c6da; }
.skill-item.loot { border-left-color: #ffee58; }
.skill-item.hunger { border-left-color: #8d6e63; }
.skill-item.companies { border-left-color: #444444; }
.skill-item.management { border-left-color: #78909c; }
.skill-item.entrepreneurship { border-left-color: #9c27b0; }
.skill-item.energy { border-left-color: #f9a825; }
.skill-item.production { border-left-color: #5e35b1; }

.skill-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.skill-bonus {
    padding: 0 3px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.skill-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.skill-input {
    width: 60px;
    padding: 4px 8px;
    background: #1e1e1e;
    border: 1px solid #424242;
    border-radius: 4px;
    color: #e0e6ed;
    text-align: center;
}

.skill-input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

/* Skill Controls Styling */
.skill-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.skill-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #2c2c2c;
    border: 1px solid #424242;
    color: #e0e6ed;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.skill-btn:hover {
    background: #3a3a3a;
    border-color: #4fc3f7;
}

.skill-btn:active {
    transform: scale(0.95);
    background: #1e1e1e;
}

.skill-btn.minus {
    color: #ff6b6b;
}

.skill-btn.minus:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.skill-btn.plus {
    color: #4fc3f7;
}

.skills-summary {
    font-size: 15px;
    color: #8a9bb5;
    font-weight: 400;
}

.skill-value {
    min-width: 22px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #e0e6ed;
}

.equipment-subsection {
    margin-bottom: 20px;
}

.equipment-subsection h3 {
    color: #b0bec5;
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #333333;
}

.equipment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.equipment-item {
    background: #2c2c2c;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333333;
}

.equipment-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #b0bec5;
}

.equipment-icon {
    font-size: 16px;
}

.equipment-input {
    width: 100%;
    padding: 6px 8px;
    background: #1e1e1e;
    border: 1px solid #424242;
    border-radius: 4px;
    color: #e0e6ed;
}

.buffs-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.buff-item {
    border: 1px solid #333333;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buff-header {
    background: #2c2c2c;
    padding: 6px 5px;
    text-align: center;
    flex: 1;
}

.buff-stats-box {
    padding: 15px 5px;
    text-align: center;
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.buff-header:hover {
    background: #3a3a3a;
}

.buff-rarity-green.active {
    background: rgba(76, 175, 80, 0.2);
}

.buff-item:has(.buff-rarity-green.active) {
    border-color: #4caf50;
}

.buff-rarity-green.active + .buff-stats-box {
    background: rgba(76, 175, 80, 0.1);
}

.buff-rarity-green.active ~ .buff-stats-box .buff-value {
    color: #81c784;
}

.buff-rarity-blue.active {
    background: rgba(33, 150, 243, 0.2);
}

.buff-item:has(.buff-rarity-blue.active) {
    border-color: #2196f3;
}

.buff-rarity-blue.active + .buff-stats-box {
    background: rgba(33, 150, 243, 0.1);
}

.buff-rarity-blue.active ~ .buff-stats-box .buff-value {
    color: #64b5f6;
}

.buff-rarity-purple.active {
    background: rgba(156, 39, 176, 0.2);
}

.buff-item:has(.buff-rarity-purple.active) {
    border-color: #9c27b0;
}

.buff-rarity-purple.active + .buff-stats-box {
    background: rgba(156, 39, 176, 0.1);
}

.buff-rarity-purple.active ~ .buff-stats-box .buff-value {
    color: #ba68c8;
}

.buff-label {
    font-size: 11px;
    color: #b0bec5;
    font-weight: 500;
}

.buff-value {
    font-weight: 600;
    color: #e0e6ed;
    font-size: 11px;
}

.buff-stats-rarity-green {
    background: rgba(76, 175, 80, 0.1);
}

.buff-stats-rarity-green .buff-value {
    color: #81c784;
}

.buff-stats-rarity-blue {
    background: rgba(33, 150, 243, 0.1);
}

.buff-stats-rarity-blue .buff-value {
    color: #64b5f6;
}

.buff-stats-rarity-purple {
    background: rgba(156, 39, 176, 0.1);
}

.buff-stats-rarity-purple .buff-value {
    color: #ba68c8;
}

.buff-cost-box {
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 0 0 4px 4px;
}

.buff-cost-rarity-green {
    background: rgba(76, 175, 80, 0.08);
}

.buff-cost-rarity-blue {
    background: rgba(33, 150, 243, 0.08);
}

.buff-cost-rarity-purple {
    background: rgba(156, 39, 176, 0.08);
}

.simulation-controls {
    background: #252525;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #333333;
    flex-shrink: 0;
}

.controls-layout {
    display: flex;
    gap: 6px;
}

.controls-left {
    flex: 1;
    display: flex;
    gap: 6px;
}

.controls-left .control-compact-item {
    flex: 1;
}

.controls-right {
    flex: 1;
    display: flex;
}

.controls-right .simulate-btn {
    width: 100%;
    height: 100%;
}

.control-compact-item {
    border: 1px solid #333333;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.control-header {
    background: #2c2c2c;
    padding: 6px 3px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-label {
    font-size: 10px;
    color: #b0bec5;
    font-weight: 600;
}

.control-stats-box {
    padding: 8px 3px;
    text-align: center;
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.control-stats-vertical {
    align-items: flex-start;
    padding-left: 8px;
}

.radio-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    flex-wrap: wrap;
}

.radio-compact input[type="radio"] {
    accent-color: #4fc3f7;
}

.radio-compact label {
    color: #e0e6ed;
    font-size: 11px;
    cursor: pointer;
}

.control-input {
    width: 70px;
    padding: 6px 8px;
    background: #1e1e1e;
    border: 1px solid #424242;
    border-radius: 4px;
    color: #4fc3f7;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.control-input::-webkit-outer-spin-button,
.control-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.control-input[type=number] {
    -moz-appearance: textfield;
}

.control-input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

.checkbox-large {
    width: 20px;
    height: 20px;
    accent-color: #4fc3f7;
    cursor: pointer;
}

.control-input-inline {
    width: 55px;
    padding: 3px 5px;
    background: #1e1e1e;
    border: 1px solid #424242;
    border-radius: 4px;
    color: #4fc3f7;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    margin: 0 3px;
}

.control-input-inline::-webkit-outer-spin-button,
.control-input-inline::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.control-input-inline[type=number] {
    -moz-appearance: textfield;
}

.control-input-inline:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

.control-input-inline::placeholder {
    color: #7a8a99;
    font-size: 10px;
}



.control-group {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: #4fc3f7;
    font-weight: 500;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"] {
    accent-color: #4fc3f7;
}

.battles-input {
    width: 100px;
    padding: 8px;
    background: #1e1e1e;
    border: 1px solid #424242;
    border-radius: 4px;
    color: #e0e6ed;
}

.simulate-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4fc3f7, #0288d1);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.simulate-btn:hover {
    background: linear-gradient(135deg, #29b6f6, #0277bd);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

/* Current Stats Display */
.current-stats {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #1e1e1e;
    border-radius: 6px;
    justify-content: space-between;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    background: #2c2c2c;
    border-radius: 4px;
    font-size: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.stat-row:hover {
    background: #3a3a3a;
}

.stat-row:hover .stat-tooltip {
    display: block;
}

.stat-row .stat-icon {
    font-size: 14px;
}

.stat-row .stat-name {
    color: #b0bec5;
    font-size: 11px;
}

.stat-row .stat-value {
    color: #4fc3f7;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
    font-size: 12px;
}

.stat-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: #1e1e1e;
    border: 1px solid #4fc3f7;
    border-radius: 6px;
    padding: 12px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.stat-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #4fc3f7;
}

.tooltip-title {
    font-size: 14px;
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 8px;
    border-bottom: 1px solid #333333;
    padding-bottom: 4px;
}

.tooltip-description {
    font-size: 11px;
    color: #b0bec5;
    margin-bottom: 8px;
}

.tooltip-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.tooltip-label {
    color: #b0bec5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tooltip-value {
    color: #4fc3f7;
    font-weight: 600;
}

.tooltip-total {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #333333;
    font-weight: 600;
}

.results {
    background: #252525;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #333333;
    flex-grow: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent results overflow */
    min-height: 0; /* Allow content to scroll */
}

.results h3 {
    color: #4fc3f7;
    margin-bottom: 12px;
    font-size: 15px;
    border-bottom: 2px solid #333333;
    padding-bottom: 6px;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.results-content {
    font-family: 'Kode Mono', monospace;
    white-space: pre-line;
    line-height: 1.3;
    color: #b0bec5;
    flex-grow: 1;
    overflow: hidden; /* Contain the content */
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow content to scroll */
    font-size: 12px;
}

.damage-summary {
    flex-shrink: 0; /* Prevent summary from shrinking */
    font-size: 12px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.summary-card {
    background: #252525;
    border: 1px solid #333333;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.summary-card-header {
    background: #2c2c2c;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #b0bec5;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #333333;
}

.summary-icon {
    font-size: 16px;
}

.summary-card-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-stat-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #333333;
    margin-bottom: 2px;
}

.summary-stat-main .stat-label {
    font-size: 12px;
    color: #b0bec5;
    font-weight: 500;
}

.summary-stat-main .stat-value-large {
    font-size: 20px;
    font-weight: 700;
    color: #4fc3f7;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.summary-stat .stat-label {
    font-size: 11px;
    color: #90a4ae;
}

.summary-stat .stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #e0e6ed;
}

.summary-stat-inline {
    font-size: 11px;
    color: #90a4ae;
    padding: 2px 0;
    text-align: center;
}

.stat-value-bold {
    font-weight: 600;
    color: #e0e6ed;
    font-size: 13px;
}

.summary-divider {
    height: 1px;
    background: #333333;
    margin: 6px 0;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.cost-row .cost-label {
    font-size: 11px;
    color: #90a4ae;
}

.cost-row .cost-value {
    font-size: 12px;
    font-weight: 600;
    color: #e0e6ed;
}

.cost-negative {
    color: #f44336 !important;
}

.cost-bounty {
    color: #4caf50 !important;
}

.cost-total {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 2px solid #333333;
}

.cost-total .cost-label {
    font-size: 12px;
    font-weight: 600;
    color: #ffd700;
}

.cost-total .cost-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
}

.hit-log {
    overflow-y: auto; /* Enable vertical scrolling */
    font-size: 11px;
    flex-grow: 1;
    padding-right: 8px; /* Space for scrollbar */
}

/* Scrollbar styling */
.hit-log::-webkit-scrollbar {
    width: 8px;
}

.hit-log::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

.hit-log::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 4px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333333;
}

.header h1 {
    color: #4fc3f7;
    font-size: 28px;
    margin-bottom: 5px;
}

.header p {
    color: #b0bec5;
    font-size: 14px;
}

/* Special color indicators for different stats, similar to the game */
.attack-value { color: #ff5252; }
.precision-value { color: #ffa726; }
.crit-chance-value { color: #e040fb; }
.crit-damage-value { color: #e040fb; }
.armor-value { color: #66bb6a; }
.dodge-value { color: #42a5f5; }
.health-value { color: #26c6da; }
.loot-value { color: #ffee58; }

.nice-link {
    color: #4fc3f7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nice-link:hover {
    color: #29b6f6;
}



.reset-skills {
    text-align: center;
    padding: 4px 12px;
    background: #2c2c2c;
    border: 1px solid #424242;
    border-radius: 4px;
    color: #e0e6ed;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-skills:hover {
    background: #3a3a3a;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.reset-container {
    display: flex;
    justify-content: flex-end;
}

/* Builds Bar */
.builds-bar {
    width: 500px;
    margin: 0 auto;
    padding: 10px 20px;
    background: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #2c2c2c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.builds-actions {
    display: flex;
    gap: 6px;
}

.builds-label {
    font-size: 13px;
    font-weight: 600;
    color: #4fc3f7;
    white-space: nowrap;
}

.builds-select {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    background: #1e1e1e;
    border: 1px solid #424242;
    border-radius: 4px;
    color: #4fc3f7;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Saira', sans-serif;
    cursor: pointer;
}

.builds-select:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

.builds-btn {
    padding: 6px 10px;
    border: 1px solid #424242;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Saira', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.builds-btn-save {
    background: #2c2c2c;
    color: #66bb6a;
    border-color: #66bb6a;
}

.builds-btn-save:hover {
    background: rgba(102, 187, 106, 0.15);
}

.builds-btn-create {
    background: #2c2c2c;
    color: #4fc3f7;
    border-color: #4fc3f7;
}

.builds-btn-create:hover {
    background: rgba(79, 195, 247, 0.15);
}

.builds-btn-delete {
    background: #2c2c2c;
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.builds-btn-delete:hover {
    background: rgba(255, 107, 107, 0.15);
}

/* Main Tabs */
.main-tabs {
    display: flex;
    max-width: 500px;
    margin: 8px auto 8px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #3a3a3a;
}

.main-tab {
    flex: 1;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #b0bec5;
    background: #252525;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid #3a3a3a;
}

.main-tab:last-child {
    border-right: none;
}

.main-tab:hover {
    background: #2c2c2c;
    color: #e0e6ed;
}

.main-tab.active {
    background: #4fc3f7;
    color: #1e1e1e;
}

/* Compare View */
.compare-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.compare-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 500px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 10px 20px;
    border: 1px solid #2c2c2c;
}

.compare-select {
    flex: 1;
    min-width: 0;
}

.compare-vs {
    color: #b0bec5;
    font-size: 12px;
    font-weight: 600;
}

.compare-run-btn {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    min-height: auto;
    white-space: nowrap;
}

.compare-results {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: center;
}

.compare-column {
    flex: 0 0 auto;
    width: 640px;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #2c2c2c;
}

.compare-column-name {
    color: #4fc3f7;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333333;
    text-align: center;
}
