/* Modern Color Palette & Root Variables */
:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Modern Typography */
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  position: relative;
  min-height: 100%;
}

/* Modern Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

/* Smooth Transitions for All Interactive Elements */
a, button, input, textarea, select {
  transition: all 0.2s ease;
}

/* Utility Classes */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg);
}

/* Modern Device Response Styling */
.device-response {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  overflow-y: visible;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Modern Tank Styling */
.tank-circle {
  width: 60px;  /* Reduced from 70px for 5-column layout */
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.tank-circle:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tank-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
  width: 100%;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tank-label {
  font-weight: 600;
  font-size: 0.7rem;  /* Slightly reduced from 0.8rem for 5-column layout */
  line-height: 0.9;
  text-align: center;
  color: var(--text-secondary);
}

.tank-label .tank-line {
  display: block;
  white-space: nowrap;
}

.tank-label,
.tank-value {
  display: block;
  width: 100%;
  text-align: center !important;
}

.tank-circle + .tank-label {
  margin-top: 8px;
}

.tank-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4px;  /* Reduced from 8px for tighter 5-column layout */
  gap: 4px;      /* Reduced from 6px */
  transition: transform 0.2s ease;
  text-align: center;
}

.tank-cell:hover {
  transform: translateY(-2px);
}

.tank-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

/* Tanks Container - flex with max height and scroll */
.tanks-container {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.tanks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for optimal space usage */
  gap: 0.5rem; /* Reduced gap for tighter layout */
  padding: 0.5rem 0;
  width: 100%;
}

/* Hide scrollbar when 10 or fewer tanks (2 rows × 5 columns) */
.tanks-container:has(.tanks-grid > .tank-cell:nth-child(-n+10):last-child) {
  overflow-y: hidden;
}

/* Show scrollbar when more than 10 tanks */
.tanks-container:has(.tanks-grid > .tank-cell:nth-child(n+11)) {
  overflow-y: auto;
}

/* Responsive grid for smaller screens */
@media (max-width: 1200px) {
  .tanks-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for medium screens */
  }

  /* Adjust scrollbar threshold for 4-column layout (8 tanks = 2 rows) */
  .tanks-container:has(.tanks-grid > .tank-cell:nth-child(-n+8):last-child) {
    overflow-y: hidden;
  }

  .tanks-container:has(.tanks-grid > .tank-cell:nth-child(n+9)) {
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .tanks-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for tablets */
  }

  /* Adjust scrollbar threshold for 3-column layout (6 tanks = 2 rows) */
  .tanks-container:has(.tanks-grid > .tank-cell:nth-child(-n+6):last-child) {
    overflow-y: hidden;
  }

  .tanks-container:has(.tanks-grid > .tank-cell:nth-child(n+7)) {
    overflow-y: auto;
  }
}

@media (max-width: 576px) {
  .tanks-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
  }

  /* Adjust scrollbar threshold for 2-column layout (4 tanks = 2 rows) */
  .tanks-container:has(.tanks-grid > .tank-cell:nth-child(-n+4):last-child) {
    overflow-y: hidden;
  }

  .tanks-container:has(.tanks-grid > .tank-cell:nth-child(n+5)) {
    overflow-y: auto;
  }
}

/* Custom scrollbar for tanks container */
.tanks-container::-webkit-scrollbar {
  width: 6px;
}

.tanks-container::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.tanks-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.tanks-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Modern Card Styling */
.card {
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible; /* Changed from hidden to allow tooltips to render */
  width: 100%; /* Take full width of column */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; /* Keep border radius */
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  opacity: 1;
}

.card-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  flex-shrink: 0; /* Prevent shrinking in flex layout */
}

.card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.card-actions {
  padding-top: 0.5rem;
  margin-top: auto;
  flex-shrink: 0;
}

/* Modern Navbar */
.modern-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary) !important;
  transition: all 0.2s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.brand-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(59, 130, 246, 0.1);
}

.nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(59, 130, 246, 0.15);
}

.user-badge {
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
}

/* Modern Footer */
.modern-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.modern-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.modern-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Main Container */
.main-container {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* Navbar brand image sizing */
.navbar-brand img {
  height: 36px;
  width: 36px;
  transition: transform 0.2s ease;
}

.navbar-brand:hover img {
  transform: rotate(5deg);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Modern System Status Box */
.system-status-box {
  padding: 10px 16px;
  margin: 12px 0 18px 0;
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  width: 100%;
  box-shadow: var(--shadow-md);
  position: relative;
  cursor: help;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  z-index: 1; /* Base z-index for the status box */
  flex-shrink: 0; /* Prevent shrinking in flex layout */
}

.system-status-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  z-index: 100; /* Elevate on hover to ensure tooltip is above other elements */
}

.system-status-box.status-normal {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
}

.system-status-box.status-error {
  background: linear-gradient(135deg, var(--danger-color), #dc2626);
  color: white;
  animation: pulse-error 2s ease-in-out infinite;
}

@keyframes pulse-error {
  0%, 100% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  }
}

/* Modern Tooltip */
.status-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 10000; /* Very high z-index to appear above everything */
  min-width: 300px;
  max-width: 500px;
  white-space: pre-wrap;
  text-align: left;
  font-size: 0.75rem;
  font-weight: normal;
  animation: fadeInTooltip 0.2s ease;
  pointer-events: none; /* Prevent tooltip from interfering with mouse events */
}

@keyframes fadeInTooltip {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.status-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.95);
}

.status-tooltip pre {
  margin: 0;
  padding: 0;
  background: transparent;
  color: white;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.system-status-box:hover .status-tooltip {
  display: block;
}

/* Modern Loading Animation */
.device-loading {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.device-loading .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
  border-color: var(--primary-color);
  border-right-color: transparent;
}

.device-loading div:not(.spinner-border) {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Modern Buttons */
.btn {
  border-radius: var(--radius-md);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #1d4ed8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-danger {
  border: 2px solid var(--danger-color);
  color: var(--danger-color);
  background: transparent;
}

.btn-outline-danger:hover {
  background: var(--danger-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

/* Modern Form Controls */
.form-control {
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  padding: 0.625rem 1rem;
  transition: all 0.2s ease;
  background: var(--bg-primary);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: var(--bg-primary);
}

.form-label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  padding: 0.875rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.hero-cta:hover {
  gap: 0.75rem;
}

.hero-cta svg {
  transition: transform 0.2s ease;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-section {
    padding: 3rem 1.5rem;
  }
}

/* Features Section */
.features-section {
  margin-bottom: 4rem;
}

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
  color: var(--primary-color);
}

.feature-icon-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.2));
  color: var(--secondary-color);
}

.feature-icon-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.2));
  color: var(--accent-color);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
  .feature-card {
    margin-bottom: 1.5rem;
  }
}

/* Compliance Page Styling */
.compliance-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.compliance-container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}

.compliance-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}

.compliance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.compliance-card.has-selection {
  border-color: var(--primary-color);
}

.compliance-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(139, 92, 246, 0.03));
}

.device-info {
  flex: 1;
}

.device-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.device-meta {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.compliance-card-body {
  padding: 1.5rem;
}

.report-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.report-checkbox {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  transition: all 0.2s ease;
  margin-bottom: 0;
}

.report-checkbox:hover {
  border-color: var(--primary-light);
  background: var(--bg-primary);
}

.report-checkbox input[type="checkbox"]:checked ~ .form-check-label {
  color: var(--primary-color);
}

.report-checkbox input[type="checkbox"]:checked ~ .form-check-label .report-label svg {
  color: var(--primary-color);
}

.report-checkbox .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  cursor: pointer;
  border: 2px solid var(--border-color);
}

.report-checkbox .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.report-checkbox .form-check-label {
  cursor: pointer;
  flex: 1;
  margin-left: 0.75rem;
}

.report-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.report-label svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

.report-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.report-info strong {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

.report-info small {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.last-checked {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

.last-checked small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
}

.last-checked svg {
  flex-shrink: 0;
}

.modern-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
}

.modern-alert svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.modern-alert .alert-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.modern-alert .alert-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .compliance-container {
    grid-template-columns: 1fr;
  }

  .compliance-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .generate-btn {
    width: 100%;
    justify-content: center;
  }

  .page-title {
    font-size: 2rem;
  }
}

