.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--light);
    font-size: 1.1rem;
    text-align: center;
}

.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 0.25rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: var(--dark-light);
    color: var(--light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(100, 108, 255, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
    text-align: left;
}

/* Toggle Groups */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--dark-light);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-label {
    flex: 1;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--gray);
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
}

/* Price & Monetization */
.price-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-group .form-group {
    flex: 1;
    margin-bottom: 0;
}

.free-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-top: 1.5rem;
    background: var(--darker);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.checkbox-container {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.checkbox-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-light);
    transition: var(--transition);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkbox-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: var(--gray);
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .checkbox-slider {
    background-color: var(--success);
    border-color: var(--success);
}

input:checked + .checkbox-slider:before {
    transform: translateX(24px);
    background-color: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--light);
}

.checkbox-label i {
    color: var(--success);
}

.checkbox-description {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* Image Upload */
.image-upload-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-upload-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark);
    z-index: 1;
}

.image-upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 46, 0.5);
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.image-upload-placeholder:hover {
    background: rgba(100, 108, 255, 0.1);
    color: var(--primary);
}

.image-upload-placeholder i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.file-input {
    display: none;
}

/* Collaboration */
.search-container {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.autocomplete-dropdown.show {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(100, 108, 255, 0.1);
}

.search-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-username {
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.125rem;
}

.search-result-displayname {
    font-size: 0.85rem;
    color: var(--gray);
}

.search-result-hint {
    font-size: 0.8rem;
    color: var(--gray);
    font-style: italic;
    padding: 0.75rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.collaborators-list {
    margin-top: 1.5rem;
}

.collab-card {
    background: var(--dark-light);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.collab-card:hover {
    border-color: rgba(100, 108, 255, 0.3);
}

.collab-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.collab-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.collab-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.collab-details {
    flex: 1;
    min-width: 0;
}

.collab-username {
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.125rem;
}

.collab-displayname {
    font-size: 0.85rem;
    color: var(--gray);
}

.collab-actions {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: auto;
}

/* Form Messages */
.form-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.form-message.error {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.form-message.success {
    background: rgba(100, 255, 163, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
}

.form-link {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.form-link:hover {
    background: rgba(116, 123, 255, 0.15);
    border-bottom-color: #747bff;
}

#thumbnail-upload {
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

#thumbnail-upload .image-upload-placeholder {
    font-size: 1.2rem;
}

#thumbnail-upload .image-upload-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.role-select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-select:hover:not(:disabled) {
    border-color: var(--primary);
}

.role-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}