/* =============================================================================
   CUSTOM DASHBOARD DESIGN - Light & Professional
   ============================================================================= */

/* -----------------------------------------------------------------------------
   GOOGLE FONTS - Inter for modern, clean typography
   ----------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* -----------------------------------------------------------------------------
   ROOT VARIABLES
   ----------------------------------------------------------------------------- */
:root {
  --accent-primary: #4169e1;
  --accent-light: #6b8de8;
  --accent-glow: rgba(65, 105, 225, 0.2);
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-hover-bg: rgba(255, 255, 255, 1);
  --card-border: rgba(65, 105, 225, 0.15);
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-gradient-1: #f8fafc;
  --bg-gradient-2: #f1f5f9;
  --bg-gradient-3: #e2e8f0;
  --status-green: #10b981;
  --status-red: #ef4444;
  --status-orange: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(65, 105, 225, 0.15);
}

/* -----------------------------------------------------------------------------
   GLOBAL STYLES
   ----------------------------------------------------------------------------- */
* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body {
  background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%) !important;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

/* -----------------------------------------------------------------------------
   SERVICE CARDS
   ----------------------------------------------------------------------------- */
.service {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.service:hover {
  transform: translateY(-6px) !important;
  z-index: 10 !important;
}

.service-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-sm) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.service:hover .service-card {
  background: var(--card-hover-bg) !important;
  border-color: var(--accent-light) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Icon styling */
.service-card img,
.service-card svg {
  transition: transform 0.25s ease !important;
}

.service:hover .service-card img,
.service:hover .service-card svg {
  transform: scale(1.1) !important;
}

/* Service title */
.service-card .service-title {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.01em !important;
}

/* Service description */
.service-card .service-description {
  color: var(--text-secondary) !important;
  font-size: 0.8rem !important;
}

/* -----------------------------------------------------------------------------
   SECTION HEADERS
   ----------------------------------------------------------------------------- */
.group-header {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  font-size: 1.1rem !important;
  color: var(--text-primary) !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.75rem !important;
  border-bottom: 2px solid var(--accent-primary) !important;
  display: inline-block !important;
}

/* -----------------------------------------------------------------------------
   TAGESLOSUNG - SPECIAL STYLING
   ----------------------------------------------------------------------------- */
#Losung {
  margin-bottom: 2rem;
}

#Losung .service {
  width: 100% !important;
  max-width: 100% !important;
}

#Losung .service:hover {
  transform: none !important;
}

#Losung .service-card {
  padding: 2.5rem !important;
  background: linear-gradient(135deg, #ffffff 0%, rgba(124, 58, 237, 0.05) 100%) !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow-md) !important;
  position: relative;
  overflow: hidden;
}

#Losung .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-light), var(--accent-primary));
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Losung text styling */
#Losung .widget-customapi .widget-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: 1.5rem;
}

#Losung .widget-customapi .widget-value {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 400;
}

/* Losungstext extra prominent */
#Losung .widget-customapi > div:first-child .widget-value {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--accent-primary);
  line-height: 1.6;
}

/* Bibelstellen dezenter */
#Losung .widget-customapi > div:nth-child(2) .widget-value,
#Losung .widget-customapi > div:nth-child(4) .widget-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 500;
}

/* -----------------------------------------------------------------------------
   STATUS INDICATORS - Prominent & Clear
   ----------------------------------------------------------------------------- */
.status-indicator,
.service-card .status,
[class*="bg-green"],
[class*="bg-red"],
[class*="bg-orange"],
[class*="bg-yellow"] {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  border-radius: 50% !important;
}

/* Online Status - Bright Green */
[class*="bg-green"],
[class*="bg-emerald"] {
  background-color: var(--status-green) !important;
  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.2),
    0 0 12px rgba(16, 185, 129, 0.4) !important;
  animation: pulse-green 2s ease-in-out infinite !important;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(16, 185, 129, 0.2),
      0 0 12px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(16, 185, 129, 0.15),
      0 0 20px rgba(16, 185, 129, 0.5);
  }
}

/* Offline Status - Red */
[class*="bg-red"] {
  background-color: var(--status-red) !important;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.2),
    0 0 12px rgba(239, 68, 68, 0.4) !important;
}

/* Pending Status - Orange */
[class*="bg-orange"],
[class*="bg-yellow"] {
  background-color: var(--status-orange) !important;
  box-shadow:
    0 0 0 3px rgba(245, 158, 11, 0.2),
    0 0 12px rgba(245, 158, 11, 0.4) !important;
}

/* -----------------------------------------------------------------------------
   WIDGETS
   ----------------------------------------------------------------------------- */
.widget-container {
  transition: opacity 0.2s ease !important;
}

.widget-value {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.widget-label {
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}

/* -----------------------------------------------------------------------------
   HEADER / WIDGETS BAR
   ----------------------------------------------------------------------------- */
.header-widget {
  background: var(--card-bg) !important;
  border-radius: 14px !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Search bar */
input[type="text"],
.search-input {
  background: white !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
  font-weight: 500 !important;
}

input[type="text"]:focus,
.search-input:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1) !important;
  outline: none !important;
}

/* -----------------------------------------------------------------------------
   INFRASTRUKTUR SECTION - Special Accent
   ----------------------------------------------------------------------------- */
#Infrastruktur .service-card {
  border-left: 4px solid var(--accent-primary) !important;
}

/* -----------------------------------------------------------------------------
   PROJEKTE SECTION - Gradient Top Border
   ----------------------------------------------------------------------------- */
#Projekte .service-card {
  position: relative;
  overflow: hidden;
}

#Projekte .service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
}

/* -----------------------------------------------------------------------------
   SCROLL BAR
   ----------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* -----------------------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  #Losung .service-card {
    padding: 1.5rem !important;
  }

  #Losung .widget-customapi > div:first-child .widget-value {
    font-size: 1.2rem;
  }

  .service-card {
    border-radius: 12px !important;
  }
}

/* -----------------------------------------------------------------------------
   ANIMATIONS
   ----------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.service:nth-child(1) { animation-delay: 0.05s; }
.service:nth-child(2) { animation-delay: 0.1s; }
.service:nth-child(3) { animation-delay: 0.15s; }
.service:nth-child(4) { animation-delay: 0.2s; }
.service:nth-child(5) { animation-delay: 0.25s; }
.service:nth-child(6) { animation-delay: 0.3s; }
.service:nth-child(7) { animation-delay: 0.35s; }
.service:nth-child(8) { animation-delay: 0.4s; }
.service:nth-child(9) { animation-delay: 0.45s; }
.service:nth-child(10) { animation-delay: 0.5s; }
.service:nth-child(11) { animation-delay: 0.55s; }
.service:nth-child(12) { animation-delay: 0.6s; }

/* -----------------------------------------------------------------------------
   GREETING & DATETIME
   ----------------------------------------------------------------------------- */
.greeting-text {
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.datetime {
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}

/* -----------------------------------------------------------------------------
   WEATHER WIDGET
   ----------------------------------------------------------------------------- */
.weather-current {
  font-weight: 600 !important;
}
