:root {
  --app-radius: 18px;
  --app-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  --app-shadow-sm: 0 6px 16px rgba(0, 0, 0, .08);
}

html, body { height: 100%; }

.app-body {
  background: #f6f7fb;
}

.app-main {
  min-height: calc(100vh - 120px);
}

/* Bootstrap tweaks */
.btn { border-radius: 999px; }

.btn-lg {
  padding: .75rem 1.05rem;
  font-weight: 600;
}

.card {
  border: 0;
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-sm);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-weight: 700;
}

.card-title { font-weight: 800; }

.table {
  background: #fff;
  border-radius: var(--app-radius);
  overflow: hidden;
}

.table > :not(caption) > * > * {
  padding: .75rem .85rem;
}

.table thead th {
  font-size: .825rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: rgba(0,0,0,.6);
}

/* Page header */
.app-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.app-page-header h1 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 900;
}

.app-subtitle {
  color: rgba(0,0,0,.55);
  font-size: .9rem;
}

/* Small status chips */
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.06);
  font-weight: 600;
}

/* Big group cards */
.app-group-card {
  transition: transform .12s ease, box-shadow .12s ease;
}

.app-group-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--app-shadow);
}

/* Fixed action bar (mobile) */
.app-actions-bar {
  display: flex;
  gap: .5rem;
}

@media (max-width: 576px) {
  .app-actions-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .75rem;
    background: rgba(246, 247, 251, .92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,.08);
    z-index: 1030;
  }

  .app-actions-bar .btn {
    flex: 1;
  }

  .app-main {
    padding-bottom: 88px;
  }
}
