/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --primary: #2A67C9;
  --secondary: #0E49AB;
  --hover: #003760;
}


/* ============================================================
   GLOBAL RESET
   ============================================================ */
body {
  font-family: arial;
  margin: 0px !important;
  font-size: 14px;
  overflow-x: hidden;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
span, p, h3, div {font-family: arial;}
html {
  overflow-x: hidden;
  overflow-y: scroll; /* always reserve scrollbar space to prevent header reflow/flash on page load */
  scrollbar-width: auto; /* Firefox: default thickness is already "thick"; use "thin" instead if you want it thinner */
}
html::-webkit-scrollbar {
  width: 14px;
}
html::-webkit-scrollbar-track {
  background: #f1f1f1;
}
html::-webkit-scrollbar-thumb {
  background: #B8C4D9;
  border-radius: 8px;
  border: 3px solid #f1f1f1;
}
html::-webkit-scrollbar-thumb:hover {
  background: #94A5C2;
}
*, *::before, *::after {
  box-sizing: border-box;
}
header, .top-nav, .navbar {
  position: relative;
  z-index: 9999; /* must be higher than #privacyOverlay */
  background-color: #007bff;
}
.logo {
  text-decoration: none !important;
}

/* ============================================================
   RESPONSIVE WIDTH / SCALING (page-level breakpoints)
   ============================================================ */
@media only screen and (min-width: 768px) {
  html, body {
    overflow-x: visible !important;
    width: 100% !important;
  }
  body {
    min-width: auto !important;
    width: auto !important;
  }
  .container {
    width: 100% !important;
    min-width: auto !important;
  }
}

/* 1281–1366px */
@media (min-width: 1281px) and (max-width: 1366px) {
  html { overflow-x: hidden !important; }
  body, p.logo { font-size: 12px !important; }
}

/* 1080–1280px */
@media (min-width: 1080px) and (max-width: 1280px) {
  body, p.logo { font-size: 12px !important; }
}

/* 1440px (and close range) */
@media (min-width: 1367px) and (max-width: 1550px) {
  html { overflow-x: hidden !important; }
  body {
    transform: scale(0.9);
    transform-origin: top left;
    width: 111.11% !important; /* 1 / 0.9 */
    height: 0;
  }
  .live-box { height: 50vh !important; }
}

/* 1600px (and close range) */
@media (min-width: 1551px) and (max-width: 1620px) {
  html { overflow-x: hidden !important; }
  body {
    transform: scale(0.95);
    transform-origin: top left;
    width: 105.26% !important; /* 1 / 0.95 */
    height: 0;
  }
}

/* --- MOBILE ONLY (Strict 1920px + Scroll) --- */
@media only screen and (max-width: 1220px) {
  html {
    overflow-x: scroll !important;
    overflow-y: visible !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
  }
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: 1920px !important;
    min-width: 1920px !important;
    max-width: none !important;
    overflow-x: visible !important;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    text-size-adjust: none;
  }
  .container {
    width: 1920px !important;
    min-width: 1920px !important;
    max-width: none !important;
    margin: 0 auto;
    display: block !important;
  }
  .header-section, .menu-links, .habit-task-links {
    max-width: none !important;
    width: auto !important;
  }
}

/* ============================================================
   HEADER BAR — brand gradient surface
   ============================================================ */
.header-section {
  position: relative;
  width: 100%;
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 24px;
  min-height: 50px;
  border-bottom: none;
}
.header-section .logo {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}
.logo-group-tag {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--secondary);
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

i.fa-solid.fa-house {
  font-size: 11px;
}

/* --- Month picker --- */
.month-picker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 10px;
  position: relative;
  z-index: 1;
}
.month-picker input {
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  font-size: 12px;
  width: 100px;
  text-align: center;
  background: rgba(255,255,255,0.92);
  color: #16233d;
}
.month-picker input::placeholder { color: #8a93a3; }
.month-picker input:focus {
  outline: 2px solid #004a80;
}
.arrow-button {
  padding: 5px 10px;
  background: #003997;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
}
.arrow-button:hover {
  background: #004a80;
}
.month-picker .arrow-button {
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
}
.month-picker .arrow-button:hover { background: var(--hover); }

/* ============================================================
   NAV / MENU LINKS
   ============================================================ */
.menu-links {
  margin-left: 0;
  margin-right: 10px;
  flex: 1;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.habit-task-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Generic (fallback) link styling for any anchor inside the nav cluster */
.habit-task-links a {
  padding-top: 4px;
  color: white;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 3px;
  background-color: #003997;
  transition: background 0.2s;
}
.habit-task-links a:hover {
  background-color: #003760;
}
.habit-task-links span {
  color: white;
  cursor: default;
}

/* Primary nav links — translucent pill on hover/active */
.habit-task-links a.nav-link {
  position: relative;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
 padding: 5px 20px;
  border-radius: 20px;
  z-index: 1;
}
.habit-task-links a.nav-link::after { display: none; } /* underline-reveal effect disabled by the gradient theme */
.habit-task-links a.nav-link:hover {
  background: var(--hover);
  color: #fff;
}
.habit-task-links a.nav-link.active {
  background: var(--hover);
  color: #fff;
  font-weight: 700;
}
.habit-task-links a.nav-link-home i.fa-house,
.habit-task-links a.nav-link-home:hover i.fa-house { color: rgba(255,255,255,0.85); }

/* Login pill (lives in .header-actions) */
.login-nav-btn {
  display: none;
  align-items: center;
  gap: 6px;
  cursor: pointer !important;
  user-select: none;
  font-size: 14px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  background-color: var(--secondary) !important;
  color: #fff !important;
  border: none;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease;
}
.login-nav-btn:hover { background-color: var(--hover) !important; }
.login-nav-btn i { font-size: 12px; }

/* ============================================================
   ACTIVE-USER DROPDOWN CHIP (top bar)
   ============================================================ */
#activeUserMenu {
  position: relative;
  z-index: 1;
}
#activeUserMenu .dropbtn {
  display: flex;
  align-items: center;
  gap: 7px;
  background-color: var(--secondary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 8px;
}
#activeUserMenu .dropbtn:hover {
  background-color: var(--hover);
}
.active-user-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.active-user-avatar-initials {
  background: linear-gradient(135deg, var(--primary), #0E49AB);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#activeUserMenu .active-user-avatar-initials {
  background: rgba(255,255,255,0.92);
  color: #0E49AB;
}
.active-user-chevron { font-size: 10px; color: #97a3b8; }
#activeUserMenu .active-user-chevron { color: rgba(255,255,255,0.8); }
#activeUserMenu .dropdown-content {
  background-color: #fff;
  border: 1px solid #eef1f8;
  box-shadow: 0 10px 26px rgba(15,23,42,0.09);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px !important;
}
#activeUserMenu .dropdown-content a {
  color: #344055 !important;
  background-color: transparent !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px !important;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
#activeUserMenu .dropdown-content a i {
  color: var(--primary);
  font-size: 13px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
#activeUserMenu .dropdown-content a:hover {
  background: linear-gradient(135deg, var(--primary) 0%, #0E49AB 100%) !important;
  color: #fff !important;
  transform: translateX(2px);
  box-shadow: 0 4px 10px rgba(14, 73, 171, 0.22);
}
#activeUserMenu .dropdown-content a:hover i { color: #fff; }

/* ============================================================
   GENERIC DROPDOWN (used outside the hamburger panel)
   ============================================================ */
.dropdown {
  position: relative;
  display: inline-block;
  contain: layout;
}
/* Invisible hover bridge so the mouse doesn't "leave" the element while moving down */
.dropdown::after {
  content: "";
  display: block;
  height: 10px;
  width: 100%;
  position: absolute;
  bottom: -10px;
  left: 0;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropbtn {
  background-color: #003997;
  color: white;
  padding: 3px 10px;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  display: inline-block;
}
.dropbtn:hover {
  background-color: #003760;
}
.dropdown-content {
  display: none; /* hidden by default */
  position: absolute;
  background-color: var(--primary); /* match header bg */
  min-width: 120px !important;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 4px;
  top: 100%;
  left: 0;
  margin-top: 2px;
  padding: 4px 0;
}
.dropdown-content a {
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  background-color: transparent;
  text-align: left;
  border-radius: 0;
  font-weight: normal;
}
.dropdown-content a:hover {
  background-color: #003997;
}

/* ============================================================
   HAMBURGER PANEL (slide-in from the right)
   ============================================================ */
.hamburger-menu { position: relative; margin-left: auto; display: flex; align-items: center; }
.hamburger-icon {
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  padding-left: 10px;
  position: relative;
  z-index: 1;
}

.hamburger-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 73, 171, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99998;
  isolation: isolate;
}
.hamburger-backdrop.active { display: block; }

.hamburger-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 360px;
  max-width: 88vw;
  z-index: 99999;
  isolation: isolate;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
  visibility: hidden;
}
.hamburger-dropdown.active {
  transform: translateX(0);
  box-shadow: -10px 0 30px rgba(14, 73, 171, 0.22);
  visibility: visible;
}
.hamburger-dropdown-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #fff;
  color: #1c2b45;
  overflow-y: auto;
  overflow-anchor: none;
}
.hamburger-dropdown-inner::-webkit-scrollbar { width: 6px; }
.hamburger-dropdown-inner::-webkit-scrollbar-thumb { background: #c7d4ea; border-radius: 3px; }
.hamburger-dropdown-inner::-webkit-scrollbar-track { background: transparent; }

.hamburger-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #0E49AB 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.hamburger-panel-title {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hamburger-close {
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, transform 0.25s ease;
}
.hamburger-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }

/* "My Account" top link + "Logout" bottom link — live in .header-actions
   now (not nested under .habit-task-links), so these are unprefixed. */
a.hamburger-top-link {
  background-color: #fff;
  padding: 13px 20px;
  color: #0E49AB;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eef1f8;
  border-radius: 0;
  transition: background 0.15s ease;
}
a.hamburger-top-link i { color: var(--primary); font-size: 15px; }
a.hamburger-top-link:hover { background-color: #f2f6fd; }

a.hamburger-logout {
  background-color: #fff;
  padding: 10px 20px;
  color: #c0392b;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid #eef1f8;
  border-radius: 0;
}
a.hamburger-logout:hover { background-color: #fdecea; }

.hamburger-dropdown .user-block {
  width: 100%;
  border-bottom: 1px solid #eef1f8;
  transition: background 0.15s ease;
}
.hamburger-dropdown .user-block.open {
  background: #f5f8fe;
}
.hamburger-dropdown .dropbtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px !important;
  color: #1c2b45;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  border-radius: 0;
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease;
}
.hamburger-dropdown .user-block.open .dropbtn {
  border-left-color: var(--primary);
}
.habit-task-links .hamburger-dropdown .dropbtn span {
  color: inherit;
  min-width: 0;
  text-align: left;
  padding-top: 0;
}
.hamburger-dropdown .user-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hamburger-dropdown .user-avatar {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.hamburger-dropdown .user-avatar-initials {
  background: linear-gradient(135deg, var(--primary), #0E49AB);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger-dropdown .accordion-icon {
  font-size: 12px;
  color: var(--primary);
  transition: transform 0.25s ease;
}
.hamburger-dropdown .user-block.open .accordion-icon {
  transform: rotate(180deg);
}

/* Reset the generic absolute/hover dropdown behavior inside the panel;
   the panel uses its own click-or-hover accordion instead. */
.hamburger-dropdown .dropdown-content {
  position: static;
  display: none;
  background: #eef3fc;
  box-shadow: none;
  border-radius: 0;
  min-width: 0 !important;
  padding: 8px 14px 14px 20px;
  gap: 6px;
  flex-wrap: nowrap;
}
.hamburger-dropdown .dropdown:hover .dropdown-content {
  display: none;
}
.hamburger-dropdown .user-block.open .dropdown-content {
  display: flex;
}
.hamburger-dropdown .dropdown-content a {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 4px;
  color: #0E49AB;
  background-color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 9px;
  border: 1px solid #dbe6fa;
  text-align: left;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.hamburger-dropdown .dropdown-content a i {
  color: var(--primary);
  font-size: 13px;
  width: auto;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.hamburger-dropdown .dropdown-content a:hover {
  background: linear-gradient(135deg, var(--primary) 0%, #0E49AB 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(14, 73, 171, 0.28);
}
.hamburger-dropdown .dropdown-content a:hover i {
  color: #fff;
}

/* ============================================================
   LOGIN MODAL (username + password popup)
   ============================================================ */
.login-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 73, 171, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1600;
}
.login-backdrop.active { display: block; }

.login-modal {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  max-width: 90vw;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(14, 73, 171, 0.35);
  z-index: 1700;
}
.login-modal.active { display: flex; }

.login-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #f3f3f3;
  font-weight: 700;
  font-size: 14px;
}
.login-close {
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, transform 0.25s ease;
}
.login-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }

.login-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-label {
  font-size: 12px;
  font-weight: 600;
  color: #1c2b45;
  margin-top: 8px;
}
.login-input {
  padding: 10px 12px;
  border: 1.5px solid #dbe3f3;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
  color: #1c2b45;
}
.login-input:focus { border-color: var(--primary); }
.login-error {
  color: #c0392b;
  font-size: 12px;
  min-height: 16px;
}
.login-submit-btn {
  margin-top: 8px;
  padding: 11px;
  background: var(--primary);
  color: #FFF;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.login-submit-btn:hover { opacity: 0.9; background: var(--primary); color: #FFF; }

/* ============================================================
   MY ACCOUNT MODAL (reuses login-modal look, wider + scrollable)
   ============================================================ */
.account-modal {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  max-width: 92vw;
  max-height: 80vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(14, 73, 171, 0.35);
  z-index: 1700;
}
.account-modal.active { display: flex; }
.account-modal-body {
  padding: 10px 20px 24px;
  overflow-y: auto;
}
.account-modal-body::-webkit-scrollbar {
  width: 6px;
}
.account-modal-body::-webkit-scrollbar-thumb {
  background: #c7d4ea;
  border-radius: 3px;
}
.account-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.account-modal-body {
  scrollbar-width: thin;
  scrollbar-color: #c7d4ea transparent;
}
.account-section {
  padding: 16px 0;
  border-bottom: 1px solid #eef1f8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-section:last-child { border-bottom: none; }
.account-hint {
    font-size: 12px;
    font-weight: 400;
    color: #121212;
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
}
.account-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0E49AB);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.account-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0E49AB;
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-section-desc {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}
.account-btn-sm {
  margin-top: 2px;
  padding: 9px;
  font-size: 13px;
  align-self: flex-start;
  padding-left: 16px;
  padding-right: 16px;
}
.account-footer {
  padding: 14px 20px;
  border-top: 1px solid #eef1f8;
  background: #fff;
  flex-shrink: 0;
}
.account-footer .login-submit-btn {
  width: 100%;
  margin-top: 0;
}
.account-footer .login-error {
  margin-bottom: 6px;
}

/* ============================================================
   LIVE ACTIVITIES BOXES (index.php)
   ============================================================ */
.live-grid { display: flex; gap: 14px; padding: 15px; margin: 0; flex-wrap: wrap; min-height: 92vh; }

.live-box {
  flex: 0 0 calc(25% - 10.5px);
  display: flex;
  flex-direction: column;
  height: 46vh;
  overflow: hidden;
  border: 1px solid #ededed;
  border-top: 3px solid #1853b5;
  min-width: 200px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
}
.live-textarea::-webkit-scrollbar { width: 6px; }
.live-textarea::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 3px; }
.live-textarea { scrollbar-width: thin; scrollbar-color: #e5e5e5 transparent; overflow-y: auto; padding: 5px 10px; width: 100%; height: 100%; border: none; resize: none; outline: none; line-height: 1.5; font-family: arial; font-size: 14px; background: white; color: #424242; }
.live-textarea[readonly] { background: white !important; color: #424242 !important; opacity: 1 !important; cursor: default; -webkit-text-fill-color: #424242 !important; }

.box-header { background: #fff; border-bottom: 1px solid #ececec; display: flex; flex-direction: column; flex-shrink: 0; }
.box-header-top { display: flex; align-items: center; gap: 7px; padding: 2px 9px 2px; }
.box-header-bottom { padding: 0 9px 5px; } 
.box-content { flex: 1; padding-right: 0px; background: white; display: flex; flex-direction: column; }
.box-avatar { border: 1px solid #e3e9f7; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; margin-right: 6px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }

.box-avatar-initials { background: linear-gradient(135deg, var(--primary), #0E49AB); color: #fff; font-size: 8.5px; font-weight: 700; }
.box-position { font-size: 13px; font-weight: 700; color: #97a3b8; margin-right: 3px; }
.user-name { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 700; color: #16233d; flex: 1; min-width: 0; }

.status-pill { flex-shrink: 0; background: #f5f6f9; border-radius: 20px; padding: 2px 8px; }
.status-pill.st-red { background: #FBE7E7; }
.status-pill.st-red .status-dot .status-dot { color: #C0392B !important; }
.status-pill.st-orange { background: #FDF1DD; }
.status-pill.st-orange .status-dot .status-dot { color: #B7791F !important; }
.status-pill.st-green { background: #E3F6EA; }
.status-pill.st-green .status-dot .status-dot { color: #1E8449 !important; }
.status-pill .status-dot .status-dot { font-size: 10px !important; font-weight: 600 !important; color: #6b7686; gap: 4px !important; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: normal; }
.dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; }
.dot.green { background: #22c55e; }
.dot.orange { background: #f59e0b; }
.dot.red { background: #ef4444; }
.dot.gray { background: #95a5a6; }

.eh-row-inline { display: flex; align-items: center; gap: 7px; }
.eh-caption { font-size: 10px; color: #97a3b8; font-weight: 600; }
.eh-track { flex: 1; min-width: 0; height: 4px; border-radius: 3px; background: #e3e9f7; overflow: hidden; }
.eh-fill { height: 100%; width: 0%; border-radius: 3px; transition: width 0.4s ease; }
.eh-container { display: flex; visibility: hidden; align-items: center; gap: 4px; margin-left: auto; color: #16233d; position: relative; white-space: nowrap; }
.eh-label { cursor: default; border-bottom: none; font-weight: 600; }
.eh-label i { margin-right: 5px; color: var(--primary); }
.eh-value-display { font-weight: bold; font-size: 12px; color: #16233d; }
.eh-input { width: 40px; font-size: 11px; text-align: center; border: 1px solid #b1b1b1; border-radius: 3px; background: #ffffff; color: #000; outline: none; height: 15px !important; font-weight: bold; }
.eh-check-icon { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 4px; background: #1788ff; color: #fff; font-size: 11px; cursor: pointer; border: none; }
.eh-locked { font-weight: bold; min-width: 20px; text-align: center; }

.oe-row { display: flex; border-top: 1px solid #ebebeb; flex-shrink: 0; margin-top: 7px; }
.oe-label { padding: 3px 6px; padding-left: 10px; color: #424242; white-space: nowrap; display: flex; align-items: center; border-right: 1px solid #ddd; font-size: 13px; }
span.oe-label i {
    color: var(--primary);
    padding-right: 5px;
}
.oe-ongoing-input { flex: 1; min-width: 0; border: none; border-right: 1px solid #ddd; outline: none; padding: 2px 4px; padding-left: 7px; font-family: arial; color: #424242; font-size: 13px; }
.oe-edt-input { flex: 0 0 70px; min-width: 0; border: none; outline: none; padding: 2px 4px; padding-left: 7px; font-family: arial; color: #424242; font-size: 13px; }

span.badge {
  font-size: 12px;
  background: #00376087;
  padding: 5px !important;
  margin-right: 5px;
  border-radius: 50px;
  color: #ffffff !important;
}

/* ============================================================
   RESPONSIVE FINE-TUNING — 1080–1366px
   (nav / dropdown / hamburger / live-boxes all scale down together
   at this breakpoint; consolidated here instead of three separate
   @media blocks scattered through the file)
   ============================================================ */
@media (min-width: 1080px) and (max-width: 1366px) {
  /* Nav / dropdown */
  .habit-task-links { gap: 10px !important; }
  .dropbtn { padding: 2px 8px !important; }
  .month-picker input, #securityKey { font-size: 10px !important; }
  .arrow-button, button#goKeyBtn { font-size: 11px; }
  #activeUserMenu .dropdown-content a, #activeUserMenu .dropbtn {font-size: 12px !important;}
  .header-section .logo {font-size: 14px !important;}
  .logo-group-tag {font-size: 9px !important;}
  
  /* Hamburger panel */
  a.hamburger-logout,
  a.hamburger-top-link,
  .hamburger-dropdown .dropbtn { font-size: 12px !important; }
  .hamburger-panel-title { font-size: 14px !important; }
  .hamburger-dropdown .user-avatar { width: 30px; height: 30px; }

  /* index page */
  .live-box { height: 44vh !important; }
  .oe-label, .oe-ongoing-input, .oe-edt-input { font-size: 12px !important; }
  .oe-edt-input { flex: 0 0 62px !important; }
  .live-textarea { font-size: 12px !important; }
  .eh-value-display, .date-input, .box-avatar-initials { font-size: 11px !important; }
  .box-position, .user-name, .habit-task-links a.nav-link {font-size: 12px !important;}
  .status-dot, .week-cycle-label { font-size: 11px !important; }
  .dot { height: 8px !important; width: 8px !important; }
  .progress-ring-wrap {    width: 35px !important; height: 35px !important;}
  .progress-ring-text {font-size: 9px !important;}
  .login-nav-btn { font-size: 12px !important;}
  .box-avatar {width: 35px !important; height: 35px !important;}
  
  /*Tasks page*/
  .day-label { font-size: 11px !important;}
  
  /*Journals and habits page*/
  .manage-task-row .task-name-text, .manage-habit-row .habit-name-text, #manageWeekStartInput, #manageWeekEndInput, .manage-panel-monthbar input, .manage-panel-addbar input, .manage-btn { font-size: 12px !important;}
  .manage-panel-header h3  { font-size: 14px !important;}
  .icon-btn, .manage-panel-addbar button { font-size: 13px !important;}
  .scope-chip {font-size: 10px !important;}
  
  /*weekly goals*/
    .avatar { width: 35px !important; height: 35px !important; }
