/* Field validation styles */
input.error,
select.error,
textarea.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

input.valid,
select.valid,
textarea.valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.field-error {
    color: #dc3545;
    font-size: 10px;
    margin-top: 2px;
    display: block;
}

/* Menu button active state */
#menu .button.active {
    background-color: #A50034;
    color: white;
    font-weight: bold;
}

/* Status indicator improvements */
#nosaving {
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Form section transitions */
div[id$="_form"] {
    transition: opacity 0.3s ease;
}

/* Better focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #A50034;
    box-shadow: 0 0 0 2px rgba(165, 0, 52, 0.1);
}

/* ...existing CSS... */

/* Validation errors container */
.validation-errors-container {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    color: #721c24;
    display: none;
    position: sticky;
    top: 10px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.validation-errors-container h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #721c24;
}

.validation-error-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.validation-error-item {
    margin-bottom: 5px;
    line-height: 1.4;
}

.validation-error-item strong {
    color: #721c24;
}

/* Enhanced field error highlighting */
.validation-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
}

.validation-warning {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background-color: rgba(255, 193, 7, 0.1);
    animation: validation-pulse 1s ease-in-out;
}

@keyframes validation-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Visual indicators for field accessibility - no disabling */
/*
.requires-dependency {
    opacity: 0.6;
    border: 1px dashed #ccc !important;
    background-color: #f9f9f9;
    position: relative;
}

.requires-dependency::before {
    content: "⚠️";
    position: absolute;
    right: 2px;
    top: 2px;
    font-size: 10px;
    color: #666;
    pointer-events: none;
    z-index: 1;
}

.accessible {
    opacity: 1;
    border: 1px solid #ccc !important;
    background-color: white;
}

.accessible:hover {
    border-color: #A50034 !important;
}
*/

/* Remove any disabled styling since we're not disabling anymore */
input:disabled,
select:disabled,
textarea:disabled {
    /* Remove these rules or make them very light */
    opacity: 0.6;
    cursor: not-allowed;
}

/* Make sure cutout/channel fields are never visually disabled */
[data-key*="cutout-channel"]:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* ...existing CSS... */