<template>
  <div class="container-fluid py-4 fournisseur-shell">
    <div class="card border-0 mb-4 hero-shell">
      <div class="card-body p-4">
        <div
          class="d-flex flex-column flex-lg-row justify-content-between align-items-lg-center gap-3"
        >
          <div>
            <h4 class="text-white mb-1">
              <slot name="page-title">Gestion des fournisseurs</slot>
            </h4>
            <p class="text-white-50 mb-0">
              <slot name="page-subtitle"
                >Pilotez vos fournisseurs et centralisez leurs
                informations.</slot
              >
            </p>
          </div>
          <div class="d-flex gap-2 flex-wrap">
            <slot name="header-right" />
          </div>
        </div>
      </div>
    </div>

    <div class="row g-3 mb-3">
      <slot name="summary-cards" />
    </div>

    <div class="card border-0 content-shell">
      <div class="card-body p-3 p-md-4">
        <div
          class="d-sm-flex justify-content-between align-items-center gap-2 action-row"
        >
          <div>
            <slot name="fournisseur-new-action"></slot>
          </div>
          <div class="d-flex align-items-center flex-wrap gap-2">
            <div class="dropdown d-inline">
              <slot name="select-filter"></slot>
            </div>
            <slot name="fournisseur-other-action"></slot>
          </div>
        </div>

        <div class="mt-3 table-shell">
          <slot name="fournisseur-table"></slot>
        </div>
      </div>
    </div>
  </div>
</template>
<script></script>

<style scoped>
.hero-shell {
  background: linear-gradient(135deg, #344767 0%, #5e72e4 100%);
  box-shadow: 0 10px 30px rgba(52, 71, 103, 0.2);
}

.content-shell {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.table-shell {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1rem;
}
</style>
