.character-sheet-container .stat-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 1px 5px;
    min-height: 24px;
    border-bottom-width: 2px;
    border-bottom-color: rgba(0, 0, 0, 0.52);
}

/* Character Name Field Specific Styling */
#CharacterNameField {
    min-width: 250px;
    height: 32px;
    font-size: 14px;
    color: rgb(255, 255, 255);
    background-color: rgba(255, 255, 255, 0.1);
    border-width: 1px;
    border-color: rgba(150, 150, 150, 0.5);
    border-radius: 5px;
    padding-left: 8px;
    padding-right: 8px;
}

#CharacterNameField > .unity-base-field__input {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgb(255, 255, 255);
    border-width: 0;
    margin: 0;
    padding-left: 8px;
    padding-right: 8px;
    height: 100%;
    line-height: 30px;
}

.stat-row .stat-input {
    min-width: 80px;
    max-width: 120px;
    font-size: 14px;
    -unity-text-align: middle-right;
    border-width: 1px;
    color: rgb(255, 255, 255);
    background-color: rgba(255, 255, 255, 0.1);
    height: 24px;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
}

.stat-row .stat-input > .unity-base-field__input {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgb(255, 255, 255);
    border-width: 0;
    margin: 0;
    padding: 0;
    padding-right: 4px;
    height: 100%;
    line-height: 20px;
}

.stat-label {
    font-size: 14px;
    color: rgb(220, 220, 220);
    flex-grow: 1;
    line-height: 22px;
    margin-top: 0;
    margin-bottom: 0;
}

.stat-row .stat-input.editable {
    background-color: rgb(255, 255, 255);
    border-color: rgb(150, 150, 150);
}

.stat-row .stat-input.editable > .unity-base-field__input {
    color: rgb(30, 30, 30);
}

.stat-row .stat-input.readonly {
    background-color: rgb(220, 220, 220);
    border-color: rgb(180, 180, 180);
    color: rgb(80, 80, 80);
}

.stat-row .stat-input.readonly > .unity-base-field__input {
    /* color: inherit; */
}

.stat-row .stat-input:focus {
    border-color: rgb(66, 139, 202);
    outline-color: rgb(66, 139, 202);
    outline-width: 1px;
}

.CharacterSheetHeading {
    -unity-font-style: bold;
    font-size: 16px;
    color: rgb(255, 255, 255);
}

.bankField > .unity-label {
    max-width: 50px;
    max-height: none;
}

.MainHeading {
    font-size: 20px;
    -unity-text-align: upper-center;
    color: rgb(255, 255, 255);
    -unity-font-style: bold;
}

/* Attribute Management Section Styling */
#AttributeManagementSection {
    background-color: rgba(40, 40, 40, 0.9);
    border-color: rgba(150, 150, 150, 0.5);
    margin: 8px 0px;
    flex-shrink: 0;
    min-height: auto;
}

#AttributeManagementTitle {
    color: rgb(220, 220, 220);
    -unity-text-align: upper-center;
    margin-bottom: 5px;
}

#CreationModeLabel {
    color: rgb(255, 200, 100);
    -unity-font-style: bold;
    min-width: 100px;
}

#AvailablePointsLabel {
    color: rgb(100, 255, 100);
    -unity-font-style: bold;
    -unity-text-align: upper-right;
}

#RandomizeAttributesButton {
    background-color: rgb(160, 70, 70);
    color: rgb(255, 255, 255);
    border-width: 1px;
    border-color: rgb(200, 90, 90);
    border-radius: 3px;
    height: 25px;
    font-size: 11px;
}

#RandomizeAttributesButton:hover {
    background-color: rgb(180, 90, 90);
}

#ResetToPointBuyButton {
    background-color: rgb(70, 110, 160);
    color: rgb(255, 255, 255);
    border-width: 1px;
    border-color: rgb(90, 130, 180);
    border-radius: 3px;
    height: 25px;
    font-size: 11px;
}

#ResetToPointBuyButton:hover {
    background-color: rgb(90, 130, 180);
}

#PointCostReference {
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 3px;
    border-radius: 3px;
    -unity-text-align: upper-center;
    font-size: 9px;
    margin-top: 3px;
}

/* Disabled stat fields when randomized */
.unity-integer-field:disabled {
    opacity: 0.6;
}

.unity-integer-field:disabled .unity-base-field__input {
    background-color: rgba(120, 120, 120, 0.4);
    color: rgba(255, 255, 255, 0.6);
}

/* Ensure stats section doesn't overlap */
.stats-section {
    flex-shrink: 0;
    margin-top: 5px;
}
