/* Smaller note for weapon proficiency specialization hint */
.proficiency-section h3 .wp-note {
    font-size: 0.85em;
    font-weight: normal;
    color: #666;
}
/* Turn Undead chart: compact and mobile-friendly */
.turn-undead-chart {
    margin-bottom: 8px;
}
.turn-undead-header {
    margin: 0 0 4px 0;
    font-weight: 600;
    font-size: 13px;
}
.turn-undead-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.turn-undead-table {
    border-collapse: collapse;
    width: max-content; /* shrink to content for horizontal scroll */
    min-width: 100%;    /* but not smaller than container */
    font-size: 12px;
}
.turn-undead-table th,
.turn-undead-table td {
    padding: 4px 6px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    white-space: nowrap;
}
.turn-undead-table th:first-child,
.turn-undead-table td:first-child {
    text-align: left;
}

@media (max-width: 480px) {
    .turn-undead-header { font-size: 12px; }
    .turn-undead-table { font-size: 11px; }
    .turn-undead-table th, .turn-undead-table td { padding: 3px 5px; }
}
/* css/character_styles.css - Character generator styles */

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #242933;
    background-image: var(--background-image, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #D4CFC6;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 41, 51, 0.73);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(58, 65, 79, 0.7);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px #505869;
    border: 0px solid #505869;
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

h1 {
    text-align: center;
    color: #F6AD55;
    font-size: 2.2em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px rgba(246, 173, 85, 0.3);
}

.about-btn {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
    border: 2px solid #9CA3AF;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.about-btn:hover {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    border-color: #6B7280;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(156, 163, 175, 0.4);
}

.about-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.3);
}

h2 {
    color: #D4CFC6;
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 24px;
    border-bottom: 0px solid #F6AD55;
    padding-bottom: 2x;
}

h3 {
    color: #D4CFC6;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 2px;  
}

/* Step completion styling */
.step-completion {
    margin-top: 2rem;
}

/* Step completion simple styling */
.next-step-info {
    margin-top: 16px;
    text-align: center;
}

/* Quick Actions Bar with Status Indicators */
.quick-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(246, 173, 85, 0.1);
    border-radius: 12px;
    border: 1px solid #F6AD55;
    margin-bottom: 32px;
}

.completion-indicators {
    display: flex;
    gap: 12px;
    flex: 1;
    align-items: center;
}

.completion-indicators .next-step-btn {
    margin-left: 16px;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
}

.status-badge {
    background: linear-gradient(135deg, #38A169, #2F855A);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(56, 161, 105, 0.3);
}

.status-badge i {
    margin-right: 6px;
    font-size: 0.9em;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.next-step-btn {
    background: linear-gradient(135deg, #F6AD55, #ED8936);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.3);
    transition: all 0.3s ease;
    margin: 8px 0;
}

.next-step-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(246, 173, 85, 0.4);
}

/* Roll assignment interface */
.rolled-scores-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px;
    background: rgba(246, 173, 85, 0.05);
    border-radius: 8px;
    border: 2px dashed #F6AD55;
}

.rolled-score {
    background: linear-gradient(135deg, #F6AD55, #ED8936);
    color: #242933;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(246, 173, 85, 0.2);
}

.rolled-score:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.4);
}

.rolled-score.selected {
    border-color: #F6AD55;
    box-shadow: 0 0 0 6px rgba(246, 173, 85, 0.3);
}

.rolled-score.assigned {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    opacity: 0.6;
}

.assignment-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* New layout for rolled scores with reset button */
.rolled-scores-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reset-scores-btn {
    height: fit-content;
    white-space: nowrap;
}

.ability-section.assignment-target {
    border: 4px solid #F6AD55;
    background: rgba(246, 173, 85, 0.15);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(246, 173, 85, 0.15);
}

.ability-section.assignment-target:hover {
    background: rgba(246, 173, 85, 0.2);
}

/* Grey styling for assigned ability sections */
.ability-section.assignment-target.assigned {
    border: 3px solid #999999;
    background: rgba(153, 153, 153, 0.1);
}

.ability-section.assignment-target.assigned:hover {
    background: rgba(153, 153, 153, 0.15);
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 0px;
    border-bottom: 1px solid #505869;
    overflow-x: auto;
    gap: 4px;
}

.tab {
    background: #242933;
    border: none;
    color: #D4CFC6;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    position: relative;
}

.tab:hover {
    background: rgba(246, 173, 85, 0.1);
    color: #D4CFC6;
}

.tab.active {
    background: linear-gradient(135deg, #F6AD55, #ED8936);
    color: #242933;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #D4CFC6;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    position: relative;
}

/* Info Icon Styles */
.info-icon {
    display: inline-block;
    margin-left: 8px;
    padding: 4px;
    background: none;
    border: none;
    color: #F6AD55;
    cursor: pointer;
    font-size: 14px;
    border-radius: 50%;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.info-icon:hover {
    color: #E49B3F;
    background: rgba(246, 173, 85, 0.1);
    transform: scale(1.1);
}

/* Clickable Title Styles */
.clickable-title {
    cursor: pointer;
    color: #F6AD55;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.2s ease;
}

.clickable-title:hover {
    color: #E49B3F;
    text-decoration-style: solid;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #505869;
    border-radius: 8px;
    background: rgba(36, 41, 51, 0.6);
    color: #D4CFC6;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #F6AD55;
    box-shadow: 0 0 0 3px rgba(246, 173, 85, 0.1), 0 0 20px rgba(246, 173, 85, 0.1);
    background: #3A414F;
}

input[readonly] {
    background: rgba(106, 90, 205, 0.1);
    border-color: #6A5ACD;
    color: #B8B3E6;
    cursor: not-allowed;
    font-style: normal;
}

input[readonly]:focus {
    border-color: #6A5ACD;
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.1);
    background: rgba(106, 90, 205, 0.15);
}

/* Force white text for key value fields */
#character_race,
#character_class,
#level,
#age,
#height,
#weight,
input[name="armor_ac"],
input[name="shield_ac"],
#character_sex,
#personal_sex {
    color: #fff !important;
}

/* Keep white color on focus as well for these fields */
#character_race:focus,
#character_class:focus,
#level:focus,
#age:focus,
#height:focus,
#weight:focus,
input[name="armor_ac"]:focus,
input[name="shield_ac"]:focus,
#character_sex:focus,
#personal_sex:focus {
    color: #fff !important;
}

input[type="number"] {
    text-align: center;
    height: 48px;
    padding: 12px 8px;
    font-size: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, #F6AD55, #ED8936);
    color: #242933;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(246, 173, 85, 0.4);
}

.btn-secondary {
    background: #505869;
    color: #D4CFC6;
    border: 1px solid #F6AD55;
}

.btn-secondary:hover {
    background: rgba(246, 173, 85, 0.2);
    border-color: #F6AD55;
}

.btn-warning {
    background: linear-gradient(135deg, #C53030, #B91C1C);
    color: white;
    border: 1px solid #991B1B;
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #DC2626, #C53030);
    box-shadow: 0 6px 16px rgba(197, 48, 48, 0.4);
}

/* Method V: Class-First Rolling Styles */
.method-v-container {
    position: relative;
    display: inline-block;
    margin: 4px;
}

.method-v-with-scores {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.current-ability-scores {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* Step Header with Scores Layout */
.step-header-with-scores {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.step-main-content {
    flex: 1;
    min-width: 0;
}

.step-sidebar-scores {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.selected-class-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
    animation: slideInRight 0.3s ease;
}

.selected-class-display i {
    color: #3b82f6;
    font-size: 16px;
}

.selected-class-display .class-name {
    text-transform: capitalize;
    font-weight: 700;
}

.selected-class-display .class-type {
    font-size: 12px;
    opacity: 0.8;
    font-weight: normal;
}

/* Selected Race/Sex Display - matching class display styling */
.selected-race-sex-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #22c55e;
    font-weight: 600;
    font-size: 14px;
    animation: slideInRight 0.3s ease;
}

.selected-race-sex-display i {
    color: #22c55e;
    font-size: 16px;
}

.selected-race-sex-display .race-name {
    text-transform: capitalize;
    font-weight: unset;
    color: #22c55e !important;
    font-size: 14px !important;
}

.selected-race-sex-display .race-sex {
    font-size: 12px;
    opacity: 0.8;
    font-weight: normal;
}

.method-v-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgb(255, 167, 2);
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 10;
    min-width: 320px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.method-v-dropdown label {
    display: block;
    margin-bottom: 8px;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.method-v-dropdown select {
    width: 100%;
    margin-bottom: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.method-v-dropdown select:hover {
    cursor: pointer;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(15, 23, 42, 0.9);
}

.method-v-dropdown select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
}

.method-v-dropdown button {
    width: 100%;
    margin: 8px 0 4px 0;
}

.method-v-dropdown .help-text {
    color: #ffffff;
    font-size: 12px;
    font-style: italic;
    margin-top: 8px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}

#roll-method-v-btn {
    background: white !important;
    color: #242933 !important;
    border: 2px solid #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

#roll-method-v-btn:hover:not(:disabled) {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

#roll-method-v-btn:active:not(:disabled) {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3), 0 0 15px rgba(255, 255, 255, 0.2) !important;
}

#roll-method-v-btn:disabled {
    background: rgba(71, 85, 105, 0.6);
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none !important;
}

/* Responsive design for Method V */
@media (max-width: 768px) {
    .method-v-with-scores {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .current-ability-scores {
        gap: 2px;
    }
    
    .method-v-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 400px;
        margin-top: 0;
    }
    
    .rolling-methods {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .method-v-container {
        width: 100%;
    }
    
    #method-v-btn {
        width: 100%;
    }
}

/* Method V Blue Button Override */
.btn.btn-primary.method-v-blue-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.btn.btn-primary.method-v-blue-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: #2563eb !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
}

/* Ability Scores */
.abilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.ability-section {
    background: rgba(58, 65, 79, 0.5);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #505869;
    transition: all 0.2s ease;
}

.ability-section:hover {
    border-color: #F6AD55;
}

.ability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ability-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #D4CFC6;
}

.ability-input {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.strength-display {
    font-size: 14px;
    color: #F6AD55;
    font-weight: 600;
    background: rgba(246, 173, 85, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(246, 173, 85, 0.3);
    min-width: 200px;
    text-align: center;
}



.ability-mods {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 6px;
    border-left: 0px solid #F6AD55;
}

.ability-modifiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.mod-item {
    font-size: 14px;
    color: #D4CFC6;
    padding: 4px 8px;
    background: #242933;
    border-radius: 4px;
}

.racial-mod {
    color: #F6AD55;
    font-weight: 600;
}

.ability-actions {
    text-align: center;
    margin-top: 24px;
}

/* Combat Section */
.combat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.combat-section {
    background: rgba(58, 65, 79, 0.5);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #505869;
}

.hp-display, .ac-calculator, .thac0-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.hp-explanation {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(36, 41, 51, 0.3);
    border-radius: 6px;
    border-left: 0px solid #F6AD55;
}

.hp-explanation small {
    color: #9CA3AF;
    font-style: italic;
    font-size: 12px;
}

.calculated-value {
    background: linear-gradient(135deg, #F6AD55, #ED8936);
    color: #242933;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-mods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.ac-mods div {
    font-size: 12px;
    color: #D4CFC6;
}

.ac-mods input {
    width: 60px;
    padding: 4px 8px;
    margin-left: 8px;
}

.thac0-table {
    margin-top: 16px;
    overflow-x: auto;
}

.thac0-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.thac0-table th, .thac0-table td {
    padding: 4px 6px;
    text-align: center;
    border: 1px solid #505869;
}

.thac0-table th {
    background: rgba(246, 173, 85, 0.3);
    color: #242933;
    font-weight: 600;
}

/* Race Requirements Table */
.race-requirements {
    margin-bottom: 24px;
    background: rgba(36, 41, 51, 0.5);
    border-radius: 8px;
    padding: 16px;
}

.race-requirements h4 {
    color: #D4CFC6;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: rgb(50, 53, 64. 0.5);
    backdrop-filter: blur(8px);
    z-index: 100;
    padding: 12px 0 8px 0;
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.race-requirements table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(58, 65, 79, 0.55);
    border-radius: 6px;
    overflow: hidden;
}

.race-requirements th {
    color: #D4CFC6;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
}

.race-requirements td {
    padding: 10px 16px;
    border-bottom: 1px solid #505869;
    color: #D4CFC6;
}

.race-requirements tr:last-child td {
    border-bottom: none;
}

.race-requirements tr:hover {
    background: rgba(246, 173, 85, 0.1);
}

.race-requirements .text-success {
    color: #10b981 !important;
    font-weight: 600;
}

.race-requirements .text-danger {
    color: #ef4444 !important;
    font-weight: 600;
}

/* Additional styling for improved race requirements table */
.race-requirements .ability-req {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    margin: 1px;
}

.race-requirements .req-separator {
    color: #8b5cf6;
    font-weight: bold;
    margin: 0 4px;
}

.race-requirements .no-requirements {
    color: #10b981;
    font-style: italic;
    font-weight: 500;
}

/* Class Requirements Table */
.class-requirements {
    margin-bottom: 24px;
    background: rgba(15, 15, 35, 0.4);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.class-requirements h4 {
    color: #f8fafc;
    margin-bottom: 16px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 8px;
    position: sticky;
    top: 0;
    background: rgb(50, 53, 64, 0.5);
    backdrop-filter: blur(8px);
    z-index: 100;
    padding: 12px 0 8px 0;
    margin-top: 0;
    border-radius: 0 0 8px 8px;
}

.class-requirements table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 30, 60, 0.4);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.class-requirements th {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.class-requirements th:first-child {
    border-radius: 8px 0 0 0;
    width: 20%;
}

.class-requirements th:nth-child(2) {
    width: 50%;
}

.class-requirements th:last-child {
    border-radius: 0 8px 0 0;
    width: 30%;
    text-align: center;
}

.class-requirements td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    vertical-align: middle;
    font-size: 0.9em;
    line-height: 1.4;
}

.class-requirements tbody tr {
    transition: background-color 0.2s ease;
}

.class-requirements tbody tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

.class-requirements tbody tr:nth-child(even) {
    background: rgba(15, 15, 35, 0.3);
}

.class-requirements tbody tr:nth-child(even):hover {
    background: rgba(139, 92, 246, 0.15);
}

.class-requirements tbody tr:last-child td {
    border-bottom: none;
}

.class-requirements tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.class-requirements tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

.class-requirements .text-success {
    color: #22c55e !important;
    font-weight: 600;
    text-align: center;
    font-size: 0.9em;
}

.class-requirements .text-danger {
    color: #ef4444 !important;
    font-weight: 600;
    text-align: center;
    font-size: 0.9em;
}

.class-requirements td strong {
    color: #f1f5f9;
    font-weight: 600;
}

.race-requirements .race-name {
    font-size: 1.2em;
    color: #f8fafc;
}

.race-requirements .requirements-cell {
    line-height: 1.4;
}

.race-requirements .status-cell {
    vertical-align: middle;
}

.race-requirements .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.race-requirements .status-indicator.text-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.race-requirements .status-indicator.text-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.race-requirements .unavailable-row {
    opacity: 0.7;
}

.race-requirements .alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #bfdbfe;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* UA Race Categories */
.race-category {
    margin-bottom: 25px;
}

.category-header {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.3em;
    border-bottom: 0px solid #000000;
    padding-bottom: 5px;
}

.category-table {
    margin-bottom: 15px;
}

.race-requirements .ability-req.req-met {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.race-requirements .ability-req.req-not-met {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.race-summary {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

.race-summary .alert {
    margin-bottom: 0;
    font-size: 0.9em;
}

.saves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.save-item {
    text-align: center;
}

.save-item label {
    font-size: 11px;
    margin-bottom: 4px;
}

/* Saving Throw Bonus Notes */
.saving-throw-notes {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f7f4;
    border: 1px solid #d4b896;
    border-radius: 5px;
}

.saving-throw-notes h4 {
    color: #8B4513;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
}

.notes-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bonus-note {
    background-color: #fff;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.bonus-note:hover {
    background-color: #f0f0f0;
}

.no-bonuses {
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 10px;
}

/* Equipment Section */
.equipment-sections {
    display: grid;
    gap: 24px;
}

.weapons-section, .armor-section, .inventory-section, .wealth-section {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.weapon-slots, .armor-slots {
    display: grid;
    gap: 12px;
}

.weapon-slot {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.handheld-weapon-slot {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.ranged-weapon-slot {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}

/* Weapon section headers */
.weapon-header {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 10px;
}

.header-label {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 0.9em;
    text-align: center;
    padding: 4px;
    opacity: 0.6;
}

/* Weapon Proficiency Styling */
.proficiency-section {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.proficiency-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.proficiency-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.proficiency-counter {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1em;
}

.proficiency-penalty-info {
    color: #fbbf24;
    font-size: 0.9em;
}

.proficiency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.proficiency-weapon-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.proficiency-weapon-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}

.proficiency-weapon-item.selected {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.proficiency-weapon-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.proficiency-weapon-item.disabled:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.2);
}

.proficiency-checkbox {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
}

.proficiency-weapon-name {
    flex: 1;
    color: #e5e7eb;
    font-size: 0.9em;
}

/* Proficient weapon indicators in dropdowns */
.custom-select-option.proficient-weapon {
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid #fbbf24;
}

.proficiency-indicator {
    color: #fbbf24 !important;
    font-weight: bold;
    margin-left: 5px;
}

/* Restricted weapon indicators in dropdowns - "no no" styling */
.custom-select-option.restricted-weapon {
    background: rgba(255, 107, 107, 0.15);
    border-left: 3px solid #ff6b6b;
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.custom-select-option.restricted-weapon:hover {
    background: rgba(255, 107, 107, 0.25);
    opacity: 0.8;
}

.custom-select-option.restricted-weapon:after {
    content: " (Class Restriction)";
    color: #ff6b6b;
    font-size: 0.8em;
    font-style: italic;
    opacity: 0.8;
}

.restriction-indicator {
    color: #ff6b6b !important;
    font-weight: bold;
    margin-left: 5px;
}

.armor-slots {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.inventory-grid {
    display: grid;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.inventory-item {
    display: grid;
    grid-template-columns: 120px 2fr 1fr;
    gap: 12px;
    align-items: center;
}

/* Custom Select2-style dropdown styling */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-input {
    width: 100%;
    font-size: 16px;
    padding: 8px 50px 8px 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: #e5e7eb;
    cursor: pointer;
    box-sizing: border-box;
}

.custom-select-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.custom-select-clear {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(231, 111, 81, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.custom-select-clear:hover {
    background: rgba(231, 111, 81, 1);
}

.custom-select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.custom-select-container.open .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1f2937;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow: hidden;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.custom-select-container.open .custom-select-dropdown {
    display: block;
}

.custom-select-search {
    padding: 8px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    background: #111827;
}

.search-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
    color: #e5e7eb;
    font-size: 14px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
}

.custom-select-options {
    max-height: 250px;
    overflow-y: auto;
}

.custom-select-option {
    padding: 10px 12px;
    cursor: pointer;
    color: #e5e7eb;
    font-size: 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: background-color 0.2s ease;
}

.custom-select-option:hover {
    background: rgba(139, 92, 246, 0.2);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option.highlighted {
    background: rgba(139, 92, 246, 0.3);
}

/* Scrollbar styling for dropdown */
.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #111827;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.coin-type {
    text-align: center;
}


/* Spells Section */
.spells-section, .special-abilities-section, .languages-section {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 20px;
}

/* Languages Section */
.racial-languages {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    margin-bottom: 16px;
}

.racial-languages label {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.language-list {
    color: #e2e8f0;
    font-style: italic;
}

.languages-known {
    margin-top: 16px;
}

.languages-known label {
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.languages-known textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #e2e8f0;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.languages-known textarea::placeholder {
    color: #64748b;
    font-style: italic;
}

.spells-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.spells-table th, .spells-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.spells-table th {
    background: rgba(139, 92, 246, 0.3);
    color: white;
    font-weight: 600;
}

/* Spell Selection */
.spell-selection {
    margin-top: 24px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid #a855f7;
}

.spell-selection h3 {
    color: #a855f7;
    margin-bottom: 12px;
}

.spell-selection p {
    margin-bottom: 16px;
    color: #D4CFC6;
}

.spell-dropdowns {
    display: grid;
    gap: 12px;
}

.spell-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spell-dropdown-wrapper label {
    min-width: 70px;
    font-weight: 500;
    color: #D4CFC6;
}

.spell-select {
    flex: 1;
    padding: 8px 12px;
    background: rgba(58, 65, 79, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    color: #D4CFC6;
    font-size: 14px;
    transition: all 0.2s ease;
    height: 40px;
    appearance: menulist;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

.spell-select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.spell-select option {
    background: #3A414F;
    color: #D4CFC6;
}

/* Limit spell dropdown width */
.spell-select {
    max-width: 200px;
}

.special-ability {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid #a855f7;
}

.special-ability h4 {
    color: #a855f7;
    margin-bottom: 8px;
}

/* Personal Information */
.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Character Sheet Preview */
.sheet-preview {
    background: white;
    color: black;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sheet-actions {
    text-align: center;
    padding: 20px 0;
}

/* Info Sections */
.class-info, .race-info {
    background: rgba(15, 23, 42, 0.5);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #a855f7;
    margin-top: 16px;
}

.help-text {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
        margin: 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .abilities-grid {
        grid-template-columns: 1fr;
    }
    
    .combat-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1;
        min-width: 120px;
    }
    
    .weapon-slot {
        grid-template-columns: 1fr;
    }
    
    .inventory-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    /* Mobile-friendly modal styles */
    .modal {
        min-width: 90vw;
        max-width: 95vw;
        padding: 20px;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .modal-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .modal-title {
        font-size: 1.4em;
        line-height: 1.3;
    }
    
    .modal-body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .modal-body h4 {
        font-size: 1.2em;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    .modal-body ul {
        padding-left: 20px;
    }
    
    .modal-body li {
        margin-bottom: 8px;
    }
    
    .modal-actions {
        margin-top: 20px;
    }
    
    .modal-button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-section {
        flex-direction: column;
        gap: 12px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .sheet-preview {
        padding: 20px;
    }
    
    .coin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        background: white;
        box-shadow: none;
        border: none;
    }
    
    .tabs, .btn, .sheet-actions {
        display: none;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .sheet-preview {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
}

/* Beautiful Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(145deg, #f6f1e7, #f0ead7);
    border-radius: 12px;
    padding: 32px;
    min-width: 400px;
    max-width: 90vw;
    /* box-shadow: 
        0 0 0 3px #8b6914,
        0 0 0 6px #b8860b,
        0 20px 40px rgba(47, 43, 36, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3); */
    border: 2px solid #8b6914;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow: auto;
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 24px;
    font-weight: bold;
}

.modal-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.modal-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.modal-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.modal-icon.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    display: none;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #8b2635;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.modal-close {
    appearance: none;
    background: transparent;
    border: none;
    color: #2c1810;
    font-size: 28px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
}
.modal-close:focus {
    outline: 2px solid #8b6914;
    border-radius: 4px;
}

.modal-body {
    color: #020202;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 24px;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body ul {
    margin: 8px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 4px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-button.primary {
    background: linear-gradient(145deg, #cc7722, #b8860b);
    color: #f6f1e7;
    border: 2px solid #8b6914;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 700;
}

.modal-button.primary:hover {
    background: linear-gradient(145deg, #d4841f, #cc7722);
    transform: translateY(-1px);
}

.modal-button.secondary {
    background: linear-gradient(145deg, #8b6914, #6b5010);
    color: #f6f1e7;
    border: 2px solid #5d4e37;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 700;
}

.modal-button.secondary:hover {
    background: linear-gradient(145deg, #9c7616, #8b6914);
}

/* Secondary Skills Modal - Wider for better readability */
#secondary-skills-modal .modal {
    min-width: 600px;
    max-width: 800px;
}

#secondary-skills-modal .modal-body {
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

/* Mobile-friendly modals */
@media (max-width: 480px) {
    .modal {
        width: 92vw;
        min-width: 0;
        padding: 20px;
        border-radius: 10px;
        max-height: 90vh;
    }
    .modal-title {
        font-size: 18px;
    }
    .modal-body {
        font-size: 14px;
    }
    .modal-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Quick Actions Bar Styles */
.quick-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    padding: 2px;
    margin: 2px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0), rgba(168, 85, 247, 0.00));
    border-radius: 12px;
    border: 0px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(0px);
}

.reset-btn {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    color: #ffffff;
    border: 2px solid #991b1b;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.export-btn {
    background: linear-gradient(145deg, #059669, #047857);
    color: #ffffff;
    border: 2px solid #065f46;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.export-btn:hover {
    background: linear-gradient(145deg, #10b981, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Button general styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    user-select: none;
}

.btn:active {
    transform: translateY(0px);
}

/* Hide the original race dropdown since we now use inline buttons */
#race_select {
    display: none;
}

/* Inline Race Selection Buttons */
.race-name-cell {
    vertical-align: top;
    padding: 12px 8px;
}

.race-select-btn-inline {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    min-width: 70px;
    text-align: center;
    justify-content: center;
}

.race-select-btn-inline:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.race-select-btn-inline:active {
    transform: translateY(0);
}

.race-select-btn-inline:disabled {
    background: #374151;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.5;
}

/* Sex variant styling */
.race-sex-variants {
    margin-top: 1px;
}

.race-sex-variants .race-select-btn-inline {
    margin: 1px 4px;
    min-width: 90px;
    font-size: 13px;
    padding: 7px 10px;
}

.race-sex-variants .race-select-btn-inline i {
    font-size: 10px;
}

/* Unavailable sex variants styling */
.race-select-btn-inline.unavailable-sex {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

.race-select-btn-inline.unavailable-sex:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: none;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.race-select-btn-inline.unavailable-sex:disabled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
    transform: none;
}

/* Character sex field styling */
#character_sex {
    background: #374151;
    border: 1px solid #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
}

#character_sex:disabled {
    opacity: 0.8;
}

/* Class selection inline button styles - matching race button styles */
.class-select-btn-inline {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 6px;
    min-width: 120px;
    text-align: center;
    justify-content: center;
    position: relative;
}

.class-select-btn-inline:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.class-select-btn-inline:active {
    transform: translateY(0);
}

.class-select-btn-inline:disabled {
    background: #374151;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.9;
}

/* Unavailable class styling */
.class-select-btn-inline.unavailable,
.class-select-btn-inline.unavailable-class {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

.class-select-btn-inline.unavailable:hover,
.class-select-btn-inline.unavailable-class:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: none;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.class-select-btn-inline.unavailable:disabled,
.class-select-btn-inline.unavailable-class:disabled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
    transform: none;
}

/* Class icon styling */
.class-select-btn-inline i {
    font-size: 16px;
    min-width: 16px;
}

/* Method V pre-selected class styling */
.class-select-btn-inline.method-v-preselected {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    border: 2px solid #fbbf24;
    animation: methodVPulse 2s ease-in-out infinite;
}

.class-select-btn-inline.method-v-preselected:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

/* Method V badge styling */
.badge-warning {
    background-color: #f59e0b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Method V locked class styling */
.class-select-btn-inline.method-v-locked {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
    border: 2px solid #10b981;
    position: relative;
}

.class-select-btn-inline.method-v-locked:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.5);
}

.class-select-btn-inline.method-v-locked::before {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10b981;
    color: white;
    font-weight: bold;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Method V reset button styling */
.btn-outline-warning {
    border: 2px solid #f59e0b;
    color: #f59e0b;
    background: transparent;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-warning:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

/* Method V class selection area */
.method-v-class-selection {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 8px;
    padding: 16px;
}

.method-v-class-selection h5 {
    color: #10b981;
    margin-bottom: 12px;
    font-weight: 600;
}

.method-v-reset-option {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

/* Method V pulse animation */
@keyframes methodVPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4), 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4), 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

/* Class buttons section */
.class-buttons-section {
    margin: 20px 0;
    padding: 16px;
    background: rgba(30, 30, 60, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.available-classes-section h4 {
    color: #f8fafc;
    margin-bottom: 12px;
    font-size: 1.2em;
}

.class-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.class-summary {
    margin-top: 16px;
}

.class-summary .alert {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    border-radius: 6px;
    padding: 12px;
    margin: 0;
}

/* Class reset area styling - matching race reset area */
#class-reset-area,
.class-reset-area {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
    display: none;
}

#selected-class-display,
.selected-class-display {
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#selected-class-display i,
.selected-class-display i {
    color: #22c55e;
    font-size: 18px;
}

/* Race/Sex display - matching class display styling exactly */
#selected-race-sex-display,
.selected-race-sex-display {
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#selected-race-sex-display i,
.selected-race-sex-display i {
    color: #22c55e;
    font-size: 18px;
}

.class-reset-btn,
.class-reset-btn.reset-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    border: none !important;
    padding: 5px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 1.2em !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.class-reset-btn:hover,
.class-reset-btn.reset-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3) !important;
}

.class-reset-btn:active,
.class-reset-btn.reset-btn:active {
    transform: translateY(0) !important;
}

/* Character sex field styling */
#character_sex:disabled {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #10b981;
    cursor: not-allowed;
}

#character_sex:disabled + .help-text {
    color: #10b981;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

/* Readonly fields styled like disabled Sex */
.like-sex-disabled[readonly] {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #386c55 !important;
    color: #10b981 !important;
    cursor: not-allowed !important;
    opacity: 0.9;
}

/* Hide spinners for readonly numeric fields (age) */
.like-sex-disabled[readonly]::-webkit-outer-spin-button,
.like-sex-disabled[readonly]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.like-sex-disabled[readonly][type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Selected race display and reset */
.race-reset-area {
    margin-top: 20px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    text-align: center;
}

.selected-race-display {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.selected-race-display i {
    color: #22c55e;
    margin-right: 8px;
}

.race-reset-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.race-reset-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.race-reset-btn:active {
    transform: translateY(0);
}

/* Responsive design for race buttons */
@media (max-width: 768px) {
    .race-buttons-row {
        flex-direction: column;
    }
    
    .race-select-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Notification System - Stack vertically instead of overlapping */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    padding: 12px 50px 12px 20px; /* Extra padding on right for close button */
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    min-width: 250px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.notification.notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-left: 4px solid #047857;
}

.notification.notification-error,
.notification.notification-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-left: 4px solid #b91c1c;
}

.notification.notification-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-left: 4px solid #b45309;
}

.notification.notification-info {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-left: 4px solid #3730a3;
}

/* Notification Close Button */
.notification-close {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #000000;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.notification-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.notification-close:active {
    transform: translateY(-50%) scale(0.95);
}

.notification-message {
    flex: 1;
    margin-left: 24px; /* Space for close button */
}

.notification.fade-out {
    animation: slideOutRight 0.3s ease;
    opacity: 0;
    transform: translateX(100%);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive notifications */
@media (max-width: 480px) {
    .notifications-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
        padding: 12px 45px 12px 15px; /* Adjust padding for smaller screens */
    }
    
    .notification-close {
        left: 6px;
        width: 26px;
        height: 26px;
        font-size: 22px;
    }
    
    .notification-message {
        margin-left: 20px; /* Adjust spacing for smaller close button */
    }
}

/* Armor/Shield Dropdown Restriction Styling */
/* Use highest specificity selectors and inline style approach */
select[name="armor_type"] option:disabled,
select[name="shield_type"] option:disabled,
select.armor-restricted option.restricted-option,
select.shield-restricted option.restricted-option {
    color: #000 !important; /* Black text */
    background-color: #4a5568 !important; /* Dark grey background */
    font-style: italic !important;
}

/* Ensure normal options have proper styling */
select[name="armor_type"] option:not(:disabled),
select[name="shield_type"] option:not(:disabled),
select.armor-restricted option.available-option,
select.shield-restricted option.available-option {
    color: inherit;
    background-color: inherit;
    font-style: normal;
    font-weight: normal;
}

/* Force styling with very high specificity */
html body select[name="armor_type"] option:disabled,
html body select[name="shield_type"] option:disabled {
    color: #000 !important;
    background-color: #4a5568 !important;
    font-style: italic !important;
}

/* Alternative styling for better browser compatibility */
select.armor-restricted,
select.shield-restricted {
    border: 2px solid #e53e3e; /* Red border to indicate restrictions */
}

/* Add distinctive styling to the dropdown itself when restrictions are active */
select.armor-restricted::after,
select.shield-restricted::after {
    content: " 🚫";
}

/* Responsive design for step headers with scores */
@media (max-width: 768px) {
    .step-header-with-scores {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .step-sidebar-scores {
        align-items: stretch;
        order: -1; /* Show scores above content on mobile */
    }
    
    .step-sidebar-scores .current-ability-scores {
        justify-content: center;
    }
    
    .step-sidebar-scores .selected-class-display {
        justify-content: center;
    }
}

/* Responsive design for quick actions */
@media (max-width: 768px) {
    .quick-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .reset-btn, .export-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Priority #3: Conditional Level Limits Styling */
.class-limitations {
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.class-limitations h4 {
    color: #f8fafc;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 8px;
}

.level-limits-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.limit-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.limit-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(139, 92, 246, 0.4);
}

.limit-item.not-allowed {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
}

.limit-item strong {
    color: #f8fafc;
    font-weight: 600;
}

.limit-details {
    margin-top: 8px;
    padding-left: 16px;
    border-left: 2px solid rgba(139, 92, 246, 0.3);
}

.limit-details small {
    color: #94a3b8;
    line-height: 1.4;
    margin: 2px 0;
}

.limit-details small.d-block {
    display: block;
}

/* Level limit status colors */
.text-success {
    color: #22c55e !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-muted {
    color: #b7bdc8 !important;
}

/* Ability score boxes in headers */
.ability-score-box {
    display: inline-block;
    background: linear-gradient(135deg, #F6AD55, #ED8936);
    color: #242933;
    padding: 2px 6px;
    margin: 0 2px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(246, 173, 85, 0.3);
    border: 1px solid rgba(246, 173, 85, 0.5);
}

/* Responsive adjustments for level limits */
@media (max-width: 768px) {
    .limit-item {
        padding: 10px 12px;
    }
    
    .limit-details {
        padding-left: 12px;
        margin-top: 6px;
    }
    
    .limit-details small {
        font-size: 0.75em;
    }
}

/* Armor Restriction Styles */
.armor-section select option:disabled {
    color: #999 !important;
    font-style: italic !important;
    background-color: #f5f5f5 !important;
}

.armor-section select option:disabled:hover {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
}

#armor-restriction-note {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Equipment section enhancements */
.equipment-sections .form-group {
    position: relative;
}

.equipment-sections .form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.equipment-sections select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #505869;
    border-radius: 6px;
    background: #2A2F3A;
    color: #D4CFC6;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.equipment-sections select:focus {
    outline: none;
    border-color: #4F9CF9;
    box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.1);
}

/* Auto-generation styles */
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-success:hover::before {
    left: 100%;
}

/* Hide number input spinners for readonly inputs */
input[name="armor_ac"]::-webkit-outer-spin-button,
input[name="armor_ac"]::-webkit-inner-spin-button,
input[name="shield_ac"]::-webkit-outer-spin-button,
input[name="shield_ac"]::-webkit-inner-spin-button,
input[name="level"]::-webkit-outer-spin-button,
input[name="level"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[name="armor_ac"][type=number],
input[name="shield_ac"][type=number],
input[name="level"][type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}
