/* Modal Forms (Modular) */

/* Form groups */
.modal .form-group { margin-bottom: 20px; }
.modal .form-group:last-child { margin-bottom: 0; }
.modal .form-group.inline { display: flex; gap: 24px; align-items: end; }
.modal .form-group.inline > div { flex: 1; min-width: 0; }

.modal .form-row { display: flex; gap: 24px; margin-bottom: 15px; }
.modal .form-col-6 { flex: 1; min-width: 0; }

.modal .help-text { font-size: 12px; color: #888; margin-top: 4px; line-height: 1.4; }

/* File inputs & previews */
.modal .file-input { display: none; }
.modal .file-preview { margin-top: 15px; display: none; }
.modal .preview-item { display: flex; align-items: center; gap: 10px; background: #2a2a2a; padding: 10px; border-radius: 6px; border: 1px solid #444; }
.modal .preview-item img, .modal .preview-item video { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.modal .preview-item i { font-size: 40px; color: #888; width: 60px; text-align: center; }
.modal .preview-item span { font-size: 13px; color: #ccc; word-break: break-all; }

/* Upload area */
.modal .file-upload-area { border: 2px dashed #444; border-radius: 8px; padding: 24px; text-align: center; background: #2a2a2a; transition: all 0.2s ease; cursor: pointer; }
.modal .file-upload-area:hover { border-color: #5865f2; background: rgba(88, 101, 242, 0.05); }
.modal .file-upload-area.dragover { border-color: #5865f2; background: rgba(88, 101, 242, 0.1); }
.modal .file-upload-area i { font-size: 32px; color: #5865f2; margin-bottom: 12px; display: block; }
.modal .file-upload-area p { margin: 0; color: #fff; font-weight: 500; }
.modal .file-upload-area .help-text { margin-top: 8px; }

/* Sectioned forms */
.form-section { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 24px; margin-bottom: 24px; transition: all 0.3s ease; }
.form-section:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(88, 101, 242, 0.3); }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.section-header i { color: #5865f2; font-size: 18px; }
.section-header h4 { margin: 0; color: #fff; font-size: 16px; font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
  .modal .form-row { flex-direction: column; gap: 0; }
  .form-section { padding: 16px; margin-bottom: 16px; }
}

