/* IronKit Universal File Upload Component Styles */

.ik-upload {
  width: 100%;
}

/* ─── Drop Zone ──────────────────────────────────────────────── */

.ik-drop-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px dashed rgba(232, 160, 52, 0.35);
  border-radius: 10px;
  background: rgba(232, 160, 52, 0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.ik-drop-zone:hover,
.ik-drop-zone:focus {
  border-color: rgba(232, 160, 52, 0.65);
  background: rgba(232, 160, 52, 0.08);
}

.ik-drop-zone.ik-drag-over {
  border-color: #E8A034;
  background: rgba(232, 160, 52, 0.12);
}

.ik-drop-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.ik-drop-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}

.ik-drop-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #E8E6E1;
}

.ik-drop-text span {
  font-size: 13px;
  color: #8A8880;
}

.ik-drop-hint {
  font-size: 11px !important;
  color: #5A5850 !important;
}

/* ─── File List ──────────────────────────────────────────────── */

.ik-file-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ik-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(26, 26, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.ik-file-done {
  border-color: rgba(232, 160, 52, 0.15);
}

.ik-file-pending {
  opacity: 0.7;
}

/* ─── Preview ────────────────────────────────────────────────── */

.ik-file-preview {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.ik-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.ik-file-icon {
  font-size: 20px;
  line-height: 1;
}

/* ─── File Info ──────────────────────────────────────────────── */

.ik-file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ik-file-name {
  font-size: 13px;
  font-weight: 500;
  color: #E8E6E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ik-file-meta {
  font-size: 11px;
  color: #8A8880;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Badges ─────────────────────────────────────────────────── */

.ik-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ik-badge-text {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.ik-badge-pdf {
  background: rgba(232, 160, 52, 0.12);
  color: #E8A034;
  border: 1px solid rgba(232, 160, 52, 0.2);
}

/* ─── Remove Button ──────────────────────────────────────────── */

.ik-remove-btn {
  background: none;
  border: none;
  color: #5A5850;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.ik-remove-btn:hover {
  color: #E8E6E1;
  background: rgba(255, 255, 255, 0.08);
}

/* ─── Progress Bar ───────────────────────────────────────────── */

.ik-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.ik-progress-fill {
  height: 100%;
  background: #E8A034;
  border-radius: 0 0 8px 8px;
  animation: ik-progress-pulse 1.2s ease-in-out infinite;
  width: 60%;
}

@keyframes ik-progress-pulse {
  0% { opacity: 0.4; width: 20%; }
  50% { opacity: 1; width: 80%; }
  100% { opacity: 0.4; width: 20%; }
}

/* ─── Error Message ──────────────────────────────────────────── */

.ik-upload-error {
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  color: #F87171;
  font-size: 12px;
  line-height: 1.4;
}

/* ─── Section Wrapper (used in tool pages) ───────────────────── */

.attach-files-section {
  margin-bottom: 20px;
}

.attach-files-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #8A8880;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* Mobile */
@media (max-width: 600px) {
  .ik-drop-zone {
    padding: 14px 16px;
    gap: 10px;
  }

  .ik-drop-icon {
    font-size: 20px;
  }

  .ik-drop-text strong {
    font-size: 13px;
  }
}
