/* ═══════════════════════════════════════════════════════════════════════════════
   TheHighestCommittee Dashboard Custom Styling
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Primary colors */
  --color-primary: #10b981;
  --color-secondary: #0ea5e9;
  --color-accent: #f59e0b;
  
  /* Dark mode background */
  --bg-dark: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  
  /* Text colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER STYLING
   ═══════════════════════════════════════════════════════════════════════════════ */

.header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 3px solid var(--color-primary);
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}

.header-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.header-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD STYLING
   ═══════════════════════════════════════════════════════════════════════════════ */

.service-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.5);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.service-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.service-card-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════════════════════ */

.service-group-header {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.service-group-header:first-child {
  margin-top: 0;
}

.service-group-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 400;
  display: block;
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TAG STYLING
   ═══════════════════════════════════════════════════════════════════════════════ */

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0.25rem 0.25rem 0.25rem 0;
  transition: all 0.2s ease;
}

.service-tag:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.service-tag.host-11 {
  border-color: rgba(16, 185, 129, 0.3);
}

.service-tag.host-07 {
  border-color: rgba(14, 165, 233, 0.3);
}

.service-tag.host-13 {
  border-color: rgba(245, 158, 11, 0.3);
}

.service-tag.external {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   WIDGET STYLING
   ═══════════════════════════════════════════════════════════════════════════════ */

.widget {
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.widget-stat:last-child {
  border-bottom: none;
}

.widget-stat-label {
  color: var(--text-secondary);
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════════════════════════════════════════ */

.search {
  background: var(--bg-secondary);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.search:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .header-title {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .service-group-header {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.widget,
.service-group-header {
  animation: slideIn 0.4s ease-out;
}

/* Stagger animation for multiple items */
.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(n+5) { animation-delay: 0.25s; }
