/* upload.css — styles for the Upload page */

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Page wrapper */
.upload-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Typography and links (consistent app-wide) */
.upload-page .upload-title {
  color: #000 !important;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.upload-page .upload-files-title {
  color: #000 !important;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.upload-page a {
  color: #3DC6C3;
  text-decoration: none;
}
.upload-page a:hover { text-decoration: underline; }

/* Upload section */
.upload-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  padding: 16px;
}

.upload-dropzone {
  width: 100%;
  height: 170px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  text-align: center;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-dropzone:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.upload-dropzone__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.upload-icon {
  font-size: 48px;
  color: #3DC6C3;
  margin-bottom: 12px;
}
.upload-page .upload-headline {
  font-size: 18px;
  font-weight: 700;
  color: #000 !important;
  margin-bottom: 6px;
}
.upload-page .upload-subtext {
  font-size: 14px;
  color: #64748b !important;
  margin-bottom: 0;
}

.upload-status { margin-top: 12px; }

.upload-actions {
  text-align: right;
  margin-top: 12px;
}

/* Buttons (consistent look) */
.btn {
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-teal { background-color: #3DC6C3; color: #fff; }
.btn-teal:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.15); transform: translateY(-2px); }
.btn-teal:active { transform: translateY(1px); }

/* Table container */
.upload-table-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  padding: 16px;
}

/* Modal Action Buttons - with teal click reaction */
.modal-action-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modal-action-btn:active {
  transform: scale(0.95);
}

/* Teal ripple effect on click */
.modal-action-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(61, 198, 195, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.modal-action-btn:active::after {
  width: 300px;
  height: 300px;
}

/* Button-specific colors */
.btn-primary {
  background-color: #3DC6C3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #35b3b0;
  box-shadow: 0 4px 8px rgba(61, 198, 195, 0.3);
}

.btn-danger {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #dc2626;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-success {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #059669;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Animated PENDING dots - JavaScript handles the animation */
#files-table .pending-status {
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   Unified Upload Modal — blur backdrop (freezes UI)
   ═══════════════════════════════════════════════════════ */
.upload-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.upload-modal-overlay--visible {
  display: flex;
}

.upload-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: uploadModalSlideIn 0.25s ease-out;
}

@keyframes uploadModalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.upload-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.upload-modal-close-btn {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #666;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.upload-modal-close-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

/* "Check Column Mapping" info button */
.btn-info {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-info:hover {
  background-color: #2563eb;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* File confirmation checkbox in modal */
.file-confirm-checkbox {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.file-confirm-checkbox label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.file-confirm-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #3DC6C3;
  cursor: pointer;
}

/* Disabled button states */
.btn-info:disabled,
.btn-success:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-info:disabled:hover,
.btn-success:disabled:hover {
  opacity: 0.45;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .upload-title { font-size: 24px; }
  .upload-files-title { font-size: 18px; }
  .upload-modal-content { width: 96%; padding: 20px; }
}
