/* Form Elements */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: #EAB308;
    box-shadow: 0 0 0 1px #EAB308;
    background: rgba(255, 255, 255, 0.1);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #FEF08A 0%, #EAB308 50%, #CA8A04 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* System Modal Overlay */
.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(2, 6, 23, 0.72) !important;
    backdrop-filter: blur(4px);
    z-index: 9999 !important;
    padding: 1rem;
}

.modal-overlay .modal-content {
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.modal-overlay .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-overlay .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.modal-overlay .modal-body {
    padding: 1rem 1.25rem 1.25rem;
}

.modal-overlay .modal-close {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #94a3b8;
    background: transparent;
    cursor: pointer;
}

.modal-overlay .modal-close:hover {
    color: #f8fafc;
    border-color: rgba(234, 179, 8, 0.5);
}

.modal-overlay .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-overlay .form-group {
    margin-bottom: 1rem;
}

.modal-overlay .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #f8fafc;
}

.modal-overlay .form-control {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-overlay .form-control:focus {
    outline: none;
    border-color: #eab308;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.2);
}

.modal-overlay .form-control::placeholder {
    color: #94a3b8;
}

.modal-overlay .char-counter {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
}

.modal-overlay .tag-selector-container {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
}

.modal-overlay .tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.modal-overlay .tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(234, 179, 8, 0.3);
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
    font-size: 0.8rem;
}

.modal-overlay .remove-tag {
    cursor: pointer;
    color: #f87171;
}

.modal-overlay .tag-input-wrapper {
    position: relative;
}

.modal-overlay .tag-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border-radius: 0.65rem;
    padding: 0.55rem 0.75rem;
}

.modal-overlay .tag-dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    display: none;
    max-height: 180px;
    overflow: auto;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #0f172a;
}

.modal-overlay .tag-option {
    padding: 0.55rem 0.75rem;
    color: #e2e8f0;
    cursor: pointer;
}

.modal-overlay .tag-option:hover {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
}

.modal-overlay .custom-multiselect {
    position: relative;
}

.modal-overlay .multiselect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    cursor: pointer;
}

.modal-overlay .multiselect-selected,
.modal-overlay .multiselect-placeholder {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.modal-overlay .custom-multiselect .multiselect-arrow {
    transition: transform 0.2s ease;
}

.modal-overlay .custom-multiselect.open .multiselect-arrow {
    transform: rotate(180deg);
}

.modal-overlay .multiselect-options {
    display: none;
    position: absolute;
    z-index: 15;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
    background: #0f172a;
    padding: 0.4rem;
}

.modal-overlay .custom-multiselect.open .multiselect-options {
    display: block;
}

.modal-overlay .multiselect-options-container .multiselect-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.4rem;
    border-radius: 0.5rem;
    color: #e2e8f0;
}

.modal-overlay .multiselect-options-container .multiselect-option:hover {
    background: rgba(234, 179, 8, 0.1);
}
