/* Shared visual language for the Student Daily Activity Admin Panel + Parent Portal.
   Loaded after style.css — reuses the site's existing --vs-theme-color* variables. */

.admin-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  background: var(--vs-theme-color1);
  border-radius: 30px;
  vertical-align: middle;
}

.active-nav { color: var(--vs-theme-color1) !important; font-weight: 700; }

/* Flash / alert banners */
.vs-alert {
  padding: 14px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  font-weight: 600;
  animation: sbFadeIn .25s ease-out;
}
.vs-alert--success { background: #E9F6E1; color: #2f5d13; border: 1px solid #bfe3a6; }
.vs-alert--error, .vs-alert--danger { background: #FDEBEC; color: #8a1c24; border: 1px solid #f3b6bb; }
.vs-alert--info { background: var(--vs-theme-color6); color: #6a4b1f; border: 1px solid #ecd9b3; }
@keyframes sbFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Mood badges */
.vs-mood-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.vs-mood-badge--happy  { background: var(--vs-theme-color4); }
.vs-mood-badge--active { background: var(--vs-theme-color2); }
.vs-mood-badge--calm   { background: var(--vs-theme-color1); }
.vs-mood-badge--sleepy { background: #5b6b79; }

/* Attendance pills */
.vs-attendance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
}
.vs-attendance-pill--present { background: #E9F6E1; color: #2f5d13; }
.vs-attendance-pill--absent  { background: #FDEBEC; color: #8a1c24; }

/* Food status pills (breakfast/lunch/snacks) */
.vs-food-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin: 2px; }
.vs-food-pill--yes     { background: #E9F6E1; color: #2f5d13; }
.vs-food-pill--partial { background: #FFF3DE; color: #8a5a12; }
.vs-food-pill--no      { background: #FDEBEC; color: #8a1c24; }

/* Card-ified table (Bootstrap .table wrapped in this) */
.vs-table-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(74,37,89,.08);
  overflow-x: auto;
}
.vs-table-card table { margin-bottom: 0; }
.vs-table-card thead th {
  border-bottom: 2px solid var(--vs-theme-color6);
  color: var(--vs-theme-color1);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}
.vs-table-card td { vertical-align: middle; }
.vs-table-card .vs-row-photo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
}

/* Activity detail card */
.vs-activity-card {
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: 0 6px 24px rgba(74,37,89,.08);
}
.vs-activity-card h4 { color: var(--vs-theme-color1); margin-bottom: 12px; }

/* Image preview grid used on the add/edit activity form */
.vs-image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.vs-image-preview-grid__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.vs-image-preview-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-image-preview-grid__remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(220,53,69,.9);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: transform .15s;
}
.vs-image-preview-grid__remove:hover { transform: scale(1.1); }
.vs-image-preview-grid__item--marked-remove img { opacity: .35; filter: grayscale(1); }

/* Mini gallery grid (parent "today's photos") */
.vs-gallery-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.vs-gallery-mini a { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.vs-gallery-mini img { width: 100%; height: 130px; object-fit: cover; display: block; transition: transform .3s; }
.vs-gallery-mini a:hover img { transform: scale(1.06); }

/* Auth (login) card */
.vs-auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(74,37,89,.12);
}
.vs-auth-card h3 { color: var(--vs-theme-color1); margin-bottom: 6px; }
.vs-auth-card .form-label { font-weight: 600; }

/* Stat widgets on admin dashboard */
.vs-stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 6px 24px rgba(74,37,89,.08);
  display: flex;
  align-items: center;
  gap: 16px;
}
.vs-stat-card__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; flex-shrink: 0;
}
.vs-stat-card__value { font-size: 26px; font-weight: 800; color: var(--vs-theme-color1); line-height: 1; }
.vs-stat-card__label { font-size: 13px; color: #6b6b6b; margin-top: 4px; }

/* Toasts (assets/js/toast.js) */
.vs-toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; }
.vs-toast { min-width: 260px; max-width: 340px; padding: 14px 18px; border-radius: 14px; color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.vs-toast--success { background: var(--vs-theme-color4); }
.vs-toast--error   { background: #d64545; }
.vs-toast--info    { background: var(--vs-theme-color1); }

@media (max-width: 767px) {
  .vs-activity-card, .vs-table-card, .vs-auth-card { padding: 18px; border-radius: 16px; }
}
