:root {
  /* Primary color palette */
  --homepage-color: #2C3E50;
  --homepage-color-hover: #34495E;
  --homepage-color-active: #1ABC9C;
  
  /* Accent colors */
  --homepage-accent: #F39C12;
  
  /* Background colors */
  --homepage-bg: #0F172A;
  --homepage-bg-alt: #1E293B;
  --homepage-bg-card: #1E293B;
  
  /* Text colors */
  --homepage-text: #F8FAFC;
  --homepage-text-secondary: #CBD5E1;
  
  /* Borders and shadows */
  --homepage-card-radius: 12px;
  --homepage-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  
  /* Custom fonts */
  --homepage-font-family: 'Inter', 'Montserrat', sans-serif;
}

/* Page background with subtle gradient - made semi-transparent for neural network */


body {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(25, 41, 66, 0.95) 100%);
  font-family: var(--homepage-font-family);
  position: relative;
}


/* Header styling */
.header {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
}

.header .logo img {
  max-height: 40px;
  transition: filter 0.3s ease;
}

.header .logo:hover img {
  filter: drop-shadow(0 0 5px var(--homepage-accent));
}

/* Card styling */
.card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--homepage-card-radius);
  box-shadow: var(--homepage-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Service icons */
.service-item .service-icon {
  background: linear-gradient(135deg, #2C3E50 0%, #1ABC9C 100%);
  border-radius: 12px;
  padding: 10px;
  transition: all 0.3s ease;
}

.service-item:hover .service-icon {
  background: linear-gradient(135deg, #1ABC9C 0%, #2C3E50 100%);
  transform: scale(1.05);
}

/* Status indicators */
.status-ok {
  color: #10B981;
}

.status-warning {
  color: #F59E0B;
}

.status-error {
  color: #EF4444;
}

/* Override Homepage's background gradient that's blocking our neural network */
.fixed.overflow-auto.w-full.h-full.bg-theme-50.dark\:bg-theme-800 {
  background: transparent !important;
}

/* Also target the specific div with inline styles */
div[style*="background-image"] {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(25, 41, 66, 0.85) 100%) !important;
}

/* Complex Neural Network Pattern - multiple layers */
#page_wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter id='glow'%3E%3CfeGaussianBlur stdDeviation='3' result='coloredBlur'/%3E%3CfeMerge%3E%3CfeMergeNode in='coloredBlur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3C!-- Main nodes --%3E%3Ccircle cx='50' cy='50' r='3' fill='%23d4af37' filter='url(%23glow)'%3E%3Canimate attributeName='r' values='3;5;3' dur='4s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='250' cy='50' r='2' fill='%23f4e4bc' opacity='0.8'%3E%3Canimate attributeName='cy' values='50;250;50' dur='12s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='150' cy='150' r='4' fill='%23d4af37' filter='url(%23glow)'%3E%3Canimate attributeName='opacity' values='0.4;1;0.4' dur='3s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='50' cy='250' r='2' fill='%23f4e4bc' opacity='0.6'%3E%3Canimate attributeName='cx' values='50;250;50' dur='10s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='250' cy='250' r='3' fill='%23d4af37' filter='url(%23glow)'%3E%3Canimate attributeName='r' values='3;5;3' dur='4s' begin='2s' repeatCount='indefinite'/%3E%3C/circle%3E%3C!-- Secondary nodes --%3E%3Ccircle cx='100' cy='100' r='2' fill='%2392a5f0' opacity='0.5'%3E%3Canimate attributeName='opacity' values='0.5;0.8;0.5' dur='5s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='200' cy='100' r='2' fill='%2392a5f0' opacity='0.5'%3E%3Canimate attributeName='opacity' values='0.5;0.8;0.5' dur='5s' begin='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='100' cy='200' r='2' fill='%2392a5f0' opacity='0.5'%3E%3Canimate attributeName='opacity' values='0.5;0.8;0.5' dur='5s' begin='2s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='200' cy='200' r='2' fill='%2392a5f0' opacity='0.5'%3E%3Canimate attributeName='opacity' values='0.5;0.8;0.5' dur='5s' begin='3s' repeatCount='indefinite'/%3E%3C/circle%3E%3C!-- Connection lines --%3E%3Cpath d='M50,50 L150,150 L250,250' stroke='%23d4af37' stroke-width='0.5' fill='none' opacity='0.3'%3E%3Canimate attributeName='opacity' values='0.3;0.7;0.3' dur='4s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M250,50 L150,150 L50,250' stroke='%23d4af37' stroke-width='0.5' fill='none' opacity='0.3'%3E%3Canimate attributeName='opacity' values='0.3;0.7;0.3' dur='4s' begin='2s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M100,100 Q150,50 200,100' stroke='%2392a5f0' stroke-width='0.3' fill='none' opacity='0.4'%3E%3Canimate attributeName='d' values='M100,100 Q150,50 200,100;M100,100 Q150,80 200,100;M100,100 Q150,50 200,100' dur='6s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M100,200 Q150,250 200,200' stroke='%2392a5f0' stroke-width='0.3' fill='none' opacity='0.4'%3E%3Canimate attributeName='d' values='M100,200 Q150,250 200,200;M100,200 Q150,220 200,200;M100,200 Q150,250 200,200' dur='6s' repeatCount='indefinite'/%3E%3C/path%3E%3C!-- Data flow particles --%3E%3Ccircle r='1' fill='%23f4e4bc'%3E%3CanimateMotion dur='8s' repeatCount='indefinite' path='M50,50 L150,150 L250,250'/%3E%3C/circle%3E%3Ccircle r='1' fill='%23f4e4bc'%3E%3CanimateMotion dur='8s' begin='4s' repeatCount='indefinite' path='M250,50 L150,150 L50,250'/%3E%3C/circle%3E%3C/svg%3E");
  background-size: 300px 300px;
  animation: neuralDrift 45s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

@keyframes neuralDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(-200px, -200px); }
}

/* Greeting widget */
.greeting {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(26, 188, 156, 0.4) 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--homepage-card-shadow);
}

.greeting h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #F8FAFC, #1ABC9C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button styling */
button, .button, a.button {
  background: linear-gradient(90deg, var(--homepage-color) 0%, var(--homepage-color-active) 100%);
  border-radius: 8px;
  border: none;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

button:hover, .button:hover, a.button:hover {
  background: linear-gradient(90deg, var(--homepage-color-active) 0%, var(--homepage-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.2);
}

/* Search bar styling */
.search-container input {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--homepage-text);
}

.search-container input:focus {
  border-color: var(--homepage-color-active);
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.25);
}

/* Service sections */
.service-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--homepage-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Service cards - legal themed */
.services-group:nth-of-type(1) .service-item .service-icon {
  background: linear-gradient(135deg, #2C3E50 0%, #3498db 100%);
}

/* Learning themed */
.services-group:nth-of-type(2) .service-item .service-icon {
  background: linear-gradient(135deg, #2C3E50 0%, #9b59b6 100%);
}

/* Collaboration themed */
.services-group:nth-of-type(3) .service-item .service-icon {
  background: linear-gradient(135deg, #2C3E50 0%, #27ae60 100%);
}

/* Practice Ops themed */
.services-group:nth-of-type(4) .service-item .service-icon {
  background: linear-gradient(135deg, #2C3E50 0%, #f1c40f 100%);
}

/* AI themed */
.services-group:nth-of-type(5) .service-item .service-icon {
  background: linear-gradient(135deg, #2C3E50 0%, #e74c3c 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .greeting h2 {
    font-size: 1.5rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(26, 188, 156, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 188, 156, 0.7);
}

/* Service descriptions */
.service-item .service-name {
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-item:hover .service-name {
  color: var(--homepage-color-active);
}

.service-item .service-description {
  font-size: 0.85rem;
  color: var(--homepage-text-secondary);
  max-width: 90%;
  margin: 0 auto;
}

/* Group headers with legal-themed styling */
.group-name {
  position: relative;
  display: inline-block;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--homepage-accent);
}

.group-name:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--homepage-accent), transparent);
}
