/* Frontend form styling */
#ufs-form {
  max-width: 400px;
  margin: 20px auto;
  padding: 15px;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
}

#ufs-form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

#ufs-form input[type="text"],
#ufs-form input[type="email"],
#ufs-form input[type="file"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#ufs-form button {
  margin-top: 15px;
  padding: 10px 15px;
  background: darkblue;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#ufs-form button:hover {
  background: #003399;
}

#preview {
  margin-top: 10px;
}

#preview img {
  max-width: 100%;
  border: 2px solid #ccc;
  border-radius: 4px;
}

/* Admin table adjustments */
.widefat th, .widefat td {
  text-align: center;
}

/* Modal backdrop */
#ufs-camera-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal box */
.ufs-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 400px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

/* Video portrait mode */
#ufs-camera-stream {
  width: auto;
  height: 480px;       /* Portrait height */
  max-width: 360px;    /* Narrow width */
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #000;
  margin-bottom: 15px;
  object-fit: cover;   /* ensures no stretching */
}



/* Buttons */
.ufs-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ufs-modal-actions .button {
  min-width: 100px;
}

/* Smooth animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

