/* Custom styles on top of Tailwind */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f3f4f6;
  -webkit-tap-highlight-color: transparent;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.calendar-day:hover {
  background-color: #e5e7eb;
}

.calendar-day.today {
  border: 2px solid #3b82f6;
}

.calendar-day .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 2px;
}

.calendar-day .dot.pending { background: #f59e0b; }
.calendar-day .dot.qualified { background: #10b981; }
.calendar-day .dot.unqualified { background: #ef4444; }

.photo-preview {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}

.upload-box {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.upload-box:active {
  border-color: #3b82f6;
  background: #eff6ff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.img-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.img-large {
  width: 100%;
  border-radius: 12px;
  max-height: 60vh;
  object-fit: contain;
  background: #111;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  width: 100%;
  border: none;
  cursor: pointer;
}

.btn-primary:active {
  background: #2563eb;
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-qualified { background: #d1fae5; color: #065f46; }
.status-unqualified { background: #fee2e2; color: #991b1b; }

.loading-spin {
  animation: spin 1s linear infinite;
}

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