.file-attachments-widget {
  margin: 16px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fa-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.fa-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
}

.fa-count {
  font-weight: 400;
  color: #6c757d;
  font-size: 14px;
  margin-left: 4px;
}

.fa-drop-zone {
  border: 2px dashed #ced4da;
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #f8f9fa;
  margin-bottom: 16px;
}

.fa-drop-zone:hover,
.fa-drop-zone.fa-drag-over {
  border-color: #0d6efd;
  background: #e7f1ff;
}

.fa-drop-zone-content {
  pointer-events: none;
}

.fa-drop-zone-content .fa-browse-btn {
  pointer-events: auto;
}

.fa-drop-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.fa-drop-text {
  margin: 0 0 8px;
  color: #495057;
  font-size: 14px;
}

.fa-browse-btn {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.fa-browse-btn:hover {
  background: #0b5ed7;
}

.fa-drop-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #6c757d;
}

.fa-progress-container {
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.fa-progress-bar {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.fa-progress-fill {
  height: 100%;
  background: #0d6efd;
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.fa-progress-text {
  font-size: 12px;
  color: #495057;
}

.fa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fa-empty {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
  padding: 16px;
}

.fa-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.fa-file-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fa-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.fa-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}

.fa-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fa-file-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  background: #f0f4f8;
  border-radius: 6px;
}

.fa-file-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fa-file-name {
  font-size: 14px;
  font-weight: 500;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fa-file-meta {
  font-size: 12px;
  color: #6c757d;
  margin-top: 2px;
}

.fa-file-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.fa-file-actions button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s;
  line-height: 1;
}

.fa-file-actions button:hover {
  background: #e9ecef;
}

@media (max-width: 768px) {
  .fa-drop-zone {
    padding: 16px 12px;
  }

  .fa-drop-icon {
    font-size: 24px;
  }

  .fa-file-card {
    padding: 8px 10px;
  }

  .fa-thumbnail,
  .fa-file-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .fa-file-name {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .fa-file-card {
    flex-wrap: wrap;
    gap: 8px;
  }

  .fa-file-actions {
    margin-left: auto;
  }
}
