/**
 * Open Dungeons Character Generator Styles
 */

/* Validation Alert Modal Styles */
.od-alert-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 10000 !important;
    animation: fadeIn 0.2s ease;
}

.od-alert-modal {
    background: #1a1d26;
    border: 2px solid #f2a23b;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10001 !important;
}

.od-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.od-alert-icon {
    font-size: 32px;
    color: #f2a23b;
}

.od-alert-title {
    font-size: 20px;
    font-weight: bold;
    color: #d6cbb0;
    margin: 0;
}

.od-alert-content {
    color: #d6cbb0;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.od-alert-footer {
    display: flex;
    justify-content: flex-end;
}

.od-alert-button {
    background: #f2a23b;
    color: #11141b;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.od-alert-button:hover {
    background: #d6cbb0;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reset and Base Styles */
.od-character-generator {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Site Navigation */
.od-site-navigation {
    background: #333;
    padding: 0;
    margin: 0 0 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.od-site-navigation .menu-container {
    max-width: 1200px;
    margin: 0 auto;
}

.od-site-navigation .primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.od-site-navigation .primary-menu > li {
    position: relative;
}

.od-site-navigation .primary-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.od-site-navigation .primary-menu > li > a:hover,
.od-site-navigation .primary-menu > li.current-menu-item > a {
    background: #555;
}

/* Dropdown menus */
.od-site-navigation .primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #444;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

.od-site-navigation .primary-menu li:hover > .sub-menu {
    display: block;
}

.od-site-navigation .primary-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.od-site-navigation .primary-menu .sub-menu li a:hover {
    background: #555;
}

#od-generator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.od-generator-header {
    background: linear-gradient(to bottom, #05060a 0%, transparent 20%, transparent 80%, #05060a 100%), radial-gradient(circle at center, rgba(60, 120, 255, 0.35), transparent 60%), #05060a;
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 3px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.od-generator-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: bold;
}

.od-subtitle {
    margin: 0;
    font-size: 1.2em;
    opacity: 0.9;
}

/* Wizard Tabs Navigation */
.od-wizard-tabs {
    background: #1a1d26;
    padding: 0;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.od-wizard-tab {
    flex: 1;
    min-width: 120px;
    padding: 16px 20px;
    background: #11141b;
    color: #fff;
    border: none;
    border-right: 1px solid #2a3140;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.od-wizard-tab:last-child {
    border-right: none;
}

.od-wizard-tab:hover {
    background: #1a1d26;
    color: #d6cbb0;
}

.od-wizard-tab.active {
    background: #2a3140;
    color: #f2a23b;
    border-bottom: 3px solid #f2a23b;
}

.od-wizard-tab.completed {
    color: #4a9d7a;
}

.od-wizard-tab.completed .od-tab-label::after {
    content: ' ✓';
    margin-left: 5px;
}

/* Wizard Navigation Buttons */
.od-wizard-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 0px;
    padding: 20px 0;
    border-top: 0px solid #2a3140;
}

.od-wizard-navigation .od-btn {
    min-width: 120px;
    font-size: 16px;
    font-weight: 600;
}

.od-wizard-navigation .od-btn[data-action="previous"] {
    margin-right: auto;
}

.od-wizard-navigation .od-btn[data-action="next"] {
    margin-left: auto;
    background: #939fb9;
    border-color: #f2a23b;
}

.od-wizard-navigation .od-btn[data-action="next"]:hover {
    background: #f2a23b;
    color: #11141b;
}

/* Step Sections */
.od-wizard-step[data-step] {
    display: none;
}

.od-wizard-step[data-step].active {
    display: block;
}

/* Equipment section - expand to right only (40% expansion for pseudo scrollbar space) */
.od-equipment.od-form-section {
    margin-right: calc(-20vw + 20%);
    padding-right: max(25px, calc(20vw - 240px));
}

/* Responsive Wizard Tabs */
@media (max-width: 768px) {
    .od-wizard-tabs {
        flex-direction: column;
    }
    
    .od-wizard-tab {
        border-right: none;
        border-bottom: 1px solid #2a3140;
        min-width: 100%;
    }
    
    .od-wizard-tab:last-child {
        border-bottom: none;
    }
}

/* Control Panel */
.od-control-panel {
    background: transparent;
    padding: 0px 20px 0px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.od-character-summary-box {
    border-radius: 8px;
    padding: 0px 20px 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.od-summary-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #ecf0f1;
    white-space: nowrap;
}

.od-summary-row strong {
    color: #bdc3c7;
    margin-right: 8px;
    font-weight: 600;
}

.od-summary-row span {
    color: #fff;
    font-weight: bold;
}

.od-mode-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.od-save-load-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons - Muted and Square */
.od-btn {
    padding: 10px 20px;
    border: 1px solid #2a3140;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #11141b;
    color: #d6cbb0;
}

.od-btn:hover {
    background: #1a1f2e;
    border-color: #f2a23b;
    color: #f3e8d0;
}

.od-btn-primary {
    background: #11141b;
    color: #d6cbb0;
    border-color: #2a3140;
}

.od-btn-primary:hover {
    background: #1a1f2e;
    border-color: #f2a23b;
}

.od-btn-secondary {
    background: #11141b;
    color: #d6cbb0;
    border-color: #2a3140;
}

.od-btn-secondary:hover {
    background: #1a1f2e;
    border-color: #f2a23b;
}

.od-btn-success {
    background: #11141b;
    color: #d6cbb0;
    border-color: #2a3140;
}

.od-btn-success:hover {
    background: #1a1f2e;
    border-color: #f2a23b;
}

.od-btn-info {
    background: #11141b;
    color: #d6cbb0;
    border-color: #2a3140;
}

.od-btn-info:hover {
    background: #1a1f2e;
    border-color: #f2a23b;
}

.od-btn-warning {
    background: #11141b;
    color: #d6cbb0;
    border-color: #2a3140;
}

.od-btn-warning:hover {
    background: #1a1f2e;
    border-color: #f2a23b;
}
button#od-save-character-btn,button#od-load-character-btn {
    font-weight: unset
}
button#od-export-pdf-btn {
    border: 1px solid #2d5016;
}
button#od-export-pdf-btn:hover,
button#od-export-pdf-btn:active,
button#od-export-pdf-btn:focus {
    border-color: #00ff00;
}
button#od-new-character-btn {
    border: 1px solid #5c1a1a;
}
button#od-new-character-btn:hover,
button#od-new-character-btn:active,
button#od-new-character-btn:focus {
    border-color: #ff0000;
}
.od-btn-danger {
    background: #11141b;
    color: #d6cbb0;
    border-color: #2a3140;
}

.od-btn-danger:hover {
    background: #1a1f2e;
    border-color: #cc7622;
}

.od-btn-small {
    padding: 5px 10px;
    font-size: 0.85em;
}

/* Form Sections */
.od-form-section {
    background-color: #ffffffed;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    -webkit-box-shadow: 0px 0px 15px 3px #6e6e6c;
    -moz-box-shadow: 0px 0px 15px 3px #6e6e6c;
    box-shadow: 0px 0px 15px 3px #6e6e6c;
}

.od-form-section h2 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 0px solid #a6aab9;
    color: #000;
    font-size: 1.5em;
    text-align: center;
}

.od-form-section h3 {
    color: #000;
}

/* Section Completion Checkbox */
.od-section-complete-wrapper {
    margin-top: 20px;
    padding-top: 5px;
    border-top: 0px solid #e0e0e0;
    text-align: right;
}

.od-section-complete-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #0f0f0f;
}

.od-section-complete-label:hover {
    color: #000;
}

.od-section-complete-checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.od-section-complete-label span {
    user-select: none;
}

/* Form Elements */
.od-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Sticky form row for desktop only */
@media (min-width: 769px) {
    .od-form-row {
        position: sticky;
        top: 10px;
        z-index: 100;
        background-color: #ffffffed;
        background-image: url('../images/background.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 20px 20px 0 20px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.od-form-group {
    margin-bottom: 15px;
}

.od-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #201f1f;
}

/* Name input wrapper with generate button */
.od-name-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.od-name-input-wrapper .od-input {
    flex: 1;
}

.od-name-input-wrapper .od-btn-small {
    white-space: nowrap;
    padding: 10px 15px;
    font-size: 0.9em;
}

/* Modern styling for Generate Name button */
#od-generate-name-btn {
    cursor: pointer;
    background: #5a67d8;
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#od-generate-name-btn:hover {
    background: #4c51bf;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

#od-generate-name-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.od-input,
.od-select,
.od-textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.od-input:focus,
.od-select:focus,
.od-textarea:focus {
    outline: none;
    border-color: #667eea;
}



/* Required select fields with red border when empty */
#od-char-race:invalid,
#od-char-class:invalid {
    border-color: #dc3545;
}

#od-char-race:valid,
#od-char-class:valid {
    border-color: #ddd;
}

.od-textarea {
    resize: vertical;
    font-family: inherit;
}

/* Ability Scores Grid */
.od-ability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.od-ability-item {
    text-align: center;
}

.od-ability-item > label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #000;
}

.od-ability-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.od-ability-input {
    width: 80px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 auto;
}

.od-versatile-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

.od-versatile-checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.od-versatile-checkbox-label span {
    user-select: none;
}

.od-ability-bonus {
    display: block;
    margin-top: 5px;
    font-size: 1.1em;
    font-weight: bold;
    color: #667eea;
}

/* Combat Stats Grid */
.od-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.od-stat-item {
    text-align: center;
}

.od-stat-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #000;
}

.od-stat-input {
    width: 100px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #f8f9fa;
}

/* Saves Grid */
.od-saves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.od-save-item {
    display: flex;
    flex-direction: column;
}

.od-save-item > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000;
    text-align: center;
}

.od-save-values {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    position: relative;
    padding-top: 20px;
}

.od-save-field {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.od-save-label {
    font-size: 0.75em;
    color: #000;
    margin-bottom: 3px;
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.od-save-input {
    width: 60px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #f8f9fa;
}

.od-save-bonus {
    width: 60px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #fff3cd;
    border-color: #ffc107;
}

.od-save-separator {
    font-size: 1.3em;
    font-weight: bold;
    color: #666;
    padding: 0 5px;
    margin-bottom: 4px;
}

/* Abilities Display */
.od-abilities-display {
    margin-top: 15px;
}

.od-abilities-box {
    /* background: #f8f9fa; */
    padding: 15px;
    border-radius: 5px;
    border-left: 0px solid #667eea;
}

.od-abilities-box h3 {
    margin: 0 0 10px 0;
    color: #000;
    font-size: 1.2em;
    font-weight: 700;
}

.od-abilities-box ul {
    margin: 0;
    padding-left: 20px;
}

.od-abilities-box li {
    margin-bottom: 8px;
    color: #000000;
    font-size: 0.95em;
    line-height: 1.6;
}

.od-abilities-box li strong {
    color: #000;
    font-weight: 700;
}

/* Race Ability Selection */
.od-race-ability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.od-race-ability-header h3 {
    margin: 0;
}

.od-race-ability-reset {
    background: #000;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.3s ease;
}

.od-race-ability-reset:hover {
    background: #333;
}

.od-race-ability-reset:disabled {
    background: #cbd3da;
    cursor: not-allowed;
}

.od-race-ability-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    margin: 5px 0;
    background: white;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.od-race-ability-item.selected {
    border-color: #28a745;
    background: #f0f9f4;
}

.od-race-ability-item.disabled {
    display: none;
}

.od-race-ability-checkbox {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.od-race-ability-content {
    flex: 1;
}

.od-race-ability-content strong {
    display: block;
    margin-bottom: 4px;
    color: #000;
    font-size: 1.05em;
}

.od-race-ability-content label {
    cursor: pointer;
}

.od-race-ability-effect {
    color: #000000;
    line-height: 1.4;
}

.od-race-ability-instruction {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 10px;
    margin-bottom: 10px;
    color: #000;
    font-size: 0.9em;
    border-radius: 3px;
}

/* Currency Grid */
.od-currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.od-currency-item {
    text-align: center;
}

.od-currency-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #262525;
}

.od-remaining-gold {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    text-align: center;
    padding: 15px;
    background: #10131b;
    color: #ffffff;
    font-size: 1.4em;
    font-weight: bold;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Spells */
.od-spell-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.od-spell-list p {
    color: #000;
    font-weight: 500;
}

.od-spell-list-display {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.od-spell-list-display p {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
}

.od-spell-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.od-spell-items li {
    padding: 10px 15px;
    background: #f8f9fa;
    border-left: 1px solid #18181c;
    border-radius: 4px;
    color: #333;
}

.od-spell-item {
    display: block;
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.od-spell-item:hover {
    border-color: #667eea;
    background: #f0f3ff;
}

.od-spell-checkbox {
    margin-right: 10px;
    cursor: pointer;
}

/* Gear List */
.od-gear-list {
    margin-bottom: 15px;
}

/* Form Actions */
.od-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Old Modal System (Save/Load Character) */
.od-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 10000 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
}

.od-modal[style*="display: block"],
.od-modal[style*="display:block"],
.od-modal[style*="display: flex"],
.od-modal[style*="display:flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.od-modal-content {
    background: #1a1d26;
    border: 2px solid #f2a23b;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0 auto;
    color: #d6cbb0;
}

.od-modal-content h2 {
    color: #f2a23b;
    margin-top: 0;
}

.od-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    font-weight: bold;
    color: #d6cbb0;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.od-modal-close:hover {
    color: #f2a23b;
}

/* Alert Modal */
.od-alert-modal-content {
    max-width: 500px;
}

.od-alert-modal-content h2 {
    color: #f39c12;
    margin-bottom: 15px;
}

.od-alert-modal-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.od-alert-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.od-alert-buttons .od-btn {
    min-width: 120px;
}

/* Confirmation Modal Buttons */
.od-confirm-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
}

.od-confirm-buttons .od-btn {
    min-width: 120px;
}

/* Green Yes button for confirmation */
#od-confirm-yes {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

#od-confirm-yes:hover {
    background: #218838;
    border-color: #1e7e34;
}

/* Validation */
.od-validation-msg {
    display: block;
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
}

.od-validation-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.od-validation-panel h3 {
    margin: 0 0 15px 0;
    color: #000;
}

.od-success {
    color: #28a745;
    font-weight: bold;
}

.od-error {
    color: #dc3545;
    font-weight: bold;
}

.od-validation-results ul {
    padding-left: 20px;
}

/* Saved Characters List (old modal styles removed - using new wizard modal) */
.od-character-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.od-character-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #2c3e50;
    border-radius: 5px;
    border: 2px solid #34495e;
    color: #ecf0f1;
}

.od-character-item:hover {
    border-color: #667eea;
    background: #34495e;
}

.od-character-info {
    flex: 1;
}

.od-character-info strong {
    color: #fff;
    font-size: 1.1em;
}

.od-character-info small {
    color: #bdc3c7;
}

.od-character-actions {
    display: flex;
    gap: 10px;
}

/* Footer */
.od-generator-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #777;
    border-top: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    #od-generator-wrapper {
        padding: 10px;
    }
    
    .od-generator-header h1 {
        font-size: 1.8em;
    }
    
    .od-subtitle {
        font-size: 1em;
    }
    
    .od-form-section {
        padding: 15px;
    }
    
    .od-ability-grid,
    .od-stats-grid,
    .od-saves-grid,
    .od-currency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .od-mode-toggle,
    .od-save-load-controls,
    .od-form-actions {
        flex-direction: column;
    }
    
    .od-btn {
        width: 100%;
    }
    
    .od-character-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .od-character-actions {
        width: 100%;
    }
    
    .od-character-actions .od-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .od-ability-grid,
    .od-stats-grid,
    .od-currency-grid {
        grid-template-columns: 1fr;
    }
}

/* Notification Toast System */
.od-notification-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    width: 90%;
}

.od-notification {
    background: #2c3e50;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInUp 0.3s ease-out;
    border: 2px solid #34495e;
    position: relative;
    overflow: hidden;
}

.od-notification::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0,0,0,0.1);
    animation: shrinkWidth 3s linear;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

@keyframes shrinkWidth {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.od-notification.removing {
    animation: slideOutDown 0.3s ease-out forwards;
}

.od-notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.od-notification-content {
    flex: 1;
}

.od-notification-title {
    font-weight: 700;
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #fff;
}

.od-notification-message {
    margin: 0;
    font-size: 14px;
    color: #ecf0f1;
    line-height: 1.5;
}

.od-notification-close {
    cursor: pointer;
    font-size: 22px;
    color: #95a5a6;
    flex-shrink: 0;
    transition: color 0.2s ease;
    padding: 0;
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info Message */
.od-info-message {
    /* background: #2a3140; */
    color: #000;
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 4px solid #0a0a0a;
    margin-bottom: 20px;
    font-size: 18px;
}

.od-notification-close:hover {
    color: #fff;
}

/* Success Notification */
.od-notification.success {
    border-color: #27ae60;
    background: #27ae60;
}

.od-notification.success .od-notification-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Error Notification */
.od-notification.error {
    border-color: #e74c3c;
    background: #e74c3c;
}

.od-notification.error .od-notification-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Warning Notification */
.od-notification.warning {
    border-color: #f39c12;
    background: #f39c12;
}

.od-notification.warning .od-notification-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.od-notification.warning .od-notification-title,
.od-notification.warning .od-notification-message {
    color: #fff;
}

/* Info Notification */
.od-notification.info {
    border-color: #3498db;
    background: #3498db;
}

.od-notification.info .od-notification-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Print Styles */
@media print {
    .od-control-panel,
    .od-form-actions,
    .od-generator-footer,
    .od-notification-container {
        display: none;
    }
    
    .od-form-section {
        page-break-inside: avoid;
    }
}

@media (max-width: 480px) {
    .od-notification-container {
        left: 10px;
        right: 10px;
        max-width: none;
        transform: none;
    }
    
    .od-notification {
        padding: 12px 16px;
    }
}

/* Weapons Multi-Select */
.od-weapons-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    padding: 10px;
}

#od-weapons-search {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.od-weapons-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.od-weapons-filter-select {
    flex: 1;
    min-width: 150px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 0.9em;
    cursor: pointer;
}

.od-weapons-filter-select:hover {
    border-color: #999;
}

.od-weapons-reset-btn {
    padding: 6px 12px;
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.od-weapons-reset-btn:hover {
    background: #333;
}

.od-weapons-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 10px;
    
    /* Blue scrollbar */
    scrollbar-width: auto;
    scrollbar-color: #667eea #e8e8e8;
}

/* Webkit scrollbar for weapons list */
.od-weapons-list::-webkit-scrollbar {
    width: 16px;
}

.od-weapons-list::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 8px;
}

.od-weapons-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    border: 2px solid #e8e8e8;
}

.od-weapons-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.od-weapon-item {
    padding: 8px;
    margin: 2px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.od-weapon-item:hover {
    background: #f0f0f0;
}

.od-weapon-item.selected {
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
}

.od-weapon-item input[type="checkbox"] {
    margin-right: 8px;
}

.od-weapon-name {
    font-weight: 600;
    margin-right: 10px;
    color: #000;
}

.od-weapon-cost {
    color: #000;
    margin-right: 10px;
}

.od-weapon-damage {
    color: #000;
}

.od-selected-weapons {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.od-selected-weapons strong {
    color: #000;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.od-selected-weapons-items {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #000;
}

#od-selected-weapons-items em {
    color: #000 !important;
    font-style: italic;
}

.od-selected-weapon-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #6a6e81 0%, #0a070e 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 0px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
    margin: 5px 5px 0px 2px;
}

.od-selected-weapon-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.od-selected-weapon-tag .od-remove-weapon {
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.6em;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 4px 8px;
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.od-selected-weapon-tag .od-remove-weapon:hover {
    opacity: 1;
    color: #ffeb3b;
}

/* ========================================
   GEAR STYLES (Similar to Weapons)
   ======================================== */

.od-gear-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    padding: 10px;
}

#od-gear-search {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.od-gear-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.od-gear-filter-select {
    flex: 1;
    min-width: 150px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 0.9em;
    cursor: pointer;
}

.od-gear-filter-select:hover {
    border-color: #999;
}

.od-gear-reset-btn {
    padding: 6px 12px;
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.od-gear-reset-btn:hover {
    background: #333;
}

.od-gear-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 10px;
    
    /* Blue scrollbar */
    scrollbar-width: auto;
    scrollbar-color: #667eea #e8e8e8;
}

/* Webkit scrollbar for gear list */
.od-gear-list::-webkit-scrollbar {
    width: 16px;
}

.od-gear-list::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 8px;
}

.od-gear-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    border: 2px solid #e8e8e8;
}

.od-gear-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.od-gear-item {
    padding: 8px;
    margin: 2px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.od-gear-item:hover {
    background: #f0f0f0;
}

.od-gear-item.selected {
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
}

.od-gear-item input[type="checkbox"] {
    margin-right: 8px;
}

.od-gear-item-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.od-gear-name {
    font-weight: 600;
    margin-right: 10px;
    color: #000;
}

.od-gear-category {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-right: 10px;
}

.od-gear-cost {
    color: #000;
    margin-left: auto;
}

.od-selected-gear {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.od-selected-gear strong {
    color: #000;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.od-selected-gear-items {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #000;
}

#od-selected-gear-items em {
    color: #000 !important;
    font-style: italic;
}

.od-selected-gear-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #6a6e81 0%, #0a070e 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 0px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
    margin: 5px 5px 0px 2px;
}

.od-selected-gear-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.od-selected-gear-tag .od-remove-gear {
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.6em;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 4px 8px;
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.od-selected-gear-tag .od-remove-gear:hover {
    opacity: 1;
    color: #ffeb3b;
}

/* Disabled Ability Scores Section */
.od-ability-scores.od-section-disabled {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.od-ability-scores.od-section-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(200, 200, 200, 0.3);
    z-index: 1;
}

.od-ability-scores.od-section-disabled .od-input,
.od-ability-scores.od-section-disabled .od-btn,
.od-ability-scores.od-section-disabled .od-section-complete-checkbox {
    cursor: not-allowed !important;
}

/* Armor/Helmet/Shield Row - Responsive Grid */
.od-armor-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .od-armor-row {
        grid-template-columns: repeat(3, 1fr);
    }
}
