/* --- Global reset so admin/public render the same --- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

/* Readable, responsive typography across monitors/mobile */
:root{
  --site-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --base-size: clamp(14px, 0.9vw + 10px, 18px);  /* scales between 14–18px */
  --line: 1.45;
  --nav-bg: #111;
  --nav-fg: #fff;
  --nav-h: 56px;              /* consistent target height */
  --nav-pad-x: 16px;
  --nav-gap: 16px;
}

.resource-pin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;          /* Bolder emoji */
    font-weight: 600;
    color: white;

    border: 4px solid #ffffff;            /* Strong white outline */
    box-shadow:
        0 0 0 3px rgba(0,0,0,0.5),        /* Dark halo */
        0 4px 10px rgba(0,0,0,0.4);       /* Drop shadow */
    
}

.resource-pin:hover {
    transform: scale(1.15);
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.9),
        0 0 12px rgba(0,0,0,0.7);
}

.site-body {
  color: #111;
  background: #fff;
  font-family: var(--site-font);
  font-size: var(--base-size);
  line-height: var(--line);
}

/* --- Navbar (identical on admin & public) --- */
.nav{
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  height: var(--nav-h);            /* locks the visual “shape” */
  padding: 0 var(--nav-pad-x);     /* vertical height is controlled by height */
  background: var(--nav-bg);
  color: var(--nav-fg);
  width: 100%;
}

.nav a{
  color: var(--nav-fg);
  text-decoration: none;
  line-height: 1;                  /* avoid extra line-height swell in admin */
}

.nav .spacer{ flex: 1; }

/* Make buttons look like links & inherit font/size exactly */
.nav button{
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

/* Ensure EVERYTHING inside nav inherits the same font sizing */
.nav, .nav *{
  font-family: var(--site-font) !important;
  font-size: var(--base-size) !important;
}

/* Container used on public pages below the navbar */
.container{
  max-width: 980px;
  margin: 16px auto;
  padding: 0 16px;
}

/* Messages (unchanged) */
.msg{ padding:.6rem .8rem; border-radius:6px; margin:.5rem 0; }
.msg.success{ background:#e6ffed; border:1px solid #1f9d55; }
.msg.error  { background:#ffe6e6; border:1px solid #d93025; }
.msg.info   { background:#eef6ff; border:1px solid #1a73e8; }
.msg.warning{ background:#fff8e1; border:1px solid #f9ab00; }

input, select, textarea, button{
  font: inherit;
  padding: 0.6rem 0.75rem;
}


.nav a:hover,
.nav button:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.nav {
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Mobile tweaks */
@media (max-width: 600px){
  .container{
    max-width: 100%;
    padding: 0 12px;
  }

  .nav{
    flex-wrap: wrap;
    height: auto;
    row-gap: 0.25rem;
  }

  .nav .spacer{
    display: none;  /* don’t fight for space on tiny screens */
  }

  .nav a, .nav button{
    padding: 4px 0;
  }

  .data-table{
    min-width: 520px;
  }
}

.table-wrapper{
  margin: 0.75rem 0 1.5rem;
  overflow-x: auto;              /* allow horizontal scroll on tiny screens */
}

.data-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #ffffff;
  color: #111;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Header */
.data-table thead{
  background: #101010;           /* matches your dark nav */
  color: #fdfdfd;
}

.data-table th,
.data-table td{
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

.data-table th{
  font-weight: 600;
}

/* Body rows */
.data-table tbody tr:nth-child(even){
  background: #fafafa;
}

.data-table tbody tr:nth-child(odd){
  background: #f4f4f4;
}

.data-table tbody tr:last-child td{
  border-bottom: none;
}

.data-table tbody tr:hover{
  background: #e8f3ff;           /* subtle blue highlight */
}

/* Links inside tables */
.data-table a{
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.data-table a:hover{
  text-decoration: underline;
}

/*admin site */
body.change-form select,
body.change-list select,
body.app-auth select,
body.app-surveys select {
    line-height: normal;       /* stop clipping text */
    padding-top: 2px;
    padding-bottom: 2px;
    height: auto;
    font-size: 13px;           /* close to admin default */
    color: inherit;            /* use admin’s light text */
}

.user-location-pin{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  background: #00bcd4;
  color: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
  border: 2px solid #fff;
}

/* --- Authentication Pages (Login/Signup) --- */

/* Centers the card on the screen */
.auth-wrapper {
display: flex;
  justify-content: center;
  align-items: center;
  
  
  width: 100vw;
  margin-left: calc(50% - 50vw); 
  min-height: calc(100vh - 56px); 
  
  background-color: #f0f2f5; 
  padding: 20px;
}

.auth-card {
  background-color: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.auth-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Form Styling */
.auth-form p {
  margin-bottom: 1rem;
  text-align: left;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box; /* Ensures padding doesn't break width */
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: #007bff;
  outline: none;
}

.btn-auth {
  width: 100%;
  padding: 0.75rem;
  background-color: #0056b3; /* Dark blue */
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.2s;
}

.btn-auth:hover {
  background-color: #004494;
}

.auth-links {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.auth-links a {
  color: #0056b3;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}