body {
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.main-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 30px;
  margin: -15px -15px 20px -15px;
  border-radius: 0;
}
.main-header h2 {
  margin: 0;
  font-weight: 600;
}
.main-header p {
  margin: 5px 0 0 0;
  opacity: 0.9;
  font-size: 14px;
}
.panel-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}
.panel-section h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #495057;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}
.sidebar-panel {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
  height: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}
.btn-success {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
}
.btn-secondary {
  background: #6c757d;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
}
.form-control {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 10px 12px;
}
.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}
.status-alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.status-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
.status-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}
.status-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}
.divider {
  height: 1px;
  background: #e9ecef;
  margin: 20px 0;
}
.stat-box {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #e9ecef;
}
.stat-box h5 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-box p {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #495057;
}
.plot-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
table.dataTable tbody td {
  padding: 12px 10px;
}
table.dataTable thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6 !important;
  font-weight: 600;
  color: #495057;
}
