/* ============================================================
   css/app.css
   Shared styles for the list pages (student.html, category.html).
   Anything here is "constant" look-and-feel across record types —
   change a color or spacing once, it applies everywhere.
   ============================================================ */

:root {
  --app-theme-color: #2B2640;
  --app-bg: #F4F1EA;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--app-bg);
  margin: 0;
}

.main-container {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.header {
  top: 0;
  left: 0;
  right: 0;
  background: var(--app-theme-color);
  color: #fff;
  z-index: 1000;
}

.header-items {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  max-width: 640px;
  margin: 0 auto;
}
.header-items li { list-style: none; }

.heading-text {
  font-weight: 600;
  font-size: 18px;
  margin-left: 10px;
  flex: 1;
}

.header-icons-L {
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  display: inline-block;
}

.float-right { margin-left: auto; }

#search_bar { padding: 10px 14px 0; }

.filter-items { margin: 0; }
#filter_params h6 {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  margin-right: 6px;
}

.list-container { padding: 0 14px; }
.list-dis {
  list-style: none;
  padding: 12px 14px;
  margin: 0 0 8px;
  background: #fff;
  border-radius: 10px;
}
.list-dis li { list-style: none; }

.modal-10 .modal-content { border-radius: 14px; }

.form-control-label {
  font-weight: 600;
  font-size: 13px;
  margin-top: 8px;
  display: block;
}

#save_div button, .modal-footer button {
  font-weight: 600;
  border-radius: 8px;
}

.float-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--app-theme-color);
  color: #fff;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  z-index: 900;
}
.float-button i { color: #fff; }

.mt--7 { margin-top: -3.5rem; }

#__loader__ {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  font-size: 15px;
}

#__toast__ {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2B2640;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  display: none;
  z-index: 2100;
  font-size: 14px;
}

/* ---- View-only banner shown to signed-out visitors ---- */
#__guest_banner__ {
  background: #fff3cd;
  color: #7a5c00;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 10px;
  position: relative;
  z-index: 950;
}
#__guest_banner__ a {
  color: var(--app-theme-color);
  font-weight: 700;
  text-decoration: underline;
}

/* ---- Home screen card (index.html) ---- */
.home-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.home-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-card h1 { font-size: 20px; margin: 0 0 18px; color: var(--app-theme-color); }
.home-card .greeting { font-size: 12px; color: #aaa; margin: -10px 0 14px; }
a.home-btn {
  display: block;
  background: var(--app-theme-color);
  color: #fff;
  text-decoration: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 12px;
}
a.home-btn:last-of-type { margin-bottom: 0; }
a.home-btn.signout { background: #e74c3c; }
a.home-btn.signin { background: #27ae60; }
a.home-btn.settings { background: #555; }

.dashboard-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 22px;
}
.dash-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.dash-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--app-theme-color);
}
.dash-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: #999;
}
.empty-state-icon { font-size: 44px; margin-bottom: 12px; }
.empty-state-text { font-size: 15px; font-weight: 600; color: #666; margin: 0 0 6px; }
.empty-state-hint { font-size: 13px; color: #aaa; margin: 0; }
.empty-state-retry {
  margin-top: 14px;
  padding: 8px 22px;
  border: none;
  border-radius: 20px;
  background: var(--app-theme-color);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.theme-picker { margin-top: 22px; }
.theme-picker-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 10px;
}
.theme-swatches {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.theme-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.theme-swatch.selected {
  border-color: #333;
  box-shadow: 0 0 0 2px #fff inset;
}
.theme-swatch-auto {
  background: linear-gradient(135deg, #FFFFFF 50%, #1E1B2E 50%);
  border: 1px solid #ccc;
}

/* v0.5.1 – Contact Action Buttons in Student Info modal */
#contact_actions_div {
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
#contact_btns a:hover {
  opacity: 0.88;
  transform: scale(1.03);
  transition: transform 0.12s, opacity 0.12s;
}

/* Search bar – clear visual focus ring */
#search:focus {
  border-color: var(--app-theme-color);
  box-shadow: 0 0 0 0.15rem rgba(43,38,64,0.2);
}
