/* === Liquid Glass Effect (Apple iOS 17 / macOS Sonoma style) === */

/* Service cards & bookmarks */
.service-card,
.bookmark a,
#information-widgets > div,
#widgets-wrap > div {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 32px rgba(0, 0, 0, 0.24),
    0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover — subtle lift */
.service-card:hover,
.bookmark a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px) !important;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 40px rgba(0, 0, 0, 0.32),
    0 4px 12px rgba(0, 0, 0, 0.16) !important;
}

/* Widget metric blocks (Headscale fields, Nextcloud freespace etc) */
.information-widget-resource,
.service-card .grid > div {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
}

/* Group headers — slightly brighter */
.services-group h2,
.bookmark-group h2 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Search input */
.information-widget-search input {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* === Spacing fixes === */

/* Информационные виджеты сверху — больше воздуха между блоками */
#information-widgets {
  gap: 0.5rem !important;
  padding: 0.75rem 0.5rem !important;
  margin-bottom: 1rem !important;
}

#widgets-wrap {
  gap: 0.5rem !important;
}

#information-widgets-right {
  gap: 0.5rem !important;
  margin-top: 0.5rem !important;
}

/* Resource блоки (CPU, MEM, Disk) — внутренние отступы */
.information-widget-resource {
  padding: 0.4rem 0.6rem !important;
  margin: 0.15rem !important;
}

/* Datetime widget */
.information-widget-datetime {
  padding: 0.5rem 0.75rem !important;
}

/* Search input — больше высоты */
.information-widget-search {
  padding: 0.25rem 0 !important;
}
.information-widget-search input {
  height: 2.25rem !important;
  padding: 0 0.75rem !important;
}

/* Группы сервисов — больше воздуха между группами и от шапки */
.services-group {
  margin-bottom: 0.75rem !important;
  padding: 0.25rem !important;
}

#services {
  gap: 0.75rem !important;
  padding: 0.5rem !important;
}

/* Заголовки групп */
.services-group h2,
.bookmark-group h2 {
  margin-bottom: 0.5rem !important;
  padding-left: 0.25rem !important;
  font-size: 1.25rem !important;
}

/* Карточки сервисов — больше внутренних отступов */
.service-card {
  padding: 0.5rem 0.75rem !important;
  margin-bottom: 0.4rem !important;
}

.service-name {
  padding: 0.25rem 0.4rem !important;
}

/* Виджет блоки внутри карточки (Headscale fields, Nextcloud) — отступы */
.service-card .grid {
  gap: 0.4rem !important;
  margin-top: 0.4rem !important;
}

.service-card .grid > div {
  padding: 0.5rem 0.25rem !important;
}

/* Bookmarks внизу */
#bookmarks {
  margin-top: 1rem !important;
  gap: 0.75rem !important;
}

/* === Header spacing fix === */
.services-group h2,
.bookmark-group h2 {
  margin-top: 1.25rem !important;
  margin-bottom: 0.75rem !important;
  padding-left: 0.75rem !important;
  padding-top: 0.25rem !important;
}

/* Первая группа — меньше верхнего отступа */
#services .services-group:first-child h2 {
  margin-top: 0.5rem !important;
}

/* Отступ слева у самого контейнера сервисов */
#services {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}
