* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.main-options {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.option-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-width: 280px;
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.option-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.option-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.option-card p {
  color: #666;
  line-height: 1.5;
}

.section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.section h2 {
  margin-bottom: 30px;
  color: #333;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input[type="file"],
.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.form-group small {
  color: #666;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

.coordinates-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 25px 0;
}

.coordinates-section h3 {
  margin-bottom: 20px;
  color: #333;
}

.coordinate-inputs {
  display: grid;
  gap: 15px;
}

.coord-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coord-group label {
  min-width: 150px;
  font-weight: 600;
}

.coord-group input {
  width: 80px;
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 5px;
  text-align: center;
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.members-section {
  margin: 25px 0;
}

.members-list {
  margin-top: 15px;
}

.member-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.member-info {
  flex: 1;
}

.member-info strong {
  display: block;
  color: #333;
}

.member-info span {
  color: #666;
  font-size: 14px;
}

.remove-member {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.remove-member:hover {
  background: #c82333;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
}

.modal-content h3 {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.preview-controls {
  text-align: center;
  margin-top: 20px;
}

.preview-controls button {
  margin: 0 10px;
}

#previewCanvas {
  border: 2px solid #ddd;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.back-button {
  text-align: center;
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .main-options {
    flex-direction: column;
    align-items: center;
  }

  .option-card {
    width: 100%;
    max-width: 350px;
  }

  .coordinate-inputs {
    grid-template-columns: 1fr;
  }

  .coord-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .coord-group label {
    min-width: auto;
  }

  .button-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
