/* Service Quality Report Component Styles */

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

.service-quality-report-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
}

.service-quality-report-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
}

.service-quality-report-header p {
  margin: 10px 0 0 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Form Sections */
.form-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e5e9;
}

.form-section h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

/* Field Groups */
.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  font-size: 0.95rem;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.field-group textarea {
  min-height: 100px;
  resize: vertical;
}

.field-description {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 5px;
  line-height: 1.4;
}

/* Date Range Fields */
.date-range-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.date-range-container .field-group {
  margin-bottom: 0;
}

/* Checkbox Fields */
.checkbox-field {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  transform: scale(1.2);
}

.checkbox-field label {
  margin-bottom: 0;
  cursor: pointer;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding: 20px 0;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

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

.btn-outline {
  background: transparent;
  border: 2px solid #3498db;
  color: #3498db;
}

.btn-outline:hover {
  background: #3498db;
  color: white;
}

/* Output Container */
.output-container {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e5e9;
}

.output-container h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.5rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

/* Report Content Styling */
.report-content {
  line-height: 1.6;
  color: #2c3e50;
}

.report-content h3.metric-header {
  color: #27ae60;
  background: #d5f4e6;
  padding: 10px 15px;
  border-radius: 6px;
  border-left: 4px solid #27ae60;
}

.report-content h3.analysis-header {
  color: #e67e22;
  background: #fdeaa7;
  padding: 10px 15px;
  border-radius: 6px;
  border-left: 4px solid #e67e22;
}

.report-content h3.recommendation-header {
  color: #8e44ad;
  background: #f4ecf7;
  padding: 10px 15px;
  border-radius: 6px;
  border-left: 4px solid #8e44ad;
}

.metric-highlight {
  background: #fff3cd;
  color: #856404;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Loading States */
.loading {
  text-align: center;
  padding: 40px;
  color: #7f8c8d;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #bdc3c7;
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error States */
.error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #f5c6cb;
  margin: 10px 0;
}

/* Success States */
.success {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
  margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-quality-report-container {
    padding: 15px;
  }
  
  .service-quality-report-header h1 {
    font-size: 2rem;
  }
  
  .date-range-container {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .form-section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .service-quality-report-header {
    padding: 15px;
  }
  
  .service-quality-report-header h1 {
    font-size: 1.8rem;
  }
  
  .form-section {
    padding: 15px;
  }
  
  .output-container {
    padding: 15px;
  }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
  .form-section,
  .output-container {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #34495e;
  }
  
  .form-section h3,
  .output-container h2 {
    color: #ecf0f1;
  }
  
  .field-group input,
  .field-group select,
  .field-group textarea {
    background: #34495e;
    border-color: #4a5f7a;
    color: #ecf0f1;
  }
  
  .field-group input:focus,
  .field-group select:focus,
  .field-group textarea:focus {
    border-color: #3498db;
  }
  
  .field-description {
    color: #bdc3c7;
  }
} 