.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
  padding: 0px 40px;
  margin-bottom: 48px;
}
.dashboard-zone-button{
  display: flex;
  flex-direction: row;
    padding-left: 25px;
    align-items: center;
    margin-bottom: 20px;
}
.progress-container {
  background: #ecfdf5;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.progress-bar {
  height: 8px;
  background: #d1fae5;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.18s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
}

.service-status {
  margin-top: 12px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Обёртка всей зоны дашбордов */
.dashboard-zone {
  position: relative;
  padding: 16px 0;
  margin: 0 -16px;           /* компенсируем внутренние отступы, если нужно */
  border-radius: 12px;
  transition: all 0.18s ease;
}

/* Тонкая обводка по периметру зоны */
.dashboard-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(100, 116, 139, 0.12);   /* очень светлая серая */
  border-radius: 12px;
  pointer-events: none;
  transition: all 0.18s ease;
}

/* При наведении — обводка ярче + тень */
.dashboard-zone:hover::before {
  border-color: rgba(100, 116, 139, 0.28);
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.06);
}


.dashboard-zone:hover {
  opacity: 1;
}


.add-dashboard-btn {

  top: 0.5rem;
  left: 0.5rem;
  background: linear-gradient(to bottom, #003700, #ededef);
  color: #f9fffc;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(100, 104, 117, 0.3);
  transition: all 0.2s;
}

.add-dashboard-btn:hover {
  background: linear-gradient(to bottom, #015c01, #ededef);
  transform: scale(1.1);
}
#dashboardModal #createCustom {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
}


/* Чтобы заголовок "Настройка дашборда" был по центру */
.centered {
  text-align: center;
  width: 100%;
}

/* Форма теперь всегда видна внутри своего модального окна */
.custom-form {
  display: block;   /* раньше было display: none + .active */
}

/* Кнопки Отмена / Сохранить */
.form-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#cancelCustom {
  background: var(--gray-200);
  color: var(--gray-900);
}

#saveCustom {
  background: var(--accent);
  color: white;
}

.dashboard-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  background: linear-gradient(90deg, #000000, #242425);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 3px rgba(30,64,175,0.2);
  letter-spacing: -0.5px;
  padding-left: 25px;
}