/* ================================================================
   Empty State Component (Shared)
   ================================================================ */

@layer components {

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 48px 32px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(74, 144, 226, 0.14);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
  text-align: center;
}

.empty-state__content {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.empty-state__content > * + * {
  margin-top: 16px;
}

.empty-state__content i {
  display: block;
  font-size: 60px;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 12px;
}

.empty-state__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue-dark);
}

.empty-state__message {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-dark);
  line-height: 1.6;
  text-align: center;
}

.empty-state__supporting {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue-light);
  letter-spacing: 0.06em;
  text-transform: none;
  text-align: center;
}

.empty-state__actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.empty-state-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.empty-state-action:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.22);
}

.content-state-wrapper .empty-state-action:hover {
  background: #2563eb;
  transform: none;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.2);
}

.empty-state-action:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ================================================================
   Variants
   ================================================================ */

.empty-state--loading {
  background: #eef2ff;
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.empty-state--loading .empty-state__title {
  color: #4338ca;
}

.empty-state--error {
  background: #fef2f2;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.empty-state--error .empty-state__title {
  color: #dc2626;
}

.empty-state--error .empty-state-action {
  background: #ef4444;
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.2);
}

.empty-state--error .empty-state-action:hover {
  background: #dc2626;
}

.empty-state--no-results,
.empty-state--no-data,
.empty-state.content-state--empty {
  background: var(--white);
  border-color: rgba(74, 144, 226, 0.14);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
}

.empty-state--no-results .empty-state__title,
.empty-state--no-data .empty-state__title,
.empty-state.content-state--empty .empty-state__title {
  color: var(--primary-blue-dark);
}

.empty-state--no-results .empty-state__message,
.empty-state--no-data .empty-state__message,
.empty-state.content-state--empty .empty-state__message {
  color: var(--gray-medium);
}

.empty-state--no-results .empty-state__supporting,
.empty-state--no-data .empty-state__supporting,
.empty-state.content-state--empty .empty-state__supporting {
  color: var(--primary-blue);
}

.empty-state--no-results .empty-state__content i,
.empty-state--no-data .empty-state__content i,
.empty-state.content-state--empty .empty-state__content i {
  color: var(--primary-blue);
}

/* Dashboard specific styling */
.empty-state--dashboard {
  background: var(--white);
  border: 1px solid rgba(74, 144, 226, 0.18);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.empty-state--dashboard .empty-state__title {
  color: var(--primary-blue-dark);
}

.empty-state--dashboard .empty-state__supporting {
  color: var(--primary-blue);
}

.empty-state--dashboard .empty-state__content i {
  color: var(--primary-blue);
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 768px) {
  .empty-state {
    padding: 36px 20px;
    min-height: 220px;
    width: min(440px, 100%);
  }

  .empty-state__content i {
    font-size: 48px;
    margin-bottom: 12px;
  }

  .empty-state__title {
    font-size: 20px;
  }

  .empty-state__message {
    font-size: 15px;
  }
}

}
