/* =========================
   Brand + base variables
   ========================= */
:root {
  --primary: #1e88e5;   /* buttons / accents (blue) */
  --accent:  #2e7d32;   /* secondary accent (green) */
  --text:    #111;
  --muted:   #666;
  --border:  #e6e9ee;
}

/* =========================
   Global resets
   ========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;                 /* remove default margin */
  padding: 1rem;
  color: var(--text);

  /* ✅ Background photo */
  background-image: url('background.jpg'); /* ensure file name matches exactly */
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

/* Subtle overlay so text stays readable (tune 0.06–0.10 as you like) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 0;
}

/* Ensure UI sits above overlay */
.card, .top, img { position: relative; z-index: 1; }

/* =========================
   Layout helpers
   ========================= */
.container, .top, .card {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* ===== Sidebar layout (used by manager + employee dashboards) ===== */
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.sidebar { background: rgba(255,255,255,.85); border-radius: 12px; padding: 12px; }
.sidebtn { width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; margin-bottom: 8px; position: relative; }
.sidebtn.active { background:#eef2ff; border-color:#c7d2fe; }
.content { background: rgba(255,255,255,.85); border-radius: 12px; padding: 12px; }
.hidden { display: none; }

/* =========================
   Logo polish
   ========================= */
img[alt="Honestly Clean Logo"] {
  max-width: 140px;
  display: block;
  margin: 10px auto 8px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* =========================
   Cards
   ========================= */
.card {
  background: rgba(255,255,255,0.92);  /* translucent “glass” */
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 1rem auto;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

h1, h2, h3 { margin: 0 0 .6rem 0; letter-spacing: .2px; }
.muted { color: var(--muted); }

/* ✅ Assigned line: bigger, bold, black */
.assigned-strong { font-weight: 700; color: #111; font-size: 1.05rem; }

/* =========================
   Forms & Buttons
   ========================= */
label { display:block; margin:.45rem 0 .3rem; }

input, textarea, select {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .03s ease, filter .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover { filter: brightness(1.06); }

/* =========================
   Lists / tables
   ========================= */
.list {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .5rem;
  background: rgba(255,255,255,0.9);
  max-height: 340px;
  overflow: auto;
}

.item {
  padding: .6rem .5rem;
  border-bottom: 1px solid var(--border);
}
.item:last-child { border-bottom: none; }

table { width:100%; border-collapse: collapse; }
th, td { padding:.55rem .5rem; border-bottom:1px solid var(--border); text-align:left; white-space: nowrap; }

/* Sticky header for long tables + subtle tint */
thead th {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(2px);
  z-index: 1;
}

/* Zebra rows for readability */
tbody tr:nth-child(odd) { background: rgba(0,0,0,.025); }

/* Reusable small tag/pill (used in calendars) */
.pill {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
}

/* =========================
   Employee Month Schedule
   Fixed-height day cells + internal scroll
   ========================= */
.emp-cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.emp-cal th, .emp-cal td { border: 1px solid #e5e7eb; vertical-align: top; padding: 0; }
.emp-cal th { background: #f3f4f6; text-align: center; font-weight: 600; padding: 6px; }

.emp-cal .cell { height: 140px; display: flex; flex-direction: column; }
.emp-cal .cell .header { display: flex; justify-content: space-between; align-items: center; padding: 6px; font-weight: 600; }
.emp-cal .cell .body { flex: 1; overflow: auto; padding: 4px 6px 6px; }

/* =========================
   Responsive tweaks
   ========================= */
@media (max-width: 640px) {
  .top { flex-direction: column; align-items: stretch; gap: .4rem; }
  .top .btn { width: 100%; }
  table { font-size: .95rem; }
  .layout { grid-template-columns: 1fr; }
}
