/* CSS Variables for consistent theming */
:root {
  --primary-color: #6f42c1;
  --primary-dark: #5a32a3;
  --primary-light: #8e6cc9;
  --secondary-color: #667eea;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-primary: #495057;
  --text-secondary: #6c757d;
  --border-color: #e9ecef;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
  --shadow-heavy: rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --border-radius-lg: 18px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Global Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--light-color);
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Enhanced Login Container */
.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #764ba2 100%);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

/* Enhanced Card System */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px var(--shadow-light);
  transition: var(--transition);
  background: white;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 16px 50px var(--shadow-medium);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

/* Enhanced Button System */
.btn {
  border-radius: var(--border-radius);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #4a2a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(111, 66, 193, 0.4);
  color: white;
}

.btn-outline-light {
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-width: 2px;
}

.btn-outline-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.stats-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.deployment-card {
  transition: all 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.deployment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.deployment-card .card-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.02);
}

.deployment-card .card-body {
  padding: 20px;
}

.issue-badge {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border-radius: 25px;
  padding: 6px 14px;
  margin: 3px;
  display: inline-block;
  font-size: 0.85em;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
  transition: all 0.2s ease;
}

.issue-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.environment-badge {
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75em;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.environment-prod {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}
.environment-stage {
  background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
  color: white;
}
.environment-dev {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
}
.environment-qa {
  background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
  color: white;
}

/* Enhanced Navbar styling */
.navbar {
  padding: 25px 0;
  box-shadow: 0 6px 30px var(--shadow-heavy);
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  ) !important;
  border-radius: 0 0 20px 20px;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Make navbar wider */
.navbar .container-fluid {
  max-width: 1600px;
  padding-left: 40px;
  padding-right: 40px;
}

.navbar-nav .nav-link {
  padding: 12px 20px;
  margin: 0 5px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand i {
  margin-right: 8px;
  font-size: 1.3em;
}

.navbar-text {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

.navbar-text i {
  margin-right: 6px;
}

/* Enhanced Form styling */
.form-control,
.form-select {
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  padding: 14px 18px;
  transition: var(--transition);
  font-size: 1rem;
  background-color: #fafbfc;
  position: relative;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
  background-color: white;
  transform: translateY(-1px);
  outline: none;
}

.form-control::placeholder,
.form-select::placeholder {
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.7;
}

.form-label {
  font-weight: 600;
  margin-bottom: 10px;
  color: #495057;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label i {
  color: #6f42c1;
  font-size: 1.1em;
}

/* Enhanced Card styling */
.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px 28px;
  border-radius: 18px 18px 0 0 !important;
}

.card-header h5 {
  margin: 0;
  font-weight: 700;
  color: #495057;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h5 i {
  color: #6f42c1;
  font-size: 1.2em;
}

.card-body {
  padding: 28px;
}

/* Enhanced Alert styling */
.alert {
  border-radius: 12px;
  border: none;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-weight: 500;
}

/* Enhanced Statistics styling */
.stats-card .card-body {
  padding: 24px 20px;
}

.stats-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-card p {
  margin: 8px 0 0 0;
  font-weight: 600;
  opacity: 0.9;
}

.stats-card i {
  opacity: 0.8;
}

/* Enhanced Empty State styling */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 1.5rem;
  display: block;
}

.empty-state .fs-5 {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.empty-state .text-muted {
  font-size: 0.95rem;
  opacity: 0.7;
}

/* Container spacing improvements */
.container-fluid {
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Loading state */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Mobile-First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container-fluid {
    padding: 0 12px;
  }

  .login-container {
    padding: 10px;
  }

  .login-container .card {
    width: 100% !important;
    margin: 0;
  }

  .navbar {
    padding: 15px 0;
    margin-bottom: 1rem;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-nav {
    margin-top: 10px;
  }

  .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 0.9rem;
    margin: 2px 0;
  }

  /* Mobile navbar container adjustments */
  .navbar .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .card-body {
    padding: 16px 12px;
  }

  .card-header {
    padding: 16px 12px;
  }

  .card-header h5 {
    font-size: 1.1rem;
  }

  .stats-card {
    margin-bottom: 12px;
    padding: 16px 12px;
  }

  .stats-card h3 {
    font-size: 2rem;
  }

  .deployment-card {
    margin-bottom: 12px;
  }

  .deployment-card .card-body {
    padding: 16px 12px;
  }

  .empty-state {
    padding: 2rem 0.5rem;
  }

  .empty-state i {
    font-size: 2.5rem;
  }

  .empty-state .fs-5 {
    font-size: 1.1rem !important;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 12px 20px;
  }

  .form-control,
  .form-select {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .form-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .environment-badge {
    padding: 8px 12px;
    font-size: 0.7em;
  }

  .issue-badge {
    padding: 4px 8px;
    font-size: 0.8em;
    margin: 2px;
  }

  .alert {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  /* Documentation sidebar mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 1050;
    background: white;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar-toggle {
    display: block !important;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1060;
    background: #6f42c1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.2rem;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }

  .sidebar-overlay.show {
    display: block;
  }

  /* Main content full width on mobile */
  .col-md-9.ms-sm-auto.col-lg-10.px-md-4 {
    margin-left: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Analytics scheduler mobile */
  .scheduler-header {
    padding: 20px 16px;
    margin-bottom: 20px;
  }

  .scheduler-header h2 {
    font-size: 1.8rem;
  }

  .scheduler-header p {
    font-size: 0.95rem;
  }

  .analytics-scheduler .stats-overview {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .analytics-scheduler .schedule-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .analytics-scheduler .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .analytics-scheduler .btn-group {
    flex-direction: column;
    gap: 8px;
  }

  .analytics-scheduler .btn-group .btn {
    width: 100%;
  }

  .status-indicator {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .next-execution {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .cron-expression {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container-fluid {
    padding: 0 16px;
  }

  .login-container .card {
    width: 90% !important;
  }

  .navbar {
    padding: 16px 0;
    margin-bottom: 1.5rem;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .card-body {
    padding: 20px 16px;
  }

  .card-header {
    padding: 20px 16px;
  }

  .stats-card {
    margin-bottom: 16px;
  }

  .deployment-card {
    margin-bottom: 16px;
  }

  .empty-state {
    padding: 3rem 1rem;
  }

  .empty-state i {
    font-size: 3rem;
  }

  /* Analytics scheduler */
  .scheduler-header {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .scheduler-header h2 {
    font-size: 2rem;
  }

  .scheduler-header p {
    font-size: 1rem;
  }

  .analytics-scheduler .stats-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .analytics-scheduler .schedule-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .analytics-scheduler .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container-fluid {
    padding: 0 20px;
  }

  /* Medium screen navbar adjustments */
  .navbar .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
  }

  .navbar-nav .nav-link {
    padding: 10px 16px;
    margin: 0 3px;
  }

  .analytics-scheduler .stats-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .analytics-scheduler .schedule-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .analytics-scheduler .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .analytics-scheduler .stats-overview {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .analytics-scheduler .schedule-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .analytics-scheduler .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-fluid {
    padding: 0 24px;
  }

  /* Large screen navbar adjustments */
  .navbar .container-fluid {
    padding-left: 50px;
    padding-right: 50px;
  }

  .navbar-nav .nav-link {
    padding: 12px 24px;
    margin: 0 8px;
  }
}

/* Enhanced button states */
.btn:active {
  transform: translateY(0);
}

/* Form row improvements */
.row.g-4 {
  align-items: end;
}

/* Enhanced focus states */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
}

/* Subtle animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

/* Enhanced shadows for depth */
.navbar {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.card {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Improved color consistency */
.text-primary {
  color: #6f42c1 !important;
}

.bg-primary {
  background-color: #6f42c1 !important;
}

/* Enhanced visual hierarchy */
.navbar-brand {
  position: relative;
}

.navbar-brand::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}

/* Mobile-specific enhancements */
@media (max-width: 575.98px) {
  /* Touch-friendly button sizes */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .btn-sm {
    min-height: 36px;
    min-width: 36px;
  }

  /* Improved touch targets */
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .form-check-input {
    min-width: 44px;
    min-height: 44px;
  }

  /* Better spacing for mobile */
  .row.g-4 {
    gap: 1rem !important;
  }

  .col-md-3,
  .col-md-6,
  .col-md-9 {
    margin-bottom: 1rem;
  }

  /* Mobile-optimized cards */
  .card {
    margin-bottom: 1rem;
  }

  /* Improved mobile navigation */
  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-link {
    border-radius: 8px;
    margin: 2px 0;
  }

  .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
  }

  /* Mobile-friendly forms */
  .form-control,
  .form-select {
    min-height: 44px;
  }

  /* Better mobile alerts */
  .alert {
    margin-bottom: 1rem;
    border-radius: 8px;
  }

  /* Mobile-optimized tables */
  .table-responsive {
    border-radius: 8px;
    overflow: hidden;
  }

  /* Improved mobile loading states */
  .spinner-border {
    width: 2rem;
    height: 2rem;
  }

  /* Mobile-friendly modals */
  .modal-dialog {
    margin: 1rem;
  }

  .modal-content {
    border-radius: 12px;
  }

  /* Better mobile scrolling */
  .sidebar {
    -webkit-overflow-scrolling: touch;
  }

  /* Mobile-optimized breadcrumbs */
  .breadcrumb {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 0.5rem;
  }

  /* Mobile-friendly tooltips */
  .tooltip {
    font-size: 0.8rem;
  }

  /* Improved mobile focus states */
  .btn:focus,
  .form-control:focus,
  .form-select:focus,
  .nav-link:focus {
    outline: 2px solid #6f42c1;
    outline-offset: 2px;
  }

  /* Mobile-optimized shadows */
  .card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }

  /* Better mobile typography */
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.4rem;
  }
  h4 {
    font-size: 1.2rem;
  }
  h5 {
    font-size: 1.1rem;
  }
  h6 {
    font-size: 1rem;
  }

  /* Mobile-optimized spacing */
  .p-4 {
    padding: 1rem !important;
  }
  .m-4 {
    margin: 1rem !important;
  }
  .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  .my-4 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Improved mobile grid */
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .col,
  .col-1,
  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-10,
  .col-11,
  .col-12 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Improved form layout */
.form-control,
.form-select {
  position: relative;
}

.form-control::placeholder,
.form-select::placeholder {
  color: #adb5bd;
  font-style: italic;
}

/* Enhanced button interactions */
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.4);
}

/* Improved spacing for better readability */
.card-body p {
  margin-bottom: 0.75rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

/* Enhanced focus indicators for accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid #6f42c1;
  outline-offset: 2px;
}

/* Documentation styles */
.sidebar {
  min-height: calc(100vh - 100px);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.docs-sidebar .nav-link {
  color: #495057;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  margin: 0.125rem 0;
  transition: all 0.2s ease;
}

.docs-sidebar .nav-link:hover {
  color: #6f42c1;
  background-color: rgba(111, 66, 193, 0.1);
}

.docs-sidebar .nav-link.active {
  color: #6f42c1;
  background-color: rgba(111, 66, 193, 0.15);
  font-weight: 600;
}

.docs-sidebar .sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#docContent {
  line-height: 1.7;
}

#docContent h1 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

#docContent h2 {
  color: #34495e;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#docContent h3 {
  color: #495057;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

#docContent code {
  background-color: #f8f9fa;
  color: #e83e8c;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

#docContent pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
}

#docContent pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

#docContent ul,
#docContent ol {
  padding-left: 1.5rem;
}

#docContent li {
  margin-bottom: 0.5rem;
}

#docContent a {
  color: #6f42c1;
  text-decoration: none;
}

#docContent a:hover {
  text-decoration: underline;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}

/* Router navigation styles */
.nav-link[data-route] {
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-link[data-route]:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link[data-route].active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* Loading state for route transitions */
.route-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Smooth transitions */
#mainContent {
  transition: opacity 0.3s ease;
}

/* Analytics Scheduler specific styles */
.scheduler-status-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.schedule-card {
  transition: all 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid transparent;
  position: relative;
}

.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.schedule-card.border-success {
  border-color: #28a745 !important;
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.02) 0%,
    rgba(32, 201, 151, 0.02) 100%
  );
}

.schedule-card.border-secondary {
  border-color: #6c757d !important;
  background: linear-gradient(
    135deg,
    rgba(108, 117, 125, 0.02) 0%,
    rgba(108, 117, 125, 0.05) 100%
  );
}

.schedule-card.border-success::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.schedule-card.border-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.form-check-input {
  width: 3rem;
  height: 1.5rem;
  border-radius: 1rem;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.9%29'/%3e%3c/svg%3e");
}

.form-check-input:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-check-input:not(:checked):hover {
  border-color: #adb5bd;
  background-color: #f8f9fa;
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-warning::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-warning:hover::before {
  left: 100%;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-success::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-success:hover::before {
  left: 100%;
}

.btn-success:hover {
  background: linear-gradient(135deg, #20c997 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-danger::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-danger:hover::before {
  left: 100%;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.scheduler-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
  position: relative;
  overflow: hidden;
}

.scheduler-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.scheduler-header h2 {
  margin: 0;
  font-weight: 800;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.scheduler-header p {
  margin: 15px 0 0 0;
  opacity: 0.95;
  font-size: 1.2rem;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.scheduler-header .btn {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.scheduler-header .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.status-indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.status-indicator:hover::before {
  transform: translateX(100%);
}

.status-indicator.running {
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.15) 0%,
    rgba(32, 201, 151, 0.15) 100%
  );
  color: #28a745;
  border: 2px solid rgba(40, 167, 69, 0.3);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.status-indicator.stopped {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.15) 0%,
    rgba(200, 35, 51, 0.15) 100%
  );
  color: #dc3545;
  border: 2px solid rgba(220, 53, 69, 0.3);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.next-execution {
  background: linear-gradient(
    135deg,
    rgba(111, 66, 193, 0.1) 0%,
    rgba(102, 126, 234, 0.1) 100%
  );
  color: #6f42c1;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(111, 66, 193, 0.2);
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.1);
  transition: all 0.3s ease;
}

.next-execution:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.15);
}

.cron-expression {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.cron-expression:hover {
  border-color: #6f42c1;
  box-shadow: inset 0 2px 4px rgba(111, 66, 193, 0.1);
}

/* Enhanced card styling for analytics scheduler */
.analytics-scheduler .card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.analytics-scheduler .card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.analytics-scheduler .card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px 28px;
  border-radius: 20px 20px 0 0;
}

.analytics-scheduler .card-header h5 {
  margin: 0;
  font-weight: 700;
  color: #495057;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.analytics-scheduler .card-header h5 i {
  color: #6f42c1;
  font-size: 1.4em;
  text-shadow: 0 2px 4px rgba(111, 66, 193, 0.2);
}

.analytics-scheduler .card-body {
  padding: 28px;
  background: white;
}

/* Stats cards enhancement */
.analytics-scheduler .stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.analytics-scheduler .stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.analytics-scheduler .stat-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 8s ease-in-out infinite;
}

.analytics-scheduler .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
}

.analytics-scheduler .stat-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.analytics-scheduler .stat-card p {
  margin: 0;
  font-weight: 600;
  opacity: 0.9;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.analytics-scheduler .stat-card i {
  font-size: 2rem;
  opacity: 0.8;
  margin-bottom: 12px;
  display: block;
  position: relative;
  z-index: 1;
}

/* Schedule list enhancements */
.analytics-scheduler .schedule-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.analytics-scheduler .schedule-item {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.analytics-scheduler .schedule-item.active {
  border-color: #28a745;
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.02) 0%,
    rgba(32, 201, 151, 0.02) 100%
  );
}

.analytics-scheduler .schedule-item.inactive {
  border-color: #6c757d;
  background: linear-gradient(
    135deg,
    rgba(108, 117, 125, 0.02) 0%,
    rgba(108, 117, 125, 0.05) 100%
  );
}

.analytics-scheduler .schedule-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Form enhancements */
.analytics-scheduler .form-control,
.analytics-scheduler .form-select {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 14px 18px;
  transition: all 0.3s ease;
  font-size: 1rem;
  background-color: #fafbfc;
}

.analytics-scheduler .form-control:focus,
.analytics-scheduler .form-select:focus {
  border-color: #6f42c1;
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
  background-color: white;
  transform: translateY(-1px);
}

.analytics-scheduler .form-label {
  font-weight: 600;
  margin-bottom: 12px;
  color: #495057;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analytics-scheduler .form-label i {
  color: #6f42c1;
  font-size: 1.1em;
}

/* Alert enhancements */
.analytics-scheduler .alert {
  border-radius: 12px;
  border: none;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.analytics-scheduler .alert::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
  opacity: 0.3;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .scheduler-header {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .scheduler-header h2 {
    font-size: 2rem;
  }

  .scheduler-header p {
    font-size: 1rem;
  }

  .analytics-scheduler .stats-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .analytics-scheduler .schedule-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .analytics-scheduler .card-body {
    padding: 20px 16px;
  }

  .analytics-scheduler .card-header {
    padding: 20px 16px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .status-indicator {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .schedule-card .card-header,
  .schedule-card .card-body {
    padding: 16px;
  }
}

/* Additional fine-tuning for analytics scheduler */
.analytics-scheduler .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Enhanced loading states */
.analytics-scheduler .loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Improved button group styling */
.analytics-scheduler .btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.analytics-scheduler .btn-group .btn {
  flex: 1;
  min-width: 120px;
}

/* Enhanced form styling */
.analytics-scheduler .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: end;
}

/* Improved card spacing */
.analytics-scheduler .card + .card {
  margin-top: 24px;
}

/* Enhanced status badges */
.analytics-scheduler .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analytics-scheduler .status-badge.active {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.analytics-scheduler .status-badge.inactive {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Enhanced tooltips */
.analytics-scheduler .tooltip-trigger {
  position: relative;
  cursor: help;
}

.analytics-scheduler .tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.analytics-scheduler .tooltip-trigger:hover::after {
  opacity: 1;
}

/* Improved focus states for accessibility */
.analytics-scheduler .btn:focus-visible,
.analytics-scheduler .form-control:focus-visible,
.analytics-scheduler .form-select:focus-visible {
  outline: 2px solid #6f42c1;
  outline-offset: 2px;
}

/* Enhanced transitions */
.analytics-scheduler * {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improved spacing consistency */
.analytics-scheduler .mb-4 {
  margin-bottom: 1.5rem !important;
}

.analytics-scheduler .mt-4 {
  margin-top: 1.5rem !important;
}

.analytics-scheduler .py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

/* Enhanced visual hierarchy */
.analytics-scheduler h1,
.analytics-scheduler h2,
.analytics-scheduler h3,
.analytics-scheduler h4,
.analytics-scheduler h5,
.analytics-scheduler h6 {
  color: #2c3e50;
  font-weight: 700;
  line-height: 1.2;
}

/* Improved text readability */
.analytics-scheduler p {
  line-height: 1.6;
  color: #495057;
}

.analytics-scheduler .text-muted {
  color: #6c757d !important;
  font-weight: 500;
}

/* Mobile performance optimizations */
@media (max-width: 575.98px) {
  /* Reduce animations on mobile for better performance */
  .card,
  .btn,
  .deployment-card,
  .schedule-card {
    animation: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  /* Optimize gradients for mobile */
  .stats-card,
  .environment-badge,
  .btn-primary,
  .btn-success,
  .btn-danger,
  .btn-warning {
    background: var(--fallback-color, #6f42c1);
  }

  /* Reduce shadow complexity on mobile */
  .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .navbar {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  }

  /* Optimize font rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* Improve touch scrolling */
  .sidebar,
  .card-body,
  .container-fluid {
    -webkit-overflow-scrolling: touch;
  }

  /* Better mobile form handling */
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"] {
    min-height: 44px;
  }

  /* Mobile-optimized select dropdowns */
  select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
  }

  /* Mobile-friendly focus indicators */
  .btn:focus-visible,
  .form-control:focus-visible,
  .form-select:focus-visible,
  .nav-link:focus-visible {
    outline: 2px solid #6f42c1;
    outline-offset: 2px;
  }

  /* Improved mobile spacing */
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  .mt-5 {
    margin-top: 2rem !important;
  }
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Mobile-optimized grid system */
  .row > * {
    margin-bottom: 1rem;
  }

  .row > *:last-child {
    margin-bottom: 0;
  }

  /* Better mobile navigation */
  .navbar-nav .nav-link {
    border-radius: 8px;
    margin: 2px 0;
    transition: background-color 0.2s ease;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
  }

  /* Mobile-friendly alerts */
  .alert {
    border-left: 4px solid currentColor;
    border-radius: 8px;
  }

  /* Optimized mobile loading */
  .spinner-border {
    border-width: 0.2em;
  }

  /* Better mobile tables */
  .table {
    font-size: 0.9rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }

  /* Mobile-optimized badges */
  .badge {
    font-size: 0.75em;
    padding: 0.25em 0.5em;
  }

  /* Improved mobile buttons */
  .btn-group .btn {
    border-radius: 8px !important;
  }

  .btn-group .btn:not(:first-child) {
    margin-left: 0.5rem;
  }

  /* Mobile-friendly modals */
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  /* Better mobile tooltips */
  .tooltip-inner {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  /* Mobile-optimized breadcrumbs */
  .breadcrumb-item {
    font-size: 0.9rem;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    font-size: 0.8rem;
  }

  /* Modern CSS Features */
  /* Smooth scrolling for the entire page */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
  }

  /* Improved focus management */
  .btn:focus-visible,
  .form-control:focus-visible,
  .form-select:focus-visible,
  .nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  /* Enhanced loading states */
  .loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
  }

  .loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  /* Improved accessibility */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Enhanced animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
  }

  .animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
  }

  /* Improved typography */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
  }

  p {
    line-height: 1.7;
    color: var(--text-primary);
  }

  /* Enhanced utility classes */
  .text-gradient {
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .bg-gradient-primary {
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--primary-dark)
    );
  }

  .shadow-custom {
    box-shadow: 0 10px 40px var(--shadow-light);
  }

  .shadow-custom-lg {
    box-shadow: 0 20px 60px var(--shadow-medium);
  }

  /* Improved responsive design */
  .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* Enhanced grid system */
  .grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }

  .grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  /* Modern card layouts */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 2rem;
  }

  /* Improved spacing system */
  .space-y-4 > * + * {
    margin-top: 1.5rem;
  }

  .space-y-6 > * + * {
    margin-top: 2rem;
  }

  .space-x-4 > * + * {
    margin-left: 1.5rem;
  }

  /* Enhanced interactive elements */
  .interactive {
    cursor: pointer;
    transition: var(--transition);
  }

  .interactive:hover {
    transform: translateY(-2px);
  }

  /* Improved form layouts */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
  }

  /* Modern button variants */
  .btn-ghost {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
  }

  .btn-ghost:hover {
    background: var(--primary-color);
    color: white;
  }

  .btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
  }

  .btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

  /* Enhanced status indicators */
  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
  }

  .status-dot.success {
    background: var(--success-color);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
  }

  .status-dot.warning {
    background: var(--warning-color);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
  }

  .status-dot.danger {
    background: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
  }

  /* Improved table styling */
  .table-modern {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-light);
  }

  .table-modern th {
    background: linear-gradient(135deg, var(--light-color), #e9ecef);
    border: none;
    font-weight: 600;
    color: var(--text-primary);
    padding: 16px 20px;
  }

  .table-modern td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .table-modern tbody tr:hover {
    background-color: rgba(111, 66, 193, 0.05);
  }

  /* Enhanced modal styling */
  .modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: 0 20px 60px var(--shadow-heavy);
  }

  .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 28px;
  }

  .modal-body {
    padding: 28px;
  }

  .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 28px;
  }

  /* Improved tooltip styling */
  .tooltip {
    font-size: 0.875rem;
  }

  .tooltip-inner {
    background: var(--dark-color);
    border-radius: 8px;
    padding: 8px 12px;
  }

  /* Enhanced progress bars */
  .progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--border-color);
    overflow: hidden;
  }

  .progress-bar {
    background: linear-gradient(
      90deg,
      var(--primary-color),
      var(--secondary-color)
    );
    transition: width 0.6s ease;
  }

  /* Modern alert styling */
  .alert-modern {
    border: none;
    border-radius: var(--border-radius);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
  }

  .alert-modern::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.3;
  }

  /* Improved badge styling */
  .badge-modern {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Enhanced navigation */
  .nav-pills .nav-link {
    border-radius: var(--border-radius);
    margin: 0 4px;
    transition: var(--transition);
  }

  .nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
  }

  /* Improved sidebar */
  .sidebar-modern {
    background: white;
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 8px var(--shadow-light);
  }

  .sidebar-modern .nav-link {
    border-radius: var(--border-radius);
    margin: 4px 8px;
    transition: var(--transition);
  }

  .sidebar-modern .nav-link:hover {
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--primary-color);
  }

  .sidebar-modern .nav-link.active {
    background: var(--primary-color);
    color: white;
  }

  /* Improved mobile accessibility */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Mobile-friendly focus management */
  .btn:focus,
  .form-control:focus,
  .form-select:focus,
  .nav-link:focus {
    outline: 2px solid #6f42c1;
    outline-offset: 2px;
  }

  /* Better mobile color contrast */
  .text-muted {
    color: #6c757d !important;
  }

  .text-secondary {
    color: #495057 !important;
  }

  /* Mobile-optimized shadows */
  .shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  }

  .shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }

  .shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  }

  /* 404 Error Page Styles */
  .error-page {
    padding: 4rem 2rem;
    text-align: center;
  }

  .error-code {
    margin-bottom: 2rem;
  }

  .error-code h1 {
    font-size: 8rem;
    font-weight: 900;
    color: #6c757d;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    line-height: 1;
  }

  .error-message h2 {
    color: #495057;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .error-message p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .error-actions .btn {
    min-width: 140px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  .error-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  /* Mobile responsive for 404 page */
  @media (max-width: 575.98px) {
    .error-page {
      padding: 2rem 1rem;
    }

    .error-code h1 {
      font-size: 4rem;
    }

    .error-message h2 {
      font-size: 1.5rem;
    }

    .error-message p {
      font-size: 1rem;
    }

    .error-actions {
      flex-direction: column;
      align-items: center;
    }

    .error-actions .btn {
      width: 100%;
      max-width: 200px;
    }
  }

  /* Aggregated Environment Cards */
  .environment-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
  }

  .environment-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }

  .environment-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
  }

  .environment-card .card-body {
    padding: 1.5rem;
  }

  .issue-tags {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
  }

  .issue-tags .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    transition: all 0.2s ease;
    margin: 0.2rem;
  }

  .issue-tags .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .environment-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
  }

  .environment-info p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
  }

  .environment-info strong {
    color: #495057;
    font-weight: 600;
  }

  .environment-info .text-muted {
    color: #6c757d !important;
    font-size: 0.85rem;
  }

  /* Enhanced Stats Cards for Aggregated View */
  .stats-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  }

  .stats-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }

  .stats-card .card-body {
    padding: 1.5rem;
  }

  .stats-card h3 {
    color: #495057;
    font-weight: 700;
    margin: 0;
  }

  .stats-card p {
    color: #6c757d;
    font-weight: 500;
    margin: 0;
  }

  .stats-card i {
    color: #007bff;
  }

  /* Mobile responsive for aggregated view */
  @media (max-width: 768px) {
    .environment-card .card-header {
      flex-direction: column;
      align-items: flex-start !important;
      gap: 0.5rem;
    }

    .environment-card .card-header .text-end {
      text-align: left !important;
    }

    .issue-tags {
      max-height: 150px;
    }

    .environment-info {
      margin-top: 1rem;
    }
  }

  /* Clickable Jira Issue Links */
  .jira-issue-link {
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .jira-issue-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    text-decoration: none !important;
    color: white !important;
  }

  .jira-issue-link:active {
    transform: translateY(0);
  }

  /* Enhanced form switch styling */
  .form-switch {
    padding-left: 2.5rem;
  }

  .form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin-left: -2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2rem;
    transition: background-position 0.15s ease-in-out;
  }

  .form-switch .form-check-input:checked {
    background-position: right center;
    background-color: #198754;
    border-color: #198754;
  }

  .form-switch .form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
  }

  .form-switch .form-check-label:hover {
    color: #198754;
  }

  /* ========================================
   * LOG VIEWER STYLES
   * ======================================== */

  .log-entries {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: #f8f9fa;
  }

  .log-entry {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 13px;
    line-height: 1.4;
  }

  .log-entry:last-child {
    border-bottom: none;
  }

  .log-entry:hover {
    background-color: rgba(0, 0, 0, 0.02);
  }

  .log-entry-error {
    background-color: rgba(220, 53, 69, 0.05);
    border-left: 4px solid var(--danger-color);
  }

  .log-entry-warn {
    background-color: rgba(255, 193, 7, 0.05);
    border-left: 4px solid var(--warning-color);
  }

  .log-entry-info {
    background-color: rgba(23, 162, 184, 0.05);
    border-left: 4px solid var(--info-color);
  }

  .log-entry-debug {
    background-color: rgba(108, 117, 125, 0.05);
    border-left: 4px solid var(--text-secondary);
  }

  .log-entry-raw {
    background-color: rgba(0, 0, 0, 0.02);
    border-left: 4px solid var(--text-secondary);
  }

  .log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .log-timestamp {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
  }

  .log-method {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .log-url {
    color: var(--primary-color);
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .log-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
  }

  .log-status[data-status^="2"] {
    background-color: var(--success-color);
    color: white;
  }

  .log-status[data-status^="3"] {
    background-color: var(--warning-color);
    color: white;
  }

  .log-status[data-status^="4"],
  .log-status[data-status^="5"] {
    background-color: var(--danger-color);
    color: white;
  }

  .log-time {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
  }

  .log-message {
    color: var(--text-primary);
    margin-bottom: 8px;
    word-break: break-word;
  }

  .log-metadata {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
  }

  .log-metadata strong {
    color: var(--text-primary);
    font-weight: 600;
  }

  .log-metadata pre {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    padding: 8px;
    margin: 4px 0;
    font-size: 11px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .log-files-list {
    max-height: 500px;
    overflow-y: auto;
  }

  .log-files-list .list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    transition: var(--transition);
  }

  .log-files-list .list-group-item:hover {
    background-color: rgba(111, 66, 193, 0.05);
    border-left: 3px solid var(--primary-color);
  }

  .log-files-list .list-group-item:last-child {
    border-bottom: none;
  }

  .log-filters {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
  }

  .log-filters .form-control,
  .log-filters .form-select {
    font-size: 13px;
  }

  .log-pagination {
    margin-top: 16px;
  }

  .log-pagination .pagination {
    margin-bottom: 0;
  }

  .log-pagination .page-link {
    font-size: 13px;
    padding: 6px 12px;
  }

  .log-stats-card {
    transition: var(--transition);
  }

  .log-stats-card:hover {
    transform: translateY(-2px);
  }

  .log-stats-card .card-body {
    padding: 1.5rem;
  }

  .log-stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
  }

  .log-stats-card h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
  }

  .log-stats-card i {
    font-size: 2.5rem;
    opacity: 0.8;
  }

  /* Log viewer responsive design */
  @media (max-width: 768px) {
    .log-entries {
      max-height: 400px;
    }

    .log-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }

    .log-url {
      max-width: 100%;
    }

    .log-metadata {
      font-size: 11px;
    }

    .log-metadata pre {
      font-size: 10px;
    }

    .log-filters .row {
      margin-bottom: 8px;
    }

    .log-filters .col-md-3,
    .log-filters .col-md-4,
    .log-filters .col-md-2,
    .log-filters .col-md-1 {
      margin-bottom: 8px;
    }
  }

  @media (max-width: 575.98px) {
    .log-entries {
      max-height: 300px;
    }

    .log-entry {
      padding: 8px 12px;
      font-size: 12px;
    }

    .log-stats-card h3 {
      font-size: 1.5rem;
    }

    .log-stats-card i {
      font-size: 2rem;
    }

    .log-files-list .list-group-item {
      padding: 12px;
    }

    .log-files-list .list-group-item .fw-bold {
      font-size: 14px;
    }

    .log-files-list .list-group-item small {
      font-size: 11px;
    }
  }
}
