/* ================================
   COMPONENTS CSS - INTERACTIVE HIGHLIGHTS
   ================================ */

/* =================== 
   SYSTEM COMPONENTS STYLES
   =================== */

.device-card {
  transition: all 0.3s ease;
}

.device-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.device-status-online {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: pulse-green 2s infinite;
}

.device-status-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  animation: pulse-yellow 2s infinite;
}

.device-status-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse-yellow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* =================== 
   COP INDICATOR STYLES
   =================== */

.cop-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cop-value {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
}

.cop-status-dot {
  display: inline-flex;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.cop-status-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* COP indicator hover effect */
.cop-indicator:hover .cop-status-dot {
  transform: scale(1.1);
}

/* Tailwind animate-ping override for better visibility */
@keyframes cop-ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: cop-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* =================== 
   GATEWAY DETAILS - VISUAL ENHANCEMENT
   =================== */

/* Metric Display - Large Numbers with Units */
.metric-value {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111827;
}

.dark .metric-value {
  color: #f9fafb;
}

.metric-unit {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  margin-left: 0.375rem;
  letter-spacing: 0.01em;
}

.dark .metric-unit {
  color: #9ca3af;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.dark .metric-label {
  color: #9ca3af;
}

/* Info Grid - Clean Data Display */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.dark .info-item {
  background: rgba(0, 0, 0, 0.2);
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.dark .info-item:hover {
  background: rgba(0, 0, 0, 0.3);
}

.info-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .info-item-label {
  color: #9ca3af;
}

.info-item-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.dark .info-item-value {
  color: #f9fafb;
}

/* Status Indicators */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
}

.status-badge-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.dark .status-badge-success {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: #d1fae5;
}

.status-badge-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.dark .status-badge-warning {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  color: #fef3c7;
}

.status-badge-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

.dark .status-badge-error {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
  color: #fee2e2;
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
  margin: 2rem 0;
}

.dark .section-divider {
  background: linear-gradient(90deg, transparent 0%, #374151 50%, transparent 100%);
}

/* Data Table Enhancement */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  padding: 1rem;
  text-align: left;
  background: #f9fafb;
}

.dark .data-table th {
  color: #9ca3af;
  background: #111827;
}

.data-table td {
  padding: 1.25rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #374151;
  border-top: 1px solid #f3f4f6;
}

.dark .data-table td {
  color: #d1d5db;
  border-top: 1px solid #1f2937;
}

.data-table tr:hover td {
  background: #f9fafb;
}

.dark .data-table tr:hover td {
  background: #1f2937;
}

/* Typography Refinements */
.detail-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.dark .detail-heading {
  color: #f9fafb;
}

.detail-subheading {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.dark .detail-subheading {
  color: #9ca3af;
}

/* Loading State Enhancement */
.loading-skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

.dark .loading-skeleton {
  background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
  background-size: 200% 100%;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =================== 
   PLANT TABLE STYLES
   =================== */

.plants-table-row {
  cursor: pointer;
  transition: all 0.2s ease;
}

.plants-table-row:hover {
  background-color: rgba(59, 130, 246, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.plants-table-row:active {
  transform: translateY(0);
}

.plant-status-online {
  background-color: #10b981;
  animation: pulse-green 2s infinite;
}

.plant-status-offline {
  background-color: #ef4444;
  animation: pulse-red 2s infinite;
}

.plant-status-warning {
  background-color: #f59e0b;
  animation: pulse-yellow 2s infinite;
}

/* =================== 
   SPLASH SCREEN STYLES
   =================== */

/* Main splash screen container */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Splash container with centered content */
.splash-container {
  text-align: center;
  color: white;
  animation: splash-container-entrance 0.8s ease-out;
}

/* Logo container and animation */
.splash-logo-container {
  margin-bottom: 3rem;
  animation: logo-bounce-in 1s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-logo {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  animation: logo-glow 2s ease-in-out infinite alternate;
  margin: 0 auto;
  display: block;
}

/* Text container */
.splash-text-container {
  margin-bottom: 2rem;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.splash-text {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: text-fade-in 0.6s ease-out forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Loading dots animation */
.splash-loading-dots {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.splash-loading-dots span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: loading-dots 1.4s ease-in-out infinite;
}

.splash-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.splash-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Progress bar */
.splash-progress-container {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.splash-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #e0f2fe, #ffffff);
  background-size: 200% 100%;
  border-radius: 2px;
  transition: width 0.3s ease-out;
  animation: progress-shimmer 1.5s ease-in-out infinite;
}

/* Main dashboard transition */
.main-dashboard {
  transition: opacity 0.8s ease-in, transform 0.8s ease-in;
  transform: translateY(20px);
}

.main-dashboard.show {
  opacity: 1 !important;
  pointer-events: all !important;
  transform: translateY(0);
}

/* =================== 
   SPLASH SCREEN RESPONSIVE
   =================== */

/* Larger screens - bigger logo */
@media (min-width: 1024px) {
  .splash-logo {
    width: 280px;
  }
  
  .splash-logo-container {
    margin-bottom: 4rem;
  }
}

/* Tablet screens */
@media (min-width: 768px) and (max-width: 1023px) {
  .splash-logo {
    width: 240px;
  }
  
  .splash-logo-container {
    margin-bottom: 3.5rem;
  }
}

/* Mobile screens */
@media (max-width: 767px) {
  .splash-logo {
    width: 180px;
  }
  
  .splash-logo-container {
    margin-bottom: 2.5rem;
  }
  
  .splash-container {
    padding: 0 1rem;
  }
}

/* =================== 
   SPLASH SCREEN ANIMATIONS
   =================== */

@keyframes splash-container-entrance {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes logo-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    transform: scale(1.1) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes logo-glow {
  0% {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
  }
  100% {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
  }
}

@keyframes text-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading-dots {
  0%, 20% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.7;
  }
  80%, 100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =================== 
   HELP TOOLTIP SYSTEM
   =================== */

.help-btn {
  position: relative;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white !important;
  border: none;
  animation: help-pulse 3s ease-in-out infinite;
}

.help-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.help-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-sizing: border-box;
  pointer-events: none;
}

.help-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Enhanced glassmorphism effect - stronger blur when active */
.help-overlay.show {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.7);
}

/* Disable all interactions behind overlay */
.help-overlay.show ~ * {
  pointer-events: none;
}

/* Re-enable interactions only for help content */
.help-overlay.show .help-content {
  pointer-events: all;
}

/* Force overlay to be on top of everything */
.help-overlay {
  position: fixed !important;
  z-index: 999999 !important;
}

.help-overlay.show {
  z-index: 999999 !important;
}

/* Ensure Operations page elements don't interfere */
#page-operations * {
  position: relative;
  z-index: auto;
}

/* Make sure the blur effect covers everything */
.help-overlay.show::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}

/* Ensure all page content is blurred when help is open */
body.help-open main,
body.help-open .page-content,
body.help-open #page-operations,
body.help-open #page-overview,
body.help-open #page-plants,
body.help-open #page-alarms,
body.help-open #page-reports,
body.help-open #page-cbm,
body.help-open #page-debug,
body.help-open header,
body.help-open .card-readable,
body.help-open .ops-value-card {
  filter: blur(3px);
  transition: filter 0.4s ease;
  pointer-events: none;
}

.help-overlay.show .help-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.help-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  transform: translateY(30px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  margin: auto;
  pointer-events: all;
  z-index: 1000000;
}

.dark .help-content {
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(75, 85, 99, 0.3);
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(75, 85, 99, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Help Header */
.help-header {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.help-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.help-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin: 0;
}

.help-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.help-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Help Body */
.help-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.help-body::-webkit-scrollbar {
  width: 6px;
}

.help-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.help-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.help-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark .help-body::-webkit-scrollbar-track {
  background: #374151;
}

.dark .help-body::-webkit-scrollbar-thumb {
  background: #6b7280;
}

/* Help Items */
.help-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.help-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.dark .help-item {
  border-color: #374151;
  background: #374151;
}

.dark .help-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.help-question {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: between;
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
  position: relative;
}

.dark .help-question {
  background: #4b5563;
  color: #f9fafb;
}

.help-question span {
  flex: 1;
  margin-right: 1rem;
}

.help-chevron {
  color: #64748b;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.help-item.active .help-chevron {
  transform: rotate(180deg);
  color: #3b82f6;
}

.help-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.dark .help-answer {
  background: #374151;
}

.help-item.active .help-answer {
  max-height: 200px;
  padding: 1.5rem;
}

.help-answer p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
  font-size: 0.925rem;
}

.dark .help-answer p {
  color: #d1d5db;
}

/* Help Footer */
.help-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .help-footer {
  background: #374151;
  border-color: #4b5563;
}

.help-contact {
  display: flex;
  align-items: center;
  color: #64748b;
}

.dark .help-contact {
  color: #9ca3af;
}

/* Prevent body scroll interference while maintaining scrollability */
body.help-open {
  overflow: auto !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .help-overlay {
    padding: 0.5rem;
  }
  
  .help-content {
    max-height: 90vh;
    margin: 0;
    border-radius: 16px;
  }
  
  .help-header {
    padding: 1rem;
  }
  
  .help-title {
    font-size: 1.125rem;
  }
  
  .help-body {
    padding: 1rem;
    max-height: 70vh;
  }
  
  .help-question {
    padding: 0.875rem 1rem;
  }
  
  .help-item.active .help-answer {
    padding: 1rem;
  }
}

/* =================== 
   HELP ANIMATIONS
   =================== */

@keyframes help-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
}

/* =================== 
   INLINE TOOLTIPS
   =================== */

.inline-tooltip-btn {
  background: rgba(59, 130, 246, 0.1);
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #3b82f6;
  position: relative;
}

.inline-tooltip-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.1);
  color: #1d4ed8;
}

.dark .inline-tooltip-btn {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.dark .inline-tooltip-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

/* Enhanced native tooltip styling */
.inline-tooltip-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  max-width: 200px;
  white-space: normal;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: tooltip-fade-in 0.2s ease;
}

.inline-tooltip-btn[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1f2937;
  z-index: 1000;
}

@keyframes tooltip-fade-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Logo glow animation for splash screen */
@keyframes logo-glow {
  0% { 
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
  }
  100% { 
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.7)) 
            drop-shadow(0 0 30px rgba(16, 185, 129, 0.4));
  }
}

/* =================== 
   KI-WARTUNG PLACEHOLDER STYLES
   =================== */

.ki-wartung-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
  border-radius: 20px;
  padding: 4rem 2rem;
  overflow: hidden;
  animation: placeholder-fade-in 0.8s ease-out;
}

.dark .ki-wartung-placeholder {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
}

/* Robot container and animation */
.robot-container {
  margin-bottom: 3rem;
  position: relative;
  animation: robot-entrance 1.2s ease-out;
}

.robot-emoji {
  font-size: 8rem;
  animation: robot-head-movement 3s ease-in-out infinite,
             robot-glow 2s ease-in-out infinite alternate;
  transform-origin: center bottom;
  cursor: pointer;
  transition: transform 0.3s ease;
  user-select: none;
  display: block;
}

.robot-emoji:hover {
  transform: scale(1.1);
}

/* Welcome text styling */
.welcome-text {
  animation: text-fade-in 1s ease-out 0.5s both;
}

.hello-world {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease-in-out infinite;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.coming-soon {
  font-size: 1.8rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0;
  animation: text-breathe 2s ease-in-out infinite;
}

.dark .coming-soon {
  color: #94a3b8;
}

/* Decorative floating dots */
.decoration-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

.dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  opacity: 0.6;
  animation: dot-float 4s ease-in-out infinite;
}

.dot-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.dot-2 {
  top: 70%;
  right: 20%;
  animation-delay: 1.5s;
}

.dot-3 {
  bottom: 30%;
  left: 25%;
  animation-delay: 3s;
}

/* Responsive design */
@media (max-width: 768px) {
  .ki-wartung-placeholder {
    min-height: 60vh;
    padding: 2rem 1rem;
  }
  
  .robot-emoji {
    font-size: 6rem;
  }
  
  .hello-world {
    font-size: 2.5rem;
  }
  
  .coming-soon {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .robot-emoji {
    font-size: 5rem;
  }
  
  .hello-world {
    font-size: 2rem;
  }
  
  .coming-soon {
    font-size: 1.2rem;
  }
}

/* =================== 
   KI-WARTUNG ANIMATIONS
   =================== */

@keyframes placeholder-fade-in {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes robot-entrance {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
  }
  60% {
    transform: scale(1.1) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes robot-head-movement {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}

@keyframes robot-glow {
  0% {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.7)) 
            drop-shadow(0 0 35px rgba(139, 92, 246, 0.4));
  }
}

@keyframes text-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes text-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes dot-float {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.8;
  }
  66% {
    transform: translateY(10px) scale(0.9);
    opacity: 0.4;
  }
}

@keyframes progress-shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* Dark mode adjustments for splash screen */
[data-theme="dark"] .splash-screen,
.dark .splash-screen {
  background: linear-gradient(135deg, #1e3a8a 0%, #581c87 100%);
}

/* Responsive splash screen */
@media (max-width: 640px) {
  .splash-logo {
    width: 80px;
  }
  
  .splash-text {
    font-size: 1rem;
  }
  
  .splash-progress-container {
    width: 150px;
  }
}

/* =================== 
   INTERACTIVE ELEMENT ANIMATIONS 
   =================== */

/* Subtle glow animation for interactive elements */
@keyframes subtle-glow {
  0%, 100% { 
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
  }
  50% { 
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  }
}

@keyframes interactive-pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.02);
    opacity: 0.9;
  }
}

@keyframes border-glow {
  0%, 100% { 
    border-color: var(--border-primary);
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.2);
  }
  50% { 
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
  }
}

/* Icon Button Component - Enhanced Interactivity */
.icon-btn {
  padding: 0.5rem;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Interactive glow effect */
.icon-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
  border-radius: 12px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  animation: subtle-glow 3s infinite;
}

.icon-btn:hover::before {
  opacity: 0.7;
}

.icon-btn:hover {
  background: linear-gradient(135deg, var(--bg-primary), #e0f2fe);
  color: var(--vaillant-blue);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.icon-btn:focus {
  outline: none;
  border-color: var(--vaillant-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  animation: interactive-pulse 1s ease-in-out;
}

.icon-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

/* Online Indicator */
.online-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--status-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
  margin-right: 0.25rem;
}

.online-indicator.offline {
  background-color: var(--status-error);
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Status Icons */
.status-icon {
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

/* Chart Container */
.chart-container {
  position: relative;
  width: 100%;
  padding: 1rem;
}

/* Device Status Cards */
.device-status {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
}

.device-status:hover {
  background-color: var(--bg-tertiary);
  transform: translateX(2px);
}

/* Form Input Enhancements - Interactive */
.form-input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-primary);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg-primary), #f8fafc);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Interactive glow on hover */
.form-input:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f8fafc, var(--bg-primary));
}

/* Enhanced focus state */
.form-input:focus {
  border-color: var(--vaillant-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.1);
  outline: none;
  transform: scale(1.02);
  animation: border-glow 2s infinite;
}

/* Placeholder animation */
.form-input::placeholder {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.form-input:focus::placeholder {
  color: transparent;
  transform: translateY(-20px);
}

/* Select Dropdown - Enhanced */
.form-select {
  appearance: none;
  background: linear-gradient(135deg, var(--bg-primary), #f8fafc);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5rem 1.5rem;
  padding-right: 2.5rem;
  border: 2px solid var(--border-primary);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-select:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.form-select:focus {
  border-color: var(--vaillant-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  outline: none;
  animation: border-glow 2s infinite;
}

/* Button Variants - Enhanced Interactivity */
.btn-primary {
  background: linear-gradient(135deg, var(--vaillant-blue), #1e40af);
  color: white;
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ripple effect */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af, var(--vaillant-blue));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
  animation: interactive-pulse 1s ease-in-out;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
  color: var(--text-primary);
  border: 2px solid var(--border-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--bg-primary), #e2e8f0);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: var(--vaillant-blue);
}

.btn-secondary:focus {
  outline: none;
  border-color: var(--vaillant-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Alert Components */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success {
  background-color: rgba(5, 150, 105, 0.1);
  border-color: var(--status-success);
  color: var(--status-success);
}

.alert-warning {
  background-color: rgba(217, 119, 6, 0.1);
  border-color: var(--status-warning);
  color: var(--status-warning);
}

.alert-error {
  background-color: rgba(220, 38, 38, 0.1);
  border-color: var(--status-error);
  color: var(--status-error);
}

.alert-info {
  background-color: rgba(37, 99, 235, 0.1);
  border-color: var(--status-info);
  color: var(--status-info);
}

/* Modal Components */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--bg-primary);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Tooltip Components */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
}

.dark .tooltip:hover::after {
  background-color: rgba(255, 255, 255, 0.9);
  color: #1f2937;
}

/* Badge Components */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--status-success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-warning {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--status-warning);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

/* =================== 
   OPERATIONS PAGE TOOLTIPS
   =================== */

/* Tooltip Container für Operations-Seite - Verbesserte Sichtbarkeit */
.ops-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  margin-left: 0.5rem;
  color: #3b82f6;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(59, 130, 246, 0.3));
}

.ops-tooltip:hover {
  color: #1d4ed8;
  transform: scale(1.1);
}

.dark .ops-tooltip {
  color: #60a5fa;
  filter: drop-shadow(0 1px 2px rgba(96, 165, 250, 0.4));
}

.dark .ops-tooltip:hover {
  color: #3b82f6;
}

/* Tooltip Icon - Sichtbarer gemacht */
.ops-tooltip i {
  font-size: 0.875rem;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.3));
  border: 1px solid rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
  animation: tooltip-pulse 2s ease-in-out infinite;
}

.ops-tooltip:hover i {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.5));
  border-color: rgba(59, 130, 246, 0.6);
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  animation: none;
}

.dark .ops-tooltip i {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.35));
  border-color: rgba(59, 130, 246, 0.5);
}

.dark .ops-tooltip:hover i {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(59, 130, 246, 0.55));
  border-color: rgba(59, 130, 246, 0.7);
}

/* Tooltip Content - Verbesserte Sichtbarkeit */
.ops-tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: linear-gradient(135deg, #1f2937, #374151);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-line;
  max-width: 320px;
  min-width: 220px;
  text-align: left;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(59, 130, 246, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ops-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-100%) translateY(-12px) scale(1.02);
}

/* Tooltip Arrow - Verbessert */
.ops-tooltip::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #1f2937;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.ops-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* Dark Mode Tooltip - Verbessert */
.dark .ops-tooltip::before {
  background: linear-gradient(135deg, #374151, #4b5563);
  color: #f9fafb;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(96, 165, 250, 0.3);
}

.dark .ops-tooltip::after {
  border-top-color: #374151;
}

/* Responsive Tooltip */
@media (max-width: 768px) {
  .ops-tooltip::before {
    max-width: 250px;
    min-width: 180px;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  .ops-tooltip::after {
    border-width: 5px;
  }
}

@media (max-width: 480px) {
  .ops-tooltip::before {
    max-width: 200px;
    min-width: 150px;
    left: 0;
    transform: translateY(-100%);
  }
  
  .ops-tooltip:hover::before {
    transform: translateY(-100%) translateY(-8px);
  }
  
  .ops-tooltip::after {
    left: 20px;
    transform: none;
  }
  
  .ops-tooltip:hover::after {
    transform: translateY(-2px);
  }
}

/* Enhanced Tooltip Animation */
@keyframes tooltip-fade-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(-100%) translateY(-12px) scale(1.02);
  }
}

@keyframes tooltip-pulse {
  0%, 100% {
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    opacity: 0.8;
  }
  50% {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    opacity: 1;
  }
}

.ops-tooltip:hover::before {
  animation: tooltip-fade-in 0.3s ease;
}

/* Operations Value Cards Enhancement */
.ops-value-card {
  position: relative;
  transition: all 0.2s ease;
}

.ops-value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .ops-value-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-error {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--status-error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-info {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--status-info);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Progress Bar */
.progress {
  width: 100%;
  height: 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--status-success);
  transition: width 0.3s ease;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.dark .skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive Design for Components */
@media (max-width: 640px) {
  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .form-input,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}