/* ===== ImageCapture Component Styles ===== */

/* Modal overlay */
.ic-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.ic-modal {
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #212529);
  border-radius: 12px;
  width: 95%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  overflow: hidden;
}

.ic-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.ic-modal-header h5 {
  margin: 0;
  font-size: 1.1rem;
}

.ic-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--bs-body-color, #212529);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.ic-modal-close:hover { opacity: 1; }

.ic-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.ic-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--bs-border-color, #dee2e6);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Tabs */
.ic-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--bs-border-color, #dee2e6);
}

.ic-tab-btn {
  padding: 8px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--bs-body-color, #666);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.ic-tab-btn:hover {
  color: var(--bs-primary, #0d6efd);
}

.ic-tab-btn.active {
  color: var(--bs-primary, #0d6efd);
  border-bottom-color: var(--bs-primary, #0d6efd);
  font-weight: 600;
}

.ic-tab-content { display: none; }
.ic-tab-content.active { display: block; }

/* Video / preview area */
.ic-video-container {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.ic-video-container video {
  width: 100%;
  display: block;
  max-height: 400px;
  object-fit: contain;
}

.ic-device-select {
  margin-bottom: 12px;
}

.ic-capture-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #dc3545;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.ic-capture-btn:hover { background: #c82333; }

/* File drop zone */
.ic-file-drop {
  border: 2px dashed var(--bs-border-color, #ccc);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  color: var(--bs-secondary-color, #666);
}

.ic-file-drop:hover,
.ic-file-drop.dragover {
  border-color: var(--bs-primary, #0d6efd);
  background: rgba(13,110,253,0.05);
}

.ic-file-drop i { font-size: 2rem; margin-bottom: 8px; }

/* Crop area */
.ic-crop-container {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  cursor: crosshair;
  max-width: 100%;
}

.ic-crop-container img {
  display: block;
  max-width: 100%;
  max-height: 400px;
  user-select: none;
  -webkit-user-drag: none;
}

.ic-crop-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.ic-crop-selection {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
  pointer-events: none;
}

.ic-crop-preview {
  text-align: center;
  margin-top: 12px;
}

.ic-crop-preview img {
  border-radius: 8px;
  border: 1px solid var(--bs-border-color, #ddd);
}

/* Inline trigger button */
.ic-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Step indicator */
.ic-step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--bs-secondary-color, #666);
}

.ic-step-indicator .ic-step {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bs-tertiary-bg, #f0f0f0);
}

.ic-step-indicator .ic-step.active {
  background: var(--bs-primary, #0d6efd);
  color: #fff;
}
