/* CSS for Script Tag Example */

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

/* Body */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  padding: 20px;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Header */
.header {
  background: #28a745;
  color: white;
  padding: 20px;
  text-align: center;
}

.header h1 {
  margin-bottom: 5px;
}

.header p {
  opacity: 0.9;
}

/* Content */
.content {
  padding: 20px;
}

/* Sections */
.section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.section h2 {
  color: #333;
  margin-bottom: 10px;
}

.section p {
  color: #666;
  margin-bottom: 15px;
}

/* Form Elements */
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  margin-bottom: 15px;
}

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

.form-group select,
.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #28a745;
}

.form-group select:disabled,
.form-group input:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
}

/* Autocomplete */
.autocomplete-container {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.autocomplete-option {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.autocomplete-option:hover {
  background-color: #f8f9fa;
}

/* Results */
.result {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
}

.result.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Helper Text */
.help-text {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

/* Code */
code {
  background: #e9ecef;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  body {
    padding: 10px;
  }

  .header {
    padding: 15px;
  }

  .content {
    padding: 15px;
  }
}
