body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    color: #333;
}

.tabs {
    display: flex;
    background-color: white;
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #666;
}

.tab.active {
    color: #333;
    border-bottom-color: #4CAF50;
}

.tab:hover {
    color: #333;
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.content {
    flex: 1;
    padding: 20px;
    background-color: white;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
    display: none;
    position: relative;
    z-index: 1;
}

.content.active {
    display: block;
}

.search-container {
    margin-bottom: 20px;
    position: relative;
    width: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

#powerSearch, #searchInput, #skillSearchInput, #myPowersSearch, #edgeSearchInput {
    width: 25%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Ensure search inputs flex properly with inline controls */
.search-container #powerSearch,
.search-container #searchInput,
.search-container #skillSearchInput,
.search-container #myPowersSearch,
.search-container #edgeSearchInput {
    width: 25%;
    flex: 0 0 25%;
    min-width: 0;
}

.clear-search {
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.clear-search:hover {
    background-color: #e0e0e0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
}

tr:hover {
    background-color: #f9f9f9;
}

.power-row {
    cursor: pointer !important;
}

.power-row:hover {
    background-color: #f0f0f0;
}

.power-row td {
    cursor: pointer !important;
}

.power-row td:last-child {
    cursor: default !important;
}

.power-row td:last-child button {
    cursor: pointer !important;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    transition: background-color 0.2s;
}

.power-row td:last-child button.add-power {
    background-color: #28a745;
}

.power-row td:last-child button.add-power:hover {
    background-color: #218838;
}

.power-row td:last-child button.remove-power {
    background-color: #dc3545;
}

.power-row td:last-child button.remove-power:hover {
    background-color: #c82333;
}

.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.error {
    color: red;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid red;
    border-radius: 4px;
    display: none;
}

/* Debug panel styles */
.debug-toggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1001;
    background: #333;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    cursor: pointer;
    font-family: monospace;
    border-radius: 4px;
}

.debug-toggle:hover {
    background: #444;
}

#debugPanel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 300px;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border-top-left-radius: 8px;
    border: 1px solid #00ff00;
}

#debugContent {
    height: calc(100% - 20px);
    overflow-y: auto;
    padding: 5px;
}

.debug-entry {
    margin-bottom: 5px;
    padding: 2px;
}

.debug-timestamp {
    color: #888;
}

.debug-message {
    color: #00ff00;
}

.debug-data {
    color: #00ffff;
    margin-left: 20px;
    font-size: 0.9em;
    white-space: pre-wrap;
}

/* Skills styles */
.category-section {
    margin-bottom: 2rem;
}

.category-section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.skill-card:hover {
    transform: translateY(-2px);
}

.skill-card h3 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.skill-card .attribute {
    color: #3498db;
    font-weight: bold;
    margin: 0.5rem 0;
}

.skill-card .description {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.skill-card .specializations,
.skill-card .midgard {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.skill-card h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.skill-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.skill-card li {
    color: #666;
    font-size: 0.9rem;
    margin: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.skill-card li:before {
    content: "\2022";
    color: #3498db;
    position: absolute;
    left: 0;
    font-family: Arial, sans-serif;
}

/* Mini custom checkbox for skills */
.mini-check {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #007bff;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    vertical-align: text-bottom;
}

.mini-check.checked {
    background-color: #007bff;
}

.mini-check.checked::after {
    content: '\2713';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    font-size: 12px;
    line-height: 1;
}

.mini-check.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Settings styles */
.settings-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-section h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.setting-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.setting-label {
    margin-left: 1rem;
    color: #2c3e50;
}

/* In search bars, rely on flex gap for spacing between toggle and label */
.search-container .setting-label {
    margin-left: 0;
}

.setting-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 3rem;
}

/* Toggle switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Small switch variant for inline filters */
.switch.small {
    width: 42px;
    height: 22px;
}

.switch.small .slider:before {
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
}

.switch.small input:checked + .slider:before {
    transform: translateX(20px);
}

/* Character Management styles */
.character-list {
    margin-bottom: 1rem;
}

.character-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.character-item.active {
    background: #e9ecef;
    border-color: #007bff;
}

.character-item:hover {
    background: #f8f9fa;
}

.character-name {
    font-weight: 500;
}

.character-actions {
    display: flex;
    gap: 0.5rem;
}

.character-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.character-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.character-form button {
    padding: 0.5rem 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.character-form button:hover {
    background: #218838;
}

.delete-character {
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.delete-character:hover {
    background: #c82333;
}

.selected-character {
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
    color: #666;
}

.selected-character span:first-child {
    color: #495057;
    font-weight: 500;
}

#currentCharacterDisplay {
    color: #007bff;
    font-weight: 500;
}

.character-selector select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.character-selector select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Replace the info-icon tooltip styles with new div-based tooltip */
.info-icon {
    color: #666;
    cursor: help;
    font-size: 14px;
    font-style: italic;
    margin-left: 4px;
    position: relative;
}

.info-icon:hover {
    color: #333;
}

.tooltip {
    display: none;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    padding: 12px 16px;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    white-space: pre-wrap;
    max-width: 600px;
    min-width: 400px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-left: 8px;
    line-height: 1.4;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    border: 12px solid transparent;
    border-right-color: #333;
    margin-left: -12px;
}

.info-icon:hover .tooltip {
    display: block;
}

/* Ensure proper list styling */
.modifiers-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modifiers-section li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
}

.modifiers-section li:before {
    content: "\2022";
    color: #3498db;
    position: absolute;
    left: 0;
}

/* Edges styles */
.edge-category {
    margin-bottom: 2rem;
}

.edge-category h2 {
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.edges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.edge-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    border-left: 4px solid #e74c3c;
}

.edge-card:hover {
    transform: translateY(-2px);
}

.edge-card h3 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.edge-card .requirement {
    color: #e74c3c;
    font-weight: bold;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.edge-card .effect {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.edge-card .midgard {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.category-filters {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.category-filters h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    padding: 6px 12px;
    border: 2px solid #007bff;
    background-color: #007bff;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Edges layout - clean and simple */
.edges-top-controls {
    background-color: white;
    padding: 20px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.edges-main-content {
    padding: 0 20px;
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
}

.category-navigation h3 {
    margin: 15px 0 10px 0;
    color: #333;
    font-size: 16px;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: bold;
}

/* Sticky search and filter controls */
.search-container {
    margin-bottom: 20px;
}

.category-filters {
    margin-bottom: 0;
}

/* Category sections and tables */
.category-section {
    margin-bottom: 30px;
}

.category-headline {
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}

.edges-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.edges-table th {
    background-color: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.edges-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.4;
}

.edge-row {
    transition: background-color 0.2s ease;
}

.edge-row:hover {
    background-color: #f8f9fa;
}

.edge-row td:first-child {
    font-weight: bold;
    color: #2c3e50;
}

.edge-row td:nth-child(2) {
    color: #495057;
    font-family: monospace;
    font-size: 13px;
}

.edge-row td:nth-child(3) {
    color: #212529;
    max-width: 400px;
}

.edge-row td:last-child {
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
}

/* Character sheet (web) */
.character-sheet { 
    background: #fff; 
    border-radius: 8px; 
    padding: 1.5rem; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    margin-bottom: 1.5rem; 
}

.character-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 1rem; 
}

.attributes-inline { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px; 
    background: #fff; 
    border: 1px solid #dee2e6; 
    border-radius: 8px; 
    flex-wrap: wrap; 
}

.attribute-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 4px 12px; 
}

.attribute-item + .attribute-item { 
    border-left: 1px solid #e9ecef; 
}

.attribute-label { 
    color: #6c757d; 
    font-weight: 500; 
}

.attribute-select { 
    padding: 8px 12px; 
    border: 1px solid #dee2e6; 
    border-radius: 6px; 
    font-size: 14px; 
}

.attribute-select.select-small { 
    width: auto; 
    min-width: 64px; 
    padding: 4px 8px; 
    font-size: 13px; 
}

.character-section { 
    margin-top: 1.5rem; 
}

.character-section h3 { 
    margin: 0 0 0.5rem 0; 
}

.character-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; 
    border: 1px solid #dee2e6; 
    border-radius: 8px; 
    overflow: visible; 
    text-align: left;
    margin-right: 15px;
}

.character-table th, .character-table td { 
    padding: 10px 12px; 
    border-bottom: 1px solid #dee2e6; 
    text-align: left; 
}

/* Skills table specific styling */
.skills-table {
    width: auto;
    table-layout: auto;
}

.skills-table th:first-child,
.skills-table td:first-child {
    width: auto;
    min-width: fit-content;
    white-space: nowrap;
}

.skills-table th:last-child,
.skills-table td:last-child {
    max-width: 200px;
    word-wrap: break-word;
}

.character-table th { 
    background: #f8f9fa; 
    font-weight: bold; 
}

/* Character tabs styling */
.character-tabs {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
    gap: 0;
}

.tab-button {
    background: #f8f9fa;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    border-radius: 8px 8px 0 0;
}

.tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-button.active {
    background: #fff;
    color: #2c3e50;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.tab-content {
    display: none;
}

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

/* Dice selector styles */
.dice-selector-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    margin-top: 2px;
    padding: 4px;
}

/* Ensure dice selectors in tables are fully visible */
.character-table .dice-selector {
    position: relative;
    z-index: 9998;
}

.character-table .dice-selector-menu {
    z-index: 9999;
}

/* Dice number overlay styles */
.dice-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: bold;
    font-size: 14px;
    pointer-events: none;
    text-shadow: 
        1px 1px 0 white, 
        -1px -1px 0 white, 
        1px -1px 0 white, 
        -1px 1px 0 white,
        0 0 2px white;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.derived-inline { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px; 
    background: #fff; 
    border: 1px solid #dee2e6; 
    border-radius: 8px; 
}

.derived-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 4px 12px; 
}

.derived-item + .derived-item { 
    border-left: 1px solid #e9ecef; 
}

.derived-label { 
    color: #6c757d; 
    font-weight: 500; 
}

.derived-value { 
    color: #2c3e50; 
    font-weight: 600; 
}

/* Generic action button */
.action-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-button.add { 
    background-color: #28a745; 
}

.action-button.add:hover { 
    background-color: #218838; 
}

.action-button.remove { 
    background-color: #dc3545; 
}

.action-button.remove:hover { 
    background-color: #c82333; 
}

/* Icon buttons for character actions */
.icon-button {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.icon-button.check { 
    border-color: #28a745; 
    background-color: #28a745; 
    color: #fff; 
}

.icon-button.check:hover { 
    background-color: #218838; 
    border-color: #218838; 
    color: #fff; 
}

.icon-button.delete { 
    border-color: #dc3545; 
    color: #dc3545; 
}

.icon-button.delete:hover { 
    background: #faeaea; 
}

/* Auth overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Generic modal overlay (semi-transparent black) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.auth-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 360px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.auth-card h3 { 
    margin: 0 0 12px 0; 
    color: #2c3e50; 
}

.auth-card input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.auth-error { 
    color: #dc3545; 
    margin-top: 8px; 
    font-size: 0.9rem; 
}

/* Hindrances styles */
.hindrance-section {
    margin-bottom: 2rem;
}

.hindrance-section h3 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.hindrance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.hindrance-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.hindrance-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hindrance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.hindrance-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    flex: 1;
}

.hindrance-severity {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.hindrance-severity.minor {
    background-color: #ffc107;
    color: #212529;
}

.hindrance-severity.major {
    background-color: #dc3545;
    color: white;
}

.hindrance-severity.minor-major {
    background-color: #fd7e14;
    color: white;
}

.hindrance-description {
    color: #666;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Hindrance checkboxes and severity container */
.hindrance-severity-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.hindrance-severity-with-checkbox {
    margin-bottom: 4px;
}

/* Severity badges with checkbox functionality */
.hindrance-severity {
    display: inline-block;
    padding: 4px 24px 4px 8px; /* Extra padding on right for checkbox */
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.hindrance-severity:hover {
    opacity: 0.8;
}

/* Always show the checkbox container */
.hindrance-severity::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 2px;
    width: 14px;
    height: 14px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Show checkmark when checked */
.hindrance-severity.checked::after {
    content: '\2713';
    font-size: 10px;
    line-height: 1;
    font-weight: bold;
    color: #000;
}

/* Severity colors */
.hindrance-severity.minor {
    background-color: #ffc107;
    color: #000;
}

.hindrance-severity.major {
    background-color: #dc3545;
    color: white;
}

.hindrance-severity.minor-major {
    background-color: #fd7e14;
    color: white;
}

/* Adjust hindrance header for new layout */
.hindrance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.hindrance-header h4 {
    flex: 1;
    margin: 0;
}
