$surface: #ffffff;
$border: #e2e8f0;
$primary: #1b64f2;
$muted: #6b7280;
$text: #0f172a;

:host {
  display: block;
}

.prescriptions-section {
  margin: 1.5rem auto;
  max-width: 1400px;
  background: $surface;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.1);
}

.section-header {
  margin-bottom: 1.5rem;

  h2 {
    margin: 0;
    color: $text;
  }

  p {
    margin: 0.25rem 0 0;
    color: $muted;
  }
}

.empty-state {
  text-align: center;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.05);
  color: $muted;
}

.prescription-card {
  border: 1px solid $border;
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, rgba(247, 250, 255, 0.6), #fff);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.prescription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  h3 {
    margin: 0;
    color: $text;
  }

  .prescription-number {
    margin: 0.25rem 0 0;
    color: $muted;
    font-size: 0.9rem;
  }
}

.prescription-status {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;

  &.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
  }
  &.status-expired {
    background: rgba(248, 113, 113, 0.2);
    color: #dc2626;
  }
  &.status-pending {
    background: rgba(234, 179, 8, 0.2);
    color: #b45309;
  }
}

.prescription-details {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;

  p {
    margin: 0;
    color: $text;
    font-size: 0.95rem;

    strong {
      color: $muted;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
  }
}

