html, body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Poppins", sans-serif;
}

html, .light, .dark .light {
    --bg-primary: #fff;
    --bg-primary-inverted: #000;
    --bg-secondary: #e8e8e8;
    --bg-tertiary: #f3f3f3;
    --bg-scrim: #0d0d0d80;
    --bg-elevated-primary: #fff;
    --bg-elevated-secondary: #f9f9f9;
    --bg-accent-static: var(--blue-400);
    --bg-status-warning: var(--orange-25);
    --bg-status-error: var(--red-25);
    --border-default: #0d0d0d1a;
    --border-heavy: #0d0d0d26;
    --border-light: #0d0d0d0;
    --border-status-warning: var(--orange-50);
    --border-status-error: var(--red-50);
    --text-primary: #0d0d0d;
    --text-secondary: #5d5d5d;
    --text-tertiary: #8f8f8f;
    --text-inverted: #fff;
    --text-inverted-static: #fff;
    --text-accent: var(--blue-200);
    --text-status-warning: var(--orange-500);
    --text-status-error: var(--red-500);
    --icon-primary: #0d0d0d;
    --icon-secondary: #5d5d5d;
    --icon-tertiary: #8f8f8f;
    --interactive-bg-control-default: var(--gray-200);
    --icon-inverted: #fff;
    --icon-inverted-static: #fff;
    --icon-accent: var(--blue-400);
    --icon-status-warning: var(--orange-500);
    --icon-status-error: var(--red-500);
    --interactive-bg-primary-default: #0d0d0d;
    --interactive-bg-primary-hover: #0d0d0dcc;
    --interactive-bg-primary-press: #0d0d0de5;
    --interactive-bg-primary-inactive: #0d0d0d;
    --interactive-bg-primary-selected: #0d0d0d;
    --interactive-bg-secondary-default: #0d0d0d00;
    --interactive-bg-secondary-hover: #0d0d0d05;
    --interactive-bg-secondary-press: #0d0d0d0d;
    --interactive-bg-secondary-inactive: #0d0d0d00;
    --interactive-bg-secondary-selected: #0d0d0d0d;
    --interactive-bg-tertiary-default: #fff;
    --interactive-bg-tertiary-hover: #f9f9f9;
    --interactive-bg-tertiary-press: #f3f3f3;
    --interactive-bg-tertiary-inactive: #fff;
    --interactive-bg-tertiary-selected: #fff;
    --interactive-bg-accent-default: var(--blue-50);
    --interactive-bg-accent-hover: var(--blue-75);
    --interactive-bg-accent-muted-hover: #ebf4ff;
}

body {
  margin: 0;
}


.form-header{
    font-family: "Poppins", sans-serif;
    font-weight: 800;
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;           /* makes it center on full viewport height */
  background: #f8f9fa;         /* optional – just to see the area */
}

.form-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 420px;           /* typical login/signup form width */
}
.login-form {
    max-width: 370px !important;
}
.input-wrapper {
      position: relative;
      width: 100%;
      max-width: 380px;
    }


    .input-wrapper input {
    width: 100%;
    padding: 16px;
    font-size: 0.9rem;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.25s ease;
    padding-top: 24px;
    padding-bottom: 8px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    }
    
    

    .input-wrapper input:focus {
      border-color: #2563eb;
    }

    .input-wrapper label {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: #6b7280;
      font-size: 1.05rem;
      pointer-events: none;
      transition: 
        top 0.25s ease,
        font-size 0.25s ease,
        transform 0.25s ease;
        font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    }

    /* â”€â”€ When focused or filled â”€â”€ */
    .input-wrapper input:focus + label,
    .input-wrapper input:not(:placeholder-shown) + label {
      top: 0.60rem;              /* stays inside, near the top */
      font-size: 0.75rem;         /* smaller */
      transform: translateY(0);   /* no vertical centering anymore */
      color: #4b5563;
    }

    /* Optional: make it even more subtle when filled but not focused */
    .input-wrapper input:not(:focus):not(:placeholder-shown) + label {
      color: #4b5563;
      font-size: 0.75rem;
    }
    
    
    h2 { 
        text-align: center; color: #333; 
        
    }
    .error { 
        color: #d32f2f; font-weight: bold; text-align: center; margin: 10px 0; 
        
    }

    button {
        width: 100%; 
        padding: 12px; 
        background: var(--bg-primary-inverted); 
        color: white;
        border: none; 
        border-radius: 4px; 
        font-size: 16px; 
        cursor: pointer;
        }
        button:hover 
        { 
            background: #1565c0; 
            
        }
  .back{
    background: #1e293b;
    color: #f87171;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
  }  
  /* Form */
  
  /* ===== FORM CLEAN UI ===== */

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  font-family: "Poppins", sans-serif;
font-weight: 600;
}

/* Inputs & Select */
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: #0f172a;
  border: 1px solid #2d3748;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  font-family: "Poppins", sans-serif;
font-weight: 600;
}

/* Focus effect */
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}

/* Placeholder */
.form-group input::placeholder {
  color: #64748b;
}

/* Button */
.form-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Poppins", sans-serif;
}

/* Hover */
.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99,102,241,0.25);
}

/* Disabled */
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Modal form spacing */
.modal-content form {
  margin-top: 1rem;
}

/* Divider (optional) */
.form-divider {
  margin: 1.5rem 0;
  height: 1px;
  background: #2d3748;
}

/* Two-column layout (optional) */
.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

/* Make sure container is centered and has reasonable max width */
.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-primary-inverted);
}
.container-full {
    min-height: 100vh;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-primary-inverted);
}

.form-container {
    width: 100%;
    max-width: 720px;           /* enough room for 2 columns */
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Group fields into rows */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;                /* space between fields */
    margin-bottom: 1.2rem;
}

.form-row > .input-wrapper {
    flex: 1 1 45%;              /* roughly two columns, min ~45% */
    min-width: 280px;           /* prevent squeezing too much */
}

/* Full-width items (photo, session type, button) */
.form-row .full-width,
button[type="submit"] {
    flex: 1 1 100%;
}

/* Mobile: force stack */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    .form-row > .input-wrapper {
        flex: 1 1 100%;
    }
}
@media (max-width: 601px) {
   .input-wrapper label {
        top: 50%;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .input-wrapper label {
    top: 50%;
    /* your mobile floating label position */
  }
}
/* Better touch targets on mobile */
input, select, button {
    font-size: 1rem;
    padding: 0.9rem 1rem;
}

           /* ─── Container ─── */
    .select-wrapper {
      position: relative;
      width: 100%;
      max-width: 360px;
      margin: 30px auto;
    }
    select, select option {
    font-family: "Poppins", sans-serif;
    font-size:   16px;
    font-weight: 500;
    color:       #333;
}

    /* ─── Real select ─── */
    select {
      width: 100%;
      height: 56px;
      padding: 16px 16px 0 16px;
      border: 1px solid #757575;
      border-radius: 6px;
      background: white;
      font-size: 16px;
      color: #212121;
      appearance: none;
      -webkit-appearance: none;
      outline: none;
      transition: border-color 0.2s;
      cursor: pointer;
    }

    select:focus {
      border-color: #0066ff;
      border-width: 1px;
      padding: 15px 15px 0 15px; /* compensate for thicker border */
    }

    /* Arrow */
    .select-wrapper::after {
      content: "▼";
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 12px;
      color: #757575;
      pointer-events: none;
      transition: color 0.2s;
    }

    select:focus + .select-wrapper::after {
      color: #0066ff;
    }

    /* ─── Floating label ─── */
    label {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 16px;
      color: #757575;
      pointer-events: none;
      transition: all 0.25s ease;
      transition-property: top, font-size, color;
    }

    /* When select has value OR is focused */
    select:not(:placeholder-shown) + label,
    select:focus + label {
      top: 16px;
      font-size: 12px;
      font-family: "Poppins", sans-serif;
      color: #4b5563;
    }

    select:focus + label {
      color: #4b5563;
    }

/* Responsive */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

/** Dashboard **/

:root {
      --bg: #0f1117; --card: #161b22; --text: #e2e8f0; --text-muted: #94a3b8;
      --border: #2d3748; --primary: #6366f1; --danger: #ef4444; --warning: #f59e0b;
      --success: #10b981;
    }

    .main { padding: 1.5rem; }
    h1 { margin-bottom: 0.5rem; }
    .tabs { display: flex; border-bottom: 1px solid var(--border); margin: 1rem 0; overflow-x: auto; gap: 0.5rem; }
    .tab { padding: 0.8rem 1.4rem; cursor: pointer; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
    .tab.active { color: white; border-bottom: 3px solid var(--primary); }
    .header-right { display: flex; gap: 1rem; flex-wrap: wrap; }
    .action-btn-header { padding: 0.7rem 1.4rem; background: var(--primary); color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 0.95rem; }
    .action-btn-header:hover { background: #4f46e5; }
    .search-box { position: relative; width: 100%; max-width: 380px; margin-bottom: 1.5rem; }
    .search-box input { width: 100%; padding: 0.9rem 1rem 0.9rem 2.8rem; background: var(--card); border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
    .search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
    .table-container { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; overflow-x: auto; margin-bottom: 2rem; }
    table { width: 100%; border-collapse: collapse; min-width: 900px; }
    th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); color: var(--text-inverted); }
    th { background: #1e293b; color: #cbd5e1; }
    tr:hover { background: #1e293b; }
    .photo img { width: 38px; height: 38px; border-radius: 25px; object-fit: cover; }
    .badge { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; }
    .badge-member { background: #064e3b; color: #6ee7b7; }
    .badge-guest { background: #713f12; color: #fbbf24; }
    .tag-daily { background: #1e40af; color: #93c5fd; }
    .tag-monthly { background: #065f46; color: #6ee7b7; }
    .due-warning { color: var(--warning); }
    .due-danger { color: var(--danger); }
    .action-btn { padding: 6px 14px; background: var(--primary); color: white; border: none; border-radius: 5px; cursor: pointer; }
    .modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); align-items: center; justify-content: center; z-index: 1000; }
    .modal-content { background: var(--card); border: 1px solid var(--border); border-radius: 10px; width: 100%;max-width: 50%; padding: 1.8rem; max-height: 90vh; overflow-y: auto; position: relative; }
    .small-1{max-width: 30% !important;}
    .close { position: absolute; top: 0.8rem; right: 1.2rem; font-size: 1.8rem; cursor: pointer; color: var(--text-muted); }
    .form-group { margin: 1.2rem 0; }
    .form-group label { display: block; margin-bottom: 0.4rem; color: var(--text-muted); }
    .form-group input, .form-group select { width: 100%; padding: 0.8rem; background: #0f1117; border: 1px solid var(--border); border-radius: 6px; color: white; }
    .flash { padding: 1rem; border-radius: 6px; margin-bottom: 1.5rem; }
    .flash-success { background: #064e3b; color: #6ee7b7; }
    .flash-error { background: #7f1d1d; color: #fecaca; }
    .chip { background: var(--primary); color: white; padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
    .chip span { cursor: pointer; font-weight: bold; }
    .col-membership-id, .col-monthly-id {
  transition: display 0.3s ease;
}
table {
  table-layout: auto; /* or fixed if you prefer consistent width */
}
    @media (max-width: 768px) { header { flex-direction: column; align-items: stretch; } .tabs { justify-content: center; } }
    .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--bg-primary-inverted);
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-inverted);
}

.header-actions {
  display: flex;
  align-items: center;
  width: 25%;
  gap: 1rem;           /* space between buttons */
}

.action-btn-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn-header:hover {
  background-color: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.action-btn-header:active {
  transform: translateY(0);
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .action-btn-header {
    flex: 1;
    justify-content: center;
  }
}
/* ─── Simple Checkbox Group ─── */
.privacy-section {
    margin-top: 1.8rem;
    padding: 0 0.5rem;
    font-size: 0.96rem;
    color: #444;
    line-height: 1.6;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.2rem;
    transition: color 0.2s ease;
    position: relative;
}

.checkbox-group:hover {
    color: #222;
}

/* Native checkbox styling */
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;               /* better vertical alignment */
    flex-shrink: 0;
    accent-color: #0d6efd;         /* changes the checkmark color to blue */
    cursor: pointer;
}

/* Label */
.checkbox-label {
    font-weight: 400;
    position: relative;
    left: 0px;
    cursor: default;
}


/* Link inside label */
.checkbox-group a {
    color: #0d6efd;
    text-decoration: underline;
    margin-left: 4px;
}

.checkbox-group label,
.checkbox-group a {
    line-height: 1.5;
}

.checkbox-label a:hover,
.checkbox-label a:focus {
    color: #0b5ed7;
}

/* Focus state for accessibility */
.checkbox-group input[type="checkbox"]:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Mobile adjustment */
@media (max-width: 640px) {
    .privacy-section {
        font-size: 0.94rem;
    }
    .checkbox-group input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}

/* ─── Field Error Highlighting ─── */
.input-wrapper.has-error input,
.input-wrapper.has-error select {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.input-wrapper .error-message,
.checkbox-group .error-message {
    color: #dc3545;
    font-size: 0.82rem;
    margin-top: 6px;
    display: block;
}

/* Checkbox error */
.checkbox-group.has-error label {
    color: #dc3545;
}

.checkbox-group.has-error input[type="checkbox"] {
    accent-color: #dc3545;
}
.success-container {
    max-width: 600px;
    margin: auto;
    padding: 2rem;
    background: --bg-primary-inverted;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    padding-top: 100px;
}

.logo-container{
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo{
    width: 100px;
}

.logo-small{
    width: 50px;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-inverted{
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.btn-secondary{
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
    
    .search-item {
    transition: background 0.2s;
}
.search-item:hover {
    background: #f0f4ff;
}
.search-item.selected {
    background: #e6f0ff;
    font-weight: bold;
}
.chip {
    background: #e0e7ff;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.chip span {
    cursor: pointer;
    font-weight: bold;
    color: #666;
}

.modal, .modal-content, .modal * {
    pointer-events: auto !important;
}
#logSelectedBtn {
    pointer-events: auto !important;
    z-index: 100 !important;
    position: relative;
}

.action-btn.small.log-session-btn {
    background: #4f46e5;
    color: white;
}

.action-btn.small.log-session-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
}

.action-btn.small.log-session-btn.active-session {
    background: #10b981;
    pointer-events: none;
}

.log-session-btn.active-session {
    background: #10b981;        /* green - success/active */
    color: white;
    cursor: default;
    pointer-events: none;       /* prevents click */
    opacity: 0.9;
}

.log-session-btn.active-session::after {
    content: " ✓";
    margin-left: 6px;
}

.profile-card {
    display: flex;
    flex-wrap: wrap;           /* ← add this */
    gap: 1.5rem;
    align-items: center;
    justify-content: center;   /* ← centers on small screens */
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    margin: 2rem 0;
}

.profile-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 500px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
}

  .back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: #2563eb; text-decoration: none; font-weight: 500; margin-bottom: 1rem; }
    .back-link:hover { text-decoration: underline; }

    .flash {
      padding: 0.8rem 1.2rem;
      border-radius: 8px;
      margin-bottom: 1rem;
      font-size: 0.95rem;
    }
    .flash-success { background: #d1fae5; color: #065f46; }
    .flash-error   { background: #fee2e2; color: #991b1b; }

    .two-column-layout {
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 1.5rem;
      margin-top: 1rem;
    }

    @media (max-width: 850px) {
      .two-column-layout {
        grid-template-columns: 1fr;
      }
    }

    .profile-sidebar {
      background: white;
      border-radius: 10px;
      padding: 1.25rem;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
      height: fit-content;
    }

    .profile-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.2rem;
    }

    .profile-photo img {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #e5e7eb;
    }

    .profile-info p {
      margin: 0.4rem 0;
      font-size: 0.95rem;
    }

    .status-badge {
      display: inline-block;
      padding: 5px 10px;
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 0.8rem;
    }
    .status-guest  { background: #fef3c7; color: #92400e; }
    .status-member { background: #d1fae5; color: #065f46; }

    .edit-form {
      background: white;
      border-radius: 10px;
      padding: 1.5rem;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    h1 { margin: 0.5rem 0 1.5rem; font-size: 1.6rem; }
    h3 { margin: 1.2rem 0 0.8rem; font-size: 1.15rem; color: #1f2937; }

    .form-group {
      margin-bottom: 1.1rem;
    }

    label {
      display: block;
      margin-bottom: 0.4rem;
      font-weight: 500;
      font-size: 0.95rem;
    }

    /*select, input[type="date"] {*/
    /*  width: 100%;*/
    /*  padding: 0.6rem;*/
    /*  border: 1px solid #d1d5db;*/
    /*  border-radius: 6px;*/
    /*  font-size: 0.95rem;*/
    /*}*/

    .disabled-option {
      color: #9ca3af;
      background: #f3f4f6;
    }

    .warning {
      color: #dc2626;
      font-size: 0.85rem;
      margin-top: 0.4rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .quick-renew {
      margin: 1.2rem 0;
    }

    .quick-renew label {
      display: block;
      margin-bottom: 0.6rem;
      font-weight: 500;
    }

    .quick-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
    }

    .quick-btn {
      padding: 0.5rem 1rem;
      background: #e0f2fe;
      border: 1px solid #60a5fa;
      border-radius: 6px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.15s;
    }

    .quick-btn:hover:not(:disabled) {
      background: #bfdbfe;
    }

    .quick-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      background: #f3f4f6;
      border-color: #d1d5db;
    }

    .btn-save {
      background: #10b981;
      color: white;
      border: none;
      padding: 0.8rem 1.8rem;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      margin-top: 1rem;
    }

    .btn-save:hover {
      background: #059669;
    }

    small {
      font-size: 0.82rem;
      color: #6b7280;
    }
    
    :root {
      --bg: #0f1117;
      --card: #161b22;
      --text: #e2e8f0;
      --text-muted: #94a3b8;
      --border: #2d3748;
      --primary: #3b82f6;
      --primary-dark: #2563eb;
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #ef4444;
    }
    * { margin:0; padding:0; box-sizing:border-box; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: system-ui, -apple-system, sans-serif;
      min-height: 100vh;
    }
    .header {
      background: #0a0e14;
      border-bottom: 1px solid var(--border);
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .header h1 { font-size: 1.4rem; font-weight: 600; }
    .logout-btn {
      background: #1e293b;
      color: #f87171;
      border: none;
      padding: 0.6rem 1.2rem;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
      text-decoration: none;
    }
    .logout-btn:hover { background: #334155; }

    .flash {
      padding: 1rem;
      border-radius: 8px;
      margin-bottom: 1.5rem;
    }
    .flash-success { background: rgba(16,185,129,0.15); border:1px solid #10b981; }
    .flash-error { background: rgba(239,68,68,0.15); border:1px solid #ef4444; }
    .grid-2 {
      display: grid;
      grid-template-columns: 340px 1fr;
      gap: 1.5rem;
    }
    @media (max-width: 900px) {
      .grid-2 { grid-template-columns: 1fr; }
    }
    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1.5rem;
    }
    .profile-top {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.25rem;
    }
    .avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: #1e293b;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      font-weight: bold;
      color: var(--text-muted);
      border: 2px solid var(--primary);
    }
    .avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
    .status-badge {
      display: inline-block;
      padding: 0.35rem 0.9rem;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 600;
      margin-bottom: 0.6rem;
    }
    .badge-guest { background:#422006; color:#fbbf24; }
    .badge-member { background:#064e3b; color:#34d399; }
    h2 { font-size:1.35rem; margin-bottom:1rem; color:#cbd5e1; }
    h3 { font-size:1.1rem; margin:1.25rem 0 0.6rem; color:#94a3b8; }
    label {
      display: block;
      font-size: 0.9rem;
      margin-bottom: 0.45rem;
      color: #cbd5e1;
    }
    /*select, input[type="date"] {*/
    /*  width: 100%;*/
    /*  padding: 0.7rem;*/
    /*  background: #1e293b;*/
    /*  border: 1px solid #334155;*/
    /*  border-radius: 6px;*/
    /*  color: white;*/
    /*  font-size: 0.95rem;*/
    /*}*/
    select option:disabled { color:#4b5563; background:#111827; }
    .quick-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
      gap: 0.75rem;
      margin: 1.25rem 0;
    }
    .quick-btn {
      background: #1e293b;
      border: 1px solid #334155;
      color: #93c5fd;
      padding: 0.75rem;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 500;
      transition: all 0.15s;
    }
    .quick-btn:hover:not(:disabled) {
      background: #2563eb;
      border-color: #3b82f6;
      color: white;
    }
    .quick-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .btn-primary {
      background: var(--primary);
      color: white;
      border: none;
      padding: 0.9rem 1.8rem;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      margin-top: 1.5rem;
      width: 100%;
    }
    .btn-primary:hover { background: var(--primary-dark); }
    .warning {
      color: #fca5a5;
      font-size: 0.85rem;
      margin-top: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    small { color: #94a3b8; font-size: 0.82rem; }
 
    
/* Style for the table cell itself */
td.photo {
    padding: 12px 16px;
    vertical-align: middle;
}

/* Flex container - photo on left, text on right */
.member-info {
    display: flex;
    align-items: center;
    gap: 16px;           /* space between photo and text */
}

/* Photo styling */
.member-info img {
    width: 60px;          /* adjust size as needed */
    height: 60px;
    object-fit: cover;    /* keeps proportions nice */
    border-radius: 50%;   /* circle look – very common for profiles */
    border: 2px solid #e0e0e0;  /* optional subtle border */
    flex-shrink: 0;       /* photo won't shrink */
}

/* Text column */
.member-details {
    flex: 1;              /* takes remaining space */
    min-width: 0;         /* prevents overflow issues */
}

.member-details .name {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 4px;
}

.member-details small {
    display: block;
    color: #777;
    font-size: 0.85rem;
}