/* Admin Overlay Styles */

.admin-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-wrapper.active {
  display: flex;
  opacity: 1;
}

.admin-overlay {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.admin-wrapper.active .admin-overlay {
  transform: scale(1) translateY(0);
}

/* Close Button */
.admin-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.admin-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Header */
.admin-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 28px 32px;
}

.admin-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.admin-header p {
  margin: 6px 0 0;
  font-size: 14px;
  opacity: 0.7;
}

/* Content */
.admin-content {
  padding: 28px 32px;
  overflow-y: auto;
  flex: 1;
}

/* Form sections */
.admin-section {
  margin-bottom: 24px;
}

.admin-section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 10px;
}

.admin-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.admin-input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.admin-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  min-height: 100px;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.admin-textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.admin-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: white;
  cursor: pointer;
  box-sizing: border-box;
}

.admin-select:focus {
  outline: none;
  border-color: #0066ff;
}

/* Radio buttons */
.admin-radio-group {
  display: flex;
  gap: 20px;
}

.admin-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #333;
}

.admin-radio-label input[type="radio"] {
  accent-color: #0066ff;
  width: 16px;
  height: 16px;
}

/* Conditional fields */
.admin-conditional {
  margin-top: 12px;
  display: none;
}

.admin-conditional.visible {
  display: block;
}

/* Send button */
.admin-send-btn {
  width: 100%;
  padding: 14px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-send-btn:hover {
  background: #c0392b;
}

.admin-send-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

/* Confirmation dialog */
.admin-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-confirm-dialog {
  background: white;
  border-radius: 12px;
  padding: 28px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.admin-confirm-dialog h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #333;
}

.admin-confirm-dialog p {
  margin: 0 0 24px;
  font-size: 15px;
  color: #666;
}

.admin-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.admin-confirm-cancel {
  padding: 10px 28px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-confirm-cancel:hover {
  background: #f5f5f5;
}

.admin-confirm-send {
  padding: 10px 28px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-confirm-send:hover {
  background: #c0392b;
}

/* Feedback message */
.admin-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.admin-feedback.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.admin-feedback.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 600px) {
  .admin-overlay {
    width: 95%;
    max-height: 95vh;
  }

  .admin-header {
    padding: 20px 20px;
  }

  .admin-content {
    padding: 20px 20px;
  }

  .admin-radio-group {
    flex-direction: column;
    gap: 10px;
  }
}
