:root {
  --primary: #0056b3;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background-color: #f8f9fa;
}

.card {
  border-radius: 10px;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
}

/* Dashboard styles */
.sidebar {
  min-height: 100vh;
  background-color: #2c3e50;
  color: white;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
  color: white;
  background-color: var(--primary);
}

.sidebar-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 1rem 1rem 0.5rem;
  margin-bottom: 0;
  display: block;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
}

.status-success {
  background-color: rgba(40, 167, 69, 0.2);
  color: var(--success);
}

.status-partial {
  background-color: rgba(253, 126, 20, 0.2);
  color: #fd7e14;
}

.status-warning {
  background-color: rgba(255, 193, 7, 0.2);
  color: var(--warning);
}

.status-error {
  background-color: rgba(220, 53, 69, 0.2);
  color: var(--danger);
}

/* Dashboard cards */
.dashboard-card {
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: transform 0.2s;
  height: 100%;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Chart container */
.chart-container {
  position: relative;
  height: 100%;
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Integration card */
.integration-card {
  transition: all 0.3s;
}

.integration-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Upcoming executions list */
#upcoming-executions-list {
  max-height: 280px;
  overflow-y: auto;
}

#upcoming-executions-list .list-group-item {
  padding: 0.75rem;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid rgba(0,0,0,0.125);
}

#upcoming-executions-list .list-group-item:last-child {
  border-bottom: none;
}

#upcoming-executions-list .badge {
  font-weight: 500;
  font-size: 0.7rem;
}

.extra-small {
  font-size: 0.75rem;
}

/* Providers table styles */
.providers-table .badge {
  font-size: 0.85rem;
  padding: 0.35em 0.65em;
}

#providers-content .table td {
  vertical-align: middle;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    min-height: auto;
  }
}

/* Raw JSON container styles */
.raw-json-container {
  position: relative;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.raw-json-container pre {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  tab-size: 2;
  border: 1px solid #343a40;
}

.raw-json-container code {
  display: block;
  white-space: pre;
  word-wrap: normal;
  overflow-x: auto;
}

/* Custom scrollbar for JSON container */
.raw-json-container pre::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.raw-json-container pre::-webkit-scrollbar-track {
  background: #343a40;
}

.raw-json-container pre::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 5px;
}

.raw-json-container pre::-webkit-scrollbar-thumb:hover {
  background: #5a6268;
}

/* Button group styling for raw report */
#raw-report-container .btn-group-sm .btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

/* Animation for copy button success */
.btn-success {
  transition: all 0.3s ease;
}