.requested-alt-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}
.requested-alt-wrapper input {
    flex: 1;
}
.remove-alt-btn {
    margin-left: 6px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 18px;
    cursor: pointer;
}
/* Edit Project Form  */
.project-form-header-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, var(--slate) 50%, var(--light-slate) 80%) !important;
    padding: 10px;
    border-radius: 12px 12px 0px 0px;
    width: 100%;
    max-width: 1400px;
}
.project-form-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: whitesmoke;  
    margin-left: 20px;
}
.project-form-header-actions {
    display: flex;
    gap: 1rem;
}
.header-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 30px;
    font-size: 1.5rem;
    color: #fff;
    background: #3b82f6;
    border: none;
    border-radius: 8px; /* Match form border radius */
    text-decoration: none;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.08);
    transition: background 0.2s;
    padding: 0;
}
.header-add-btn:hover {
    background: #2563eb;
}
.header-add-icon {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: bold;
}
.project-list-container {
    border-radius: 10px;
    padding: 0.5rem 0.5rem;
    margin: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--slate) 50%, var(--light-slate) 80%) !important;
    width: 95%;
}
/* These 2 classes are added to the edit-project page in the wp ui  
   For control over the column layout */
.ku-projects-list-column {
    min-width: 380px;
}
.ku-projects-form-column {
 
}

.project-list-container .project-row {
    display: flex;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.5rem;
    margin: 0.5rem;
    width: auto;
    justify-content: space-between;
    background: white;
}
.project-row .project-status {
    font-size: 0.9em;
    color: #6b7280;
    justify-content: space-between;
}
.pods-form-filters-project {
    margin-bottom: 20px;
}
.project-list-container-header {
    font-size: 1.5rem;
    padding: 0.5rem 0.5rem;
    font-weight: 600;
}
.project-list-container form div:first-child {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: -11px !important;
    width: 320px;
}

.pods-form-ui-field-name-filter-project-status {
    position: relative !important;
    margin-top: 8px !important;
    margin-left: 30px !important;
    height: 30px !important;
    font-size: .9rem !important;
    width: 200px !important;
    min-width: 200px !important;
}
.pods-form-filters-project .pods-dfv-field--loaded {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: -11px !important;
}
.pods-form-filters-search {
    margin-left: 3em !important;
    height: 30px !important;
    font-size: .9rem !important;
    border-radius:10px;
}
.pods-form-filters-submit {
    margin-left: 1em !important;
    margin-right: 1em !important;
    border-radius: 10px;
    font-size: 1rem !important;
    height: 30px !important;
    max-height: 30px !important;
    min-height: 30px !important;
}
.ku-form,
.edit-project-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(125deg, var(--slate) 20%, var(--light-slate) 90%) !important;
    padding: 0.75rem !important;
    border-radius: 0px 0px 12px 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0px !important;
}

.ku-form-row,
.edit-project-form .form-row {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    align-items: flex-start !important;
}
.ku-form-field,
.edit-project-form .form-field {
    flex: 1 !important;
    background: #ffffff !important;
    padding: 0.75rem !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out !important;
    position: relative !important;
    overflow: hidden !important;
}
.ku-form .ku-form-field:hover,
.edit-project-form .form-field:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-1px) !important;
}
.ku-form .ku-form-field label,
.edit-project-form .form-field label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #475569 !important;
    margin-bottom: 0.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.075em !important;
    line-height: 1.0 !important;
}

.edit-project-form .project-final-price-field {
    flex-basis: 12% !important;
    flex-grow: 0.7 !important;
}        
.ku-form-field input,
.ku-form-field select,
.ku-form-field textarea,
.edit-project-form .form-field input,
.edit-project-form .form-field select,
.edit-project-form .form-field textarea {
    width: 100% !important;
    padding: 0.6rem 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    background-color: #fafafa !important;
    color: #1f2937 !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
}
.ku-form .ku-form-field input:focus,
.ku-form .ku-form-field select:focus,
.ku-form .ku-form-field textarea:focus,
.edit-project-form .form-field input:focus,
.edit-project-form .form-field select:focus,
.edit-project-form .form-field textarea:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
}
.ku-form .ku-form-field textarea,
.edit-project-form .form-field textarea {
    min-height: 70px !important;
    resize: vertical !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}
.ku-form .ku-form-field select[multiple], 
.edit-project-form .form-field select[multiple] {
    min-height: 60px !important;
    padding: 0.4rem !important;
    line-height: 1.3 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 1px solid #d1d5db !important;
    background: #fafafa !important;
    caret-color: transparent !important;
    -webkit-text-fill-color: inherit !important;
}
.ku-form .ku-form-field select[multiple] option,
.edit-project-form .form-field select[multiple] option {
    padding: 0.2rem 0.4rem !important;
    margin: 0.1rem 0 !important;
    border-radius: 3px !important;
    background: #f8fafc !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    caret-color: transparent !important;
    -webkit-text-fill-color: inherit !important;
}
.ku-form .ku-form-field select[multiple] option:checked,
.edit-project-form .form-field select[multiple] option:checked {
    background: #3b82f6 !important;
    color: #ffffff !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    caret-color: transparent !important;
    -webkit-text-fill-color: #ffffff !important;
}
.ku-form .ku-form-field select[multiple] option:checked:focus,
.edit-project-form .form-field select[multiple] option:checked:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    caret-color: transparent !important;
}
.ku-form .ku-form-field select[multiple] option:focus,
.edit-project-form .form-field select[multiple] option:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    caret-color: transparent !important;
}
.ku-form .ku-form-field select[multiple]:focus,
.edit-project-form .form-field select[multiple]:focus {
    caret-color: transparent !important;
}

/* Select2 specific fixes */
.edit-project-form .select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #3b82f6 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 0.2rem 0.5rem !important;
    margin: 0.1rem !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    margin-right: 20px !important;
}

/* Ensure art field Select2 choices match others exactly */
.edit-project-form .project-art-field .select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #3b82f6 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 0.2rem 0.5rem !important;
    margin: 0.1rem !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.edit-project-form .select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff !important;
    font-weight: bold !important;
    margin-right: 0.3rem !important;
    border: none !important;
    background: none !important;
    display: none !important; /* Hide the X button completely */
}

/* Ensure art field remove buttons are also hidden */
.edit-project-form .project-art-field .select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff !important;
    font-weight: bold !important;
    margin-right: 0.3rem !important;
    border: none !important;
    background: none !important;
    display: none !important; /* Hide the X button completely */
}

.edit-project-form .select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: none !important;
    color: #ffffff !important;
}

/* Hide any vertical lines or separators in Select2 */
.edit-project-form .select2-container .select2-selection--multiple .select2-selection__choice:before,
.edit-project-form .select2-container .select2-selection--multiple .select2-selection__choice:after {
    display: none !important;
}

.edit-project-form .select2-container .select2-selection--multiple {
    border: 1px solid #d1d5db !important;
    background: #fafafa !important;
    border-radius: 6px !important;
    min-height: 60px !important;
    padding: 0.2rem !important;
    margin-right: 20px !important;
}

/* Condensed relationship field layout */
.edit-project-form .form-field.project-supporters-field,
.edit-project-form .form-field.project-characters-field,
.edit-project-form .form-field.project-wish-field,
.edit-project-form .form-field.project-catalog-field,
.edit-project-form .form-field.project-payments-field,
.edit-project-form .form-field.project-requested-alts-field {
    position: relative !important;
}

.edit-project-form .form-field.project-supporters-field label,
.edit-project-form .form-field.project-characters-field label,
.edit-project-form .form-field.project-wish-field label,
.edit-project_form .form-field.project-catalog-field label,
.edit-project-form .form-field.project-payments-field label {
    position: absolute !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
    z-index: 1 !important;
    background: white !important;
    padding: 0 0.25rem !important;
    margin: 0 !important;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    pointer-events: none !important;
}

.edit-project-form .form-field.project-requested-alts-field label {
    position: absolute !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
    z-index: 1 !important;
    background: transparent !important;
    padding: 0 0.25rem !important;
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.075em !important;
    pointer-events: none !important;
}

/* Catalog field positioning */
.edit-project-form .form-field.project-catalog-field .select2-container {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    width: calc(100% - 9rem) !important;
    z-index: 2 !important;
}

.edit-project-form .form-field.project-catalog-field .select2-selection--single {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    height: 32px !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.75rem !important;
}

.edit-project-form .form-field.project-catalog-field .select2-selection__rendered {
    line-height: 28px !important;
    color: #374151 !important;
}

.edit-project-form .form-field.project-catalog-field .select2-selection__placeholder {
    color: #9ca3af !important;
}

.edit-project-form .form-field.project-catalog-field .select2-selection__arrow {
    right: 0.5rem !important;
    top: 4px !important;
}

/* Catalog field wrapper styling */
.edit-project-form .form-field.project-catalog-field .catalog-selected-wrapper {
    margin-top: 0.5rem !important;
    padding: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    min-height: 70px !important;
    margin: auto !important;
    position: relative !important;
}

/* Move Select2 container inline with label */
.edit-project-form .form-field.project-supporters-field .select2-container,
.edit-project-form .form-field.project-characters-field .select2-container,
.edit-project-form .form-field.project-wish-field .select2-container,
.edit-project-form .form-field.project-payments-field .select2-container,
.edit-project-form .form-field.project-requested-alts-field .select2-container {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    width: calc(100% - 7rem) !important;
    z-index: 2 !important;
}

/* Hide the main selection area initially, show only search */
.edit-project-form .form-field.project-supporters-field .select2-selection--multiple,
.edit-project-form .form-field.project-characters-field .select2-selection--multiple,
.edit-project-form .form-field.project-wish-field .select2-selection--multiple {
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    min-height: 32px !important;
    padding: 0.2rem !important;
    overflow: hidden !important;
}

/* Show only the search field in the inline area */
.edit-project-form .select2-search--inline {
    display: inline-block !important;
    width: 180px !important;
}

.edit-project-form .select2-search--inline .select2-search__field {
    width: 100% !important;
    padding: 0.3rem 0.5rem !important;
    font-size: 0.75rem !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
}

/* Hide selected choices from the inline area */
.edit-project-form .form-field.project-supporters-field .select2-selection__rendered,
.edit-project-form .form-field.project-characters-field .select2-selection__rendered,
.edit-project-form .form-field.project-wish-field .select2-selection__rendered {
    display: block !important;
    padding: 0.4rem !important;
    min-height: 40px !important;
}

/* Create a separate area below for selected items */
.edit-project-form .form-field.project-supporters-field::after,
.edit-project-form .form-field.project-characters-field::after,
.edit-project-form .form-field.project-wish-field::after {
    content: '' !important;
    display: block !important;
    clear: both !important;
    margin-top: 0.5rem !important;
}

/* Fix select overflow in wish field */
.edit-project-form .form-field select {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1rem !important;
    padding-right: 2rem !important;
}

/* Remove dropdown arrow from multiple selects */
.edit-project-form .form-field select[multiple] {
    background-image: none !important;
    padding-right: 0.4rem !important;
}

.edit-project-form .form-field input[type="file"] {
    padding: 0.75rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 6px !important;
    text-align: center !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
}

.edit-project-form .form-field input[type="file"]:hover {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
}

.edit-project-form .form-field input[type="date"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 2v6m8-6v6M4 10h12'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.5rem center !important;
    background-size: 0.875rem !important;
    padding-right: 2rem !important;
    border: 1px solid #d1d5db !important;
    background-color: #fafafa !important;
}

/* Remove any browser-specific date picker symbols */
.edit-project-form .form-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    position: absolute !important;
    right: 0.5rem !important;
    width: 0.875rem !important;
    height: 0.875rem !important;
    cursor: pointer !important;
}

.edit-project-form .form-field input[type="date"]::-webkit-inner-spin-button,
.edit-project-form .form-field input[type="date"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.edit-project-form .form-field input[type="date"]::-moz-clear {
    display: none !important;
}

/* Enhanced Field Type Styling - More Condensed */
.edit-project-form .project-featured-image-field {
    background: linear-gradient(135deg, #fef7f7 0%, #ffffff 95%) !important;
    border-left: 3px solid #ef4444 !important;
    min-height: auto !important;
    padding: 0.75rem !important;
}

.edit-project-form .project-featured-image-field .preview {
    margin-top: 0.75rem !important;
    padding: 0.5rem !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    text-align: center !important;
}

.edit-project-form .project-featured-image-field .preview img {
    max-width: 100% !important;
    max-height: 200px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out !important;
    border: 1px solid #e2e8f0 !important;
    object-fit: cover !important;
}

.edit-project-form .project-featured-image-field .preview img:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.15) !important;
}

.edit-project-form .project-finished-products-field {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 95%) !important;
    border-left: 3px solid #3b82f6 !important;
    min-height: auto !important;
    padding: 0.75rem !important;
}

.edit-project-form .project-art-field {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 95%) !important;
    border-left: 3px solid #10b981 !important;
    min-height: 180px !important;
    padding: 0.75rem !important;
}

.edit-project-form .project-art-field .preview {
    margin-top: 0.75rem !important;
    padding: 0.5rem !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    text-align: center !important;
}

.edit-project-form .project-art-field .preview img {
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    max-height: 150px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out !important;
    border: 1px solid #e2e8f0 !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.edit-project-form .project-art-field .preview img:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2) !important;
}

/* General preview styling - applies to fields without specific styling */
.edit-project-form .preview:not(.project-art-field .preview):not(.project-finished-products-field .preview):not(.project-featured-image-field .preview) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid #f1f5f9 !important;
    width: 100% !important;
}

.edit-project-form .preview:not(.project-art-field .preview):not(.project-finished-products-field .preview):not(.project-featured-image-field .preview) img {
    border-radius: 6px !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out !important;
    height: auto !important;
    border: 1px solid #ffffff !important;
    flex: 0 0 calc(50% - 0.25rem) !important;
    max-width: calc(50% - 0.25rem) !important;
    object-fit: cover !important;
}

.edit-project-form .preview:not(.project-art-field .preview):not(.project-finished-products-field .preview):not(.project-featured-image-field .preview) img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.1) !important;
    border-color: #e2e8f0 !important;
}

/* Specific styling for finished products - square thumbnails */
.edit-project-form .project-finished-products-field .preview {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
    padding: 0.5rem !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    width: 100% !important;
}

.edit-project-form .project-finished-products-field .preview img {
    border-radius: 4px !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out !important;
    width: 80px !important;
    height: 80px !important;
    border: 1px solid #e2e8f0 !important;
    flex: 0 0 80px !important;
    object-fit: cover !important;
    display: block !important;
}

/* More specific WordPress image targeting - square thumbnails */
.edit-project-form .project-finished-products-field .preview img.attachment-medium,
.edit-project-form .project-finished-products-field .preview img[class*="wp-image-"],
.edit-project-form .project-finished-products-field .preview img[src] {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    flex: 0 0 80px !important;
    display: block !important;
}

/* Target WordPress specific classes more aggressively - force square */
.edit-project-form .project-finished-products-field .preview img.attachment-medium.size-medium,
.edit-project-form .project-finished-products-field .preview img.mwl-img,
.edit-project-form .project-finished-products-field .preview img[class*="wp-image-"][width],
.edit-project-form .project-finished-products-field .preview img[class*="wp-image-"][height] {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    object-fit: cover !important;
    flex: 0 0 80px !important;
    display: block !important;
    box-sizing: border-box !important;
}

.edit-project-form .project-finished-products-field .preview img:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.1) !important;
    border-color: #e2e8f0 !important;
}

/* Condensed Button Styling */
.ku-form-submit-container .ku-form-submit-button,
.edit-project-form .submit-button,
.edit-project-form .button {
    padding: 0.6rem 1.25rem !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    letter-spacing: 0.025em !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.edit-project-form .submit-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 5px -1px rgba(59, 130, 246, 0.3) !important;
}

.edit-project-form .submit-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 10px -2px rgba(59, 130, 246, 0.2) !important;
}

.edit-project-form .button {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 0.5rem !important;
    font-size: 0.75rem !important;
    padding: 0.5rem 1rem !important;
}

.edit-project-form .button:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
    border-color: #94a3b8 !important;
}

.edit-project-form .form-actions {
    display: flex !important;
    justify-content: flex-start !important;
    margin-top: 1rem !important;
    padding-top: 0.75rem !important;
}

.edit-project-form #requested-alts-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    margin-top: 2rem !important;
    padding: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    min-height: 50px !important;
}

.edit-project-form #requested-alts-container input {
    margin-bottom: 0 !important;
    font-size: 0.875rem !important;
    padding: 0.5rem !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
}

.edit-project-form .project-requested-alts-field .button {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.75rem !important;
    margin: 0 !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem !important;
    min-width: 80px !important;
}

/* Success Message - Condensed */
.edit-project-form .notice.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #065f46 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 6px !important;
    border-left: 3px solid #10b981 !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Focus Enhancement */
.edit-project-form .form-field:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08) !important;
}

/* Ensure proper container behavior */
.edit-project-form * {
    box-sizing: border-box !important;
}

/* Fix dropdown overflow specifically */
.edit-project-form select option {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Custom field widths for first row - better spacing */
.edit-project-form .project-title-field {
    flex-basis: 30% !important;
    flex-grow: 1.5 !important;
}

.edit-project-form .project-status-field {
    flex-basis: 16% !important;
    flex-grow: 1 !important;
}

.edit-project-form .project-need-by-field {
    flex-basis: 14% !important;
    flex-grow: 0.9 !important;
}


/* Simple CSS-only solution for relationship field inline layout */
.edit-project-form .form-field.project-supporters-field,
.edit-project-form .form-field.project-characters-field,
.edit-project-form .form-field.project-wish-field,
.edit-project-form .form-field.project-payments-field,
.edit-project-form .form-field.project-catalog-field,
.edit-project-form .form-field.project-requested-alts-field {
    position: relative !important;
    padding: 0.5rem 0.5rem 0.2rem 0.5rem !important;
    min-height: 80px !important;
    margin-bottom: 0.5rem !important;
}

/* Last row fields should fit content naturally */
.edit-project-form .form-field.project-requested-alts-field,
.edit-project-form .form-field.project-art-field,
.edit-project-form .form-field.project-featured-image-field,
.edit-project-form .form-field.project-finished-products-field {
    min-height: auto !important;
    height: auto !important;
    align-self: flex-start !important;
}

.edit-project-form .form-field.project-supporters-field label,
.edit-project-form .form-field.project-characters-field label,
.edit-project-form .form-field.project-wish-field label,
.edit-project-form .form-field.project-payments-field label,
.edit-project-form .form-field.project-catalog-field label {
    position: absolute !important;
    top: 0.5rem !important;
    left: 0.75rem !important;
    right: 140px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 5 !important;
}

.edit-project-form .form-field.project-supporters-field .select2-container,
.edit-project-form .form-field.project-characters-field .select2-container,
.edit-project-form .form-field.project-wish-field .select2-container,
.edit-project-form .form-field.project-payments-field .select2-container {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.75rem !important;
    left: auto !important;
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
    height: 24px !important;
    z-index: 10 !important;
    float: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Special styling for catalog field - move select box down to selected items area */
.edit-project-form .form-field.project-catalog-field .select2-container {
    position: absolute !important;
    top: 2.25rem !important;
    bottom: auto !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    width: calc(100% - 1.5rem) !important;
    height: 36px !important;
    z-index: 10 !important;
}

.edit-project-form .form-field.project-catalog-field .select2-selection--single {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    margin: 0em 1em !important;
    padding: 6px 12px !important;
    background-image: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

.edit-project-form .form-field.project-catalog-field .select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 20px !important;
    color: #1f2937 !important;
    font-size: 0.8rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.edit-project-form .form-field.project-catalog-field .select2-selection__placeholder {
    color: #9ca3af !important;
    font-style: italic !important;
}

.edit-project-form .form-field.project-catalog-field .select2-selection__arrow {
    display: none !important;
}

.edit-project-form .form-field.project-catalog-field .select2-selection__clear {
    color: #6b7280 !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    padding: 2px 4px !important;
    border-radius: 2px !important;
}

.edit-project-form .form-field.project-catalog-field .select2-selection__clear:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

/* Override any conflicting Select2 positioning */
.edit-project-form .form-field.project-supporters-field .select2-container .select2-selection,
.edit-project-form .form-field.project-characters-field .select2-container .select2-selection,
.edit-project-form .form-field.project-wish-field .select2-container .select2-selection {
    position: relative !important;
    width: 120px !important;
    max-width: 120px !important;
}

/* Force override any WordPress block or theme styles */
.edit-project-form .form-field.project-supporters-field .select2-container,
.edit-project-form .form-field.project-characters-field .select2-container,
.edit-project-form .form-field.project-wish-field .select2-container {
    transform: none !important;
    left: auto !important;
    right: 0.75rem !important;
    top: 0.5rem !important;
    bottom: auto !important;
}

/* Hide the original select elements in these fields since Select2 replaces them */
.edit-project-form .form-field.project-supporters-field select,
.edit-project-form .form-field.project-characters-field select,
.edit-project-form .form-field.project-wish-field select,
.edit-project-form .form-field.project-payments-field select,
.edit-project-form .form-field.project-catalog-field select {
    display: none !important;
}

/* Style the Select2 selection containers to be compact */
.edit-project-form .form-field.project-supporters-field .select2-selection--multiple,
.edit-project-form .form-field.project-characters-field .select2-selection--multiple,
.edit-project-form .form-field.project-wish-field .select2-selection--multiple,
.edit-project-form .form-field.project-payments-field .select2-selection--multiple,
.edit-project-form .form-field.project-catalog-field .select2-selection--single {
    width: 120px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    padding: 2px 6px !important;
    overflow: hidden !important;
}

/* Hide selected items in the Select2 containers since we'll show them below */
.edit-project-form .form-field.project-supporters-field .select2-selection__choice,
.edit-project-form .form-field.project-characters-field .select2-selection__choice,
.edit-project-form .form-field.project-wish-field .select2-selection__choice,
.edit-project-form .form-field.project-payments-field .select2-selection__choice {
    display: none !important;
}

/* Make Select2 dropdown results wider for better option display */
.edit-project-form .select2-dropdown {
    min-width: 250px !important;
    width: auto !important;
}

.edit-project-form .select2-results {
    min-width: 250px !important;
    width: auto !important;
}

.edit-project-form .select2-results__option {
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Style for selected items wrapper - much simpler approach */
.selected-items-wrapper {
    margin-top: 0.5rem !important;
    padding: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
}

.selected-items-container {
    min-height: 20px !important;
}

.selected-items-container .selected-item {
    display: inline-block !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0.15rem 0.25rem 0.15rem 0 !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    border: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    font-weight: 500 !important;
}

.edit-project-form .project-payments-field {
    flex-basis: 20% !important;
    flex-grow: 1.1 !important;
}

/* Payments Popup Styles */
#payments-popup {
    animation: fadeInPopup 0.2s;
}
@keyframes fadeInPopup {
    from { opacity: 0; transform: translate(-50%,-60%); }
    to { opacity: 1; transform: translate(-50%,-50%); }
}
.header-payments-btn svg {
    display: inline-block;
    vertical-align: middle;
}
.header-payments-btn:hover svg rect {
    stroke: #2563eb;
}
#close-payments-popup {
    transition: color 0.15s;
}
#close-payments-popup:hover {
    color: #ef4444;
}