html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Sadbhavna Selfie page styles */
.selfie-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem;
}

.selfie-header {
  background: #0d6efd;
  color: white;
  padding: 1rem;
  text-align: center;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
}

.selfie-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.selfie-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.selfie-section {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.upload-zone {
  cursor: pointer;
  border: 2px dashed #ced4da;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  background: #f8f9fa;
  transition: border-color 0.2s, background-color 0.2s;
}

.upload-zone:hover {
  border-color: #0d6efd;
  background: #e7f1ff;
}

.preview-container {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
}

.placeholder-icon {
  font-size: 2.5rem;
}

.placeholder-text {
  font-size: 0.9rem;
}

.cropped-preview {
  position: relative;
  display: inline-block;
}

.cropped-preview img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid #0d6efd;
}

.btn-clear {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dc3545;
  color: white;
  border: 2px solid white;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.btn-clear:hover {
  background: #bb2d3b;
}

.crop-hint {
  background: #cfe2ff;
  color: #084298;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.crop-wrapper {
  max-height: 420px;
  min-height: 350px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #f8f9fa;
}

#cropModal .cropper-container {
  background: #f8f9fa;
}

/* Circular crop area in Crop Image modal */
#cropModal .cropper-view-box,
#cropModal .cropper-face {
  border-radius: 50%;
  overflow: hidden;
}

#cropModal .cropper-view-box {
  outline: 0;
  box-shadow: 0 0 0 2px #39f;
}

#cropModal .cropper-crop-box,
#cropModal .cropper-drag-box {
  border-radius: 50%;
}

/* Hide dark overlay - only circular border should be visible */
#cropModal .cropper-modal {
  opacity: 0 !important;
}

.crop-wrapper img {
  max-width: 100%;
  display: block;
}

.crop-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crop-controls .crop-btn {
  min-width: 70px;
}

.btn-download {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.selfie-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #6c757d;
}