/* SharmaConverter custom styles */

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  border-color: #14b8a6;
  box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.15);
  transform: translateY(-2px);
}

.tool-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

/* Tool page shared styles */
.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  background: #f8fafc;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #14b8a6;
  background: #f0fdfa;
}

.drop-zone.dragover {
  transform: scale(1.01);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #0f766e;
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #0d9488;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #0f766e;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid #ccfbf1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #f0fdfa;
}

.progress-bar {
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.page-thumb {
  width: 80px;
  height: 110px;
  object-fit: contain;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
}

.page-thumb:hover {
  border-color: #14b8a6;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.page-thumb.selected {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px #14b8a6;
}

/* Signature canvas */
#signature-canvas {
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  cursor: crosshair;
  background: white;
  touch-action: none;
}

/* Loading spinner */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.875rem 1.25rem;
  background: #0f172a;
  color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 100;
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateY(0);
}
