/**
 * PreMember Photo Modal and Cropper Styles
 */

/* Modal overlay */
#dialog-Photo {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}

/* Modal content */
.photo-modal-content {
  position: relative;
  background: #fff;
  max-width: 500px;
  margin: 40px auto;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Modal title */
.photo-modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

/* Crop area container */
.crop-container {
  max-width: 100%;
  margin: 20px auto;
  background: #f8f8f8;
  border: 2px dashed #ddd;
  border-radius: 4px;
  overflow: hidden;
}

/* Cropper image */
#crop-image {
  max-width: 100%;
  display: block;
}

/* Controls container */
.photo-controls {
  margin: 20px 0;
  text-align: center;
}

/* Control buttons */
.control-btn {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.control-btn:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}

.control-btn:active {
  transform: scale(0.95);
}

/* Control icons using Unicode symbols */
.control-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: #666;
}

.btn-rotate-left::before {
  content: '↶';
  font-size: 24px;
}

.btn-rotate-right::before {
  content: '↷';
  font-size: 24px;
}

.btn-zoom-out::before {
  content: '−';
  font-size: 24px;
}

.btn-zoom-in::before {
  content: '+';
  font-size: 24px;
}

/* Action buttons */
.photo-actions {
  margin-top: 20px;
  text-align: center;
}

.photo-btn {
  padding: 10px 30px;
  margin: 0 5px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-btn-accept {
  background-color: #F05C00;
  color: white;
}

.photo-btn-accept:hover {
  background-color: #d94f00;
}

.photo-btn-cancel {
  background-color: #6c757d;
  color: white;
}

.photo-btn-cancel:hover {
  background-color: #5a6268;
}

/* File input (hidden) */
#photo-file-input {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .photo-modal-content {
    margin: 20px auto;
    padding: 20px;
  }

  .control-btn {
    width: 35px;
    height: 35px;
    margin: 0 3px;
  }

  .photo-btn {
    display: block;
    width: 100%;
    margin: 5px 0;
  }
}

/* Loading state */
.photo-loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* Helper text */
.photo-helper-text {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}
