body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f7faff 0%, #eef3f9 100%);
  color: #333;
  margin: 0;
  padding: 0;
}

header {
  text-align: center;
  padding: 40px 20px 10px;
  color: #0078ff;
}

header p {
  color: #555;
}

.back-nav {
  padding: 12px 20px;
  background: #f3f8ff;
  border-bottom: 1px solid #d7e5ff;
}
.back-nav a {
  color: #0078ff;
  text-decoration: none;
  font-weight: 600;
}
.back-nav a:hover {
  color: #005dcc;
}

.upload-area {
  background: white;
  border: 2px dashed #0078ff;
  border-radius: 16px;
  text-align: center;
  padding: 50px;
  margin: 30px auto;
  max-width: 600px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.upload-area:hover {
  background: #f0f7ff;
}

.hidden {
  display: none;
}

.toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 20px;
  flex-wrap: wrap;
}

.toolbar select,
.toolbar button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: background 0.2s;
}
.toolbar button:hover {
  background: #0078ff;
  color: white;
}

.cropper-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto 40px;
}

.cropper-container {
  max-width: 400px;    /* 👈 smaller width */
  max-height: 300px;   /* 👈 smaller height */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  margin: 0 auto;      /* centers the crop box horizontally */
}

.cropper-view-box {
  border-radius: 8px;
  outline: 2px solid #0078ff;
  transition: border-radius 0.3s ease;
}

.circle .cropper-view-box {
  border-radius: 50%;
  outline: 3px solid #0078ff;
}

.crop-info {
  margin-top: 15px;
  color: #444;
  font-size: 0.95rem;
  background: #f7faff;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #dbe9ff;
}
