body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 20px;
}

.combat-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.unit-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.unit-block {
    flex: 1;
}

.unit-card {
    background: #f9f9f9;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
}

.unit-card h2 {
    margin-top: 0;
    background: #eee;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 16px;
}

.unit-section {
    margin-top: 12px;
    padding-top: 6px;
    border-top: 1px solid #ccc;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 6px;
}

.unit-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 6px 0;
}

.unit-row.full {
    grid-template-columns: 1fr;
}

.unit-row label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.unit-row input,
.unit-row select {
    width: 100%;
    height: 28px;
    font-size: 14px;
    padding: 4px 6px;
    box-sizing: border-box;
}

/* Button */
button {
    margin-top: 10px;
    padding: 8px 15px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Combat results */
.combat-result {
    margin-top: 30px;
}

.combat-scores {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.score-block {
    flex: 1;
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
}

.break-test {
    background: #fff3cd;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
}

.attack-profiles {
    margin-top: 30px;
}

.profile-block {
    background: #f1f1f1;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
}

.char-block {
    margin-top: 15px;
    background: #e9ecef;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

label {
    margin-right: 10px;
}

input[name$="_models"],
select[name$="_width"],
select[name$="_os"],
select[name$="_ds"],
select[name$="_str"],
select[name$="_res"],
select[name$="_agi"],
select[name$="_att"],
select[name$="_ap"],
select[name$="_arm"],
select[name$="_height"],
select[name$="_disc"],
select[name$="_aegis"] {
    max-width: 60px !important;
    text-align: center;
    font-size: 13px;
    height: 26px;
}

/* Foldable Section Behavior */
.foldable {
  display: none;
}
.foldable.open {
  display: block;
}
.toggle-header {
  cursor: pointer;
  color: #007bff;
}

input[type="checkbox"] {
  margin-left: 6px;
}


