/**
 * Modal and Form Components - CSP Compliant Styles
 * Moved from inline JavaScript styles to external CSS
 * Last updated: Feb 24, 2026
 */

/* === Upload Modal & File Management === */

/* Error message styling */
.error-message {
  color: red;
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* Success message styling */
.success-message {
  color: green;
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* Warning message styling */
.warning-message {
  color: #ff6600;
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* Modal upload area (drag & drop) */
.upload-area {
  border: 2px dashed #0a66c2;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: #f9f9f9;
  transition: all 0.2s;
}

.upload-area:hover {
  background: #f0f5ff;
  border-color: #0066cc;
}

.upload-area:active,
.upload-area.drag-over {
  background: #e6f0ff;
  border-color: #0066cc;
}

/* Upload icon emoji */
.upload-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

/* Upload area heading text */
.upload-heading {
  color: #0a66c2;
  font-weight: 600;
  margin: 0 0 4px 0;
  padding: 0;
}

/* Upload help text */
.upload-help-text {
  color: #999;
  font-size: 12px;
  margin: 0;
  padding: 0;
}

/* Label styling for form groups */
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
}

/* Select field styling */
.upload-category-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background-color: white;
  cursor: pointer;
}

/* File input (hidden) */
.file-input-hidden {
  display: none;
}

/* Modal actions container */
.modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

/* Modal action button (cancel) */
.btn-modal-secondary {
  flex: 1;
  padding: 10px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-modal-secondary:hover {
  background: #e0e0e0;
}

/* Modal action button (primary upload) */
.btn-modal-primary {
  flex: 1;
  padding: 10px;
  background: #0a66c2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-modal-primary:hover {
  background: #0056b3;
}

.btn-modal-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* File list item */
.file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  background: #f8f8f8;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 12px;
}

/* File name text */
.file-name-text {
  font-size: 12px;
  flex: 1;
  margin-right: 8px;
  word-break: break-word;
}

/* File remove button */
.remove-file-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  transition: color 0.2s;
}

.remove-file-btn:hover {
  color: #f44;
}

/* Form section spacing */
.form-section {
  margin-bottom: 16px;
}

/* External utility classes */
.flex-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flex-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.flex-1 {
  flex: 1;
}
