/* MME Essay Generator Styles */

/* Main Container */
.mme-essay-generator-container {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  max-width: 1000px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}


button#mme-generate-btn {
    color: white !important;
}

/* Title */
.mme-essay-generator-title {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 25px;
  text-align: center;
}

/* Form Container */
.mme-essay-generator-form-container {
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #e0e0e0;
}

/* Form Styles */
.mme-essay-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mme-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
}

.mme-form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.mme-form-group-half {
  flex: 1;
  min-width: 200px;
}

.mme-form-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #495057;
  font-size: 16px;
}

.mme-form-input,
.mme-form-select,
.mme-form-textarea {
  padding: 12px 15px;
  border: 2px solid #dde1e7;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
}

.mme-form-input:focus,
.mme-form-select:focus,
.mme-form-textarea:focus {
  border-color: #4a6cf7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.mme-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.mme-word-count {
  font-size: 12px;
  color: #6c757d;
  text-align: right;
  margin-top: 5px;
}

/* Submit Button */
.mme-submit-button {
  background: linear-gradient(135deg, #4a6cf7 0%, #3b5fe2 100%);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.mme-submit-button:hover {
  background: linear-gradient(135deg, #3b5fe2 0%, #2a4cd9 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 95, 226, 0.2);
}

.mme-submit-button:active {
  transform: translateY(0);
}

.mme-btn-icon {
  font-size: 18px;
}

/* Result Container */
.mme-essay-result-container {
  padding: 30px;
  background: #ffffff;
}

.mme-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.mme-result-title {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.mme-result-actions {
  display: flex;
  gap: 10px;
}

.mme-action-button {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mme-action-button:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #ced4da;
}

.mme-action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Result Content */
.mme-result-content {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
  white-space: pre-wrap;
  line-height: 1.6;
  color: #212529;
  font-size: 16px;
}

/* Preloader */
.mme-preloader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.mme-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(74, 108, 247, 0.2);
  border-radius: 50%;
  border-top-color: #4a6cf7;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.mme-preloader p {
  color: #6c757d;
  font-size: 16px;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .mme-essay-generator-container {
    margin: 20px 10px;
    border-radius: 8px;
  }

  .mme-essay-generator-form-container,
  .mme-essay-result-container {
    padding: 20px;
  }

  .mme-result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mme-result-actions {
    width: 100%;
  }

  .mme-action-button {
    flex: 1;
    justify-content: center;
  }
}

/* Success and Error Messages */
.mme-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.mme-error {
  color: #842029;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}
