/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 120px; /* keep content above fixed footer */
}

h1, h2, h3 {
  color: #111;
  margin-bottom: 10px;
}

input, select, textarea, button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

button {
  background-color: #007AFF;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #005FCC;
}

.navbar {
  background-color: #fff;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  color: #007AFF;
}

.footer {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  padding: 15px;
}

/* Cards & Lists */
.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-size: 1.05rem;
  transition: background-color 0.2s;
}

.user-card a {
  text-decoration: none;
  color: #007AFF;
  display: block;
}

.user-card:hover {
  background-color: #f0f0f5;
}

/* Footer Nav */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
}

.footer-icon {
  color: #007AFF;
  text-align: center;
  text-decoration: none;
  font-size: 1.2rem;
}
.footer-icon span { display: block; }
.footer-icon small { font-size: 0.75rem; color: #555; }

/* Alerts */
.alert-success {
  background-color: #d4edda;
  border-left: 6px solid #28a745;
  color: #155724;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.alert-error {
  background-color: #f8d7da;
  border-left: 6px solid #dc3545;
  color: #721c24;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
}

/* Header logo */
.header-logo {
  text-align: center;
  padding: 15px 0;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}
.navbar-logo { max-width: 140px; height: auto; }

/* ----- Tasks: layout refinements ----- */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  color: #555;
  font-size: 0.95rem;
}

.actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0; /* tighter around action buttons */
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.textarea-compact {
  width: 100%;
  min-height: 70px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  font-size: 1rem;
}

/* Section spacing (consistent for Add Note / Surrender) */
.form-section {
  margin: 8px 0 16px; /* compact, consistent */
}
.section-title {
  margin-top: 20px;   /* slightly tighter than default */
  margin-bottom: 6px;
}

/* Buttons */
.btn-success { background-color: #28a745; color: #fff; font-weight: bold; border: none; padding: 10px; border-radius: 10px; }
.btn-primary { background-color: #007AFF; color: #fff; font-weight: bold; border: none; padding: 10px; border-radius: 10px; }
.btn-danger  { background-color: #dc3545; color: #fff; font-weight: bold; border: none; padding: 10px; border-radius: 10px; }

/* Inline forms inside cards should not create huge bottom gaps */
.user-card form { margin-bottom: 0; padding-bottom: 0; }

/* Purchased link spacing (existing) */
.purchased-link {
  display: inline-block;
  margin-top: 40px;
  margin-bottom: 100px;
  text-align: center;
  width: 100%;
  color: #007AFF;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0 6px;
}

.page-link {
  color: #007AFF;
  text-decoration: none;
  font-weight: 600;
}

.page-status {
  color: #555;
  font-size: 0.95rem;
}
.user-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.user-card-link:hover .user-card {
  background-color: #f8f8f8;
  cursor: pointer;
}
/* Dashboard button grid (always 2 per row) */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* always 2 columns */
  gap: 12px;
  margin-top: 10px;
}

.dash-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 16px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.05s ease, background-color 0.2s ease;
  min-height: 88px;
}

.dash-button:active { transform: scale(0.98); }
.dash-button:hover { background-color: #f7f7fb; }

.dash-emoji { font-size: 1.6rem; line-height: 1; margin-bottom: 6px; }
.dash-label { font-size: 0.95rem; font-weight: 600; text-align: center; color: #007AFF; }

/* Button utilities (works for <a> and <button>) */
.btn {
  display: inline-block;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  color: #fff;            /* white text */
}

.btn-primary { background-color: #007AFF; }  /* blue */
.btn-success { background-color: #28a745; }  /* green */
.btn-danger  { background-color: #dc3545; }

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
/* Stacked lines for the edit-user header card */
.meta-stack { display: block; }
.meta-stack .meta-line {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin-top: 6px;
}
.meta-stack .value { flex: 1 1 auto; }
.meta-stack .nowrap, .meta-stack .nowrap a {
  white-space: nowrap;   /* keep phone on a single line, even if auto-linked */
}
/* Instruction Block */
.inst_item{
    margin-bottom:5px;
    width:100%;
}
}