/* Dashboard title */
.dashboard-title {
  font-size: 2.0rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  text-transform: uppercase;

  background: linear-gradient(90deg, #8e2de2, #4a00e0, #ff4ecd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-in-out;
}

/* Dashboard section */
.dashboard-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  padding: 16px 14px;
  margin-bottom: 36px;
  transition: all 0.3s ease;
}
.dashboard-section:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Фільтри */
.filters-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.filters-form .form-select,
.filters-form .form-control {
  flex: 0 0 auto;
  width: auto;
  min-width: 140px;

  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 6px 12px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}


.filters-form .form-select:focus,
.filters-form .form-control:focus {
  border-color: #8e2de2;
  box-shadow: 0 0 0 2px rgba(142, 45, 226, 0.15);
  min-width: 140px;
}

.filters-form input[type="date"] {
  max-width: 140px !important;
  min-width: 100px !important;
  flex: 0 0 auto !important;
  height: 40px;
}


/* Кнопки */
.btn-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}
.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.btn-filter {
  background: #fff;
  border: 2px solid #8e2de2;
  color: #8e2de2;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-filter:hover {
  background: #f8f4fe;
  box-shadow: 0 2px 8px rgba(142, 45, 226, 0.1);
  transform: translateY(-1px);
}

.btn-add-record {
  background: linear-gradient(90deg, #8e2de2, #4a00e0, #ff4ecd);
  color: #fff !important;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(142, 45, 226, 0.25);
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-add-record:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 45, 226, 0.35);
  text-decoration: none;
}

.btn-reset-filter {
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  text-decoration: none;
}
}
.btn-reset-filter.active {
  background: #fff;
  border: 2px solid #999;
  color: #444;
}
.btn-reset-filter.active:hover {
  background: #f3f3f3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.btn-reset-filter.inactive {
  background: #f5f5f5;
  border: 2px solid #ddd;
  color: #aaa;
  cursor: not-allowed;
}

/* === Контекстні меню (універсальні стилі для всіх модулів) === */
.dropdown-menu .btn-sm {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.dropdown-menu .btn-sm i {
  font-size: 1.1rem;
  line-height: 1;
}

/* різнокольорові кнопки в єдиному стилі */
.dropdown-menu .btn-outline-success {
  border: 1px solid #28a745;
  color: #28a745;
  background: #fff;
}
.dropdown-menu .btn-outline-success:hover {
  background: #28a745;
  color: #fff;
}

.dropdown-menu .btn-outline-danger {
  border: 1px solid #dc3545;
  color: #dc3545;
  background: #fff;
}
.dropdown-menu .btn-outline-danger:hover {
  background: #dc3545;
  color: #fff;
}

.dropdown-menu .btn-outline-primary {
  border: 1px solid #007bff;
  color: #007bff;
  background: #fff;
}
.dropdown-menu .btn-outline-primary:hover {
  background: #007bff;
  color: #fff;
}
