/* ---------------------------------------------------------
   GLOBAL TYPOGRAPHY
--------------------------------------------------------- */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* ---------------------------------------------------------
   EVERYTHING BELOW THIS LINE APPLIES ONLY TO REAL PAGES
   (NOT the login page)
--------------------------------------------------------- */

body:not(.login-page) html,
body:not(.login-page) body {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Reset Bootstrap influence on sidebar */
body:not(.login-page) .menu,
body:not(.login-page) .menu * {
  font-size: inherit !important;
  line-height: inherit !important;
  box-sizing: border-box !important;
}

/* Fixed sidebar */
body:not(.login-page) .menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 200px !important;
  height: 100vh !important;
  background-color: #333 !important;
  display: flex !important;
  flex-direction: column !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  overflow-y: auto !important;
}

/* Main content */
body:not(.login-page) .main-panel {
  margin-left: 200px !important;
  padding: 20px !important;
  flex: 1 !important;
}

/* Sidebar icons + text */
body:not(.login-page) .menu-list li a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 8px 6px !important;
  line-height: 1.1 !important;
}

body:not(.login-page) .menu-list li a i {
  font-size: 28px !important;
  margin-bottom: 6px !important;
}

/* Sidebar title */
body:not(.login-page) .sidebar-title {
  font-size: 28px !important;
  color: #fff !important;
  text-align: center !important;
  line-height: 1.05 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-bottom: 20px !important;
}

body:not(.login-page) .sidebar-title .title-bottom {
  font-weight: bold !important;
  border-bottom: 3px solid #0091bc !important;
  padding-bottom: 2px !important;
}

/* Force consistent sidebar font */
body:not(.login-page) .menu,
body:not(.login-page) .menu *:not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* Disable legacy flex layout */
body:not(.login-page) .layout-row {
  display: block !important;
  flex: initial !important;
  flex-wrap: initial !important;
}

body:not(.login-page) div.menu.hidden-print {
  flex: initial !important;
}

/* Modals */
body:not(.login-page) .modal-dialog {
  max-width: 95% !important;
  width: auto !important;
  margin: 40px auto !important;
  margin-top: 0 !important;
}

body:not(.login-page) .modal-content {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  padding-top: 0 !important;
}

body:not(.login-page) .modal-header-colored,
body:not(.login-page) .modal-header {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  margin: 0 !important;
  padding-top: 12px !important;
}

body:not(.login-page) .modal-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Misc */
body:not(.login-page) link[rel="icon"] {
  display: inline !important;
}

body:not(.login-page) .agenda-body-toolbar {
  margin-top: 10px !important;
  gap: 10px !important;
}

/* ---------------------------------------------------------
   LOGIN PAGE — ISOLATED, SAFE, AND IMMUNE TO GLOBAL LAYOUT
--------------------------------------------------------- */

body.login-page {
  background: #333 !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Full-page centering wrapper */
body.login-page .login-page-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding-top: 60px;
  min-height: 100vh !important;
  width: 100% !important;
  padding: 20px !important;
}

/* Title above the box */
body.login-page .login-title {
  text-align: center !important;
  margin-bottom: 20px !important;
}

body.login-page .login-title .title-top {
  font-size: 34px !important;
  font-weight: 600 !important;
  color: #fff !important;
}

body.login-page .login-title .title-bottom {
  font-size: 22px !important;
  color: #fff !important;
  border-bottom: 3px solid #0091bc !important;
  padding-bottom: 2px !important;
  margin-top: -6px !important;
}

/* White login box */
body.login-page .login-box {
  width: 360px !important;
  background: #fff !important;
  color: #333 !important;
  padding: 30px !important;
  border-radius: 8px !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.45) !important;
  text-align: left !important;
}

/* Blue heading inside box */
body.login-page .login-heading {
  color: #0091bc !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

/* Button */
body.login-page .button-clear {
  background: #0091bc !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 16px !important;
  width: 100% !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  cursor: pointer !important;
  margin-top: 10px !important;
}

body.login-page .button-clear:hover {
  background: #007fa3 !important;
}

/* Footer */
body.login-page .login-footer {
  margin-top: 15px !important;
  font-size: 0.9em !important;
  color: #000 !important; /* black text */
  text-align: center !important;
}

/* Make Stake and Tools the same size */
body.login-page .login-title .title-top,
body.login-page .login-title .title-bottom {
  font-size: 34px !important;
  font-weight: 600 !important;
  color: #fff !important;
}

/* Make "Tools" same size as "Stake" but NOT bold */
body.login-page .login-title .title-bottom {
  font-size: 34px !important;
  font-weight: normal !important;   /* <-- removes bold */
  color: #fff !important;
  border-bottom: 3px solid #0091bc !important;
  padding-bottom: 2px !important;
  margin-top: -6px !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep "Stake" bold */
body.login-page .login-title .title-top {
  font-size: 34px !important;
  font-weight: 600 !important;      /* <-- stays bold */
  color: #fff !important;
}

/* ---------------------------------------------------------
   PERFECT BLUE BAND AT TOP OF LOGIN BOX
--------------------------------------------------------- */

body.login-page .login-box {
  position: relative !important;
  overflow: visible !important; /* ensures rounded corners apply to band */
}

/* Blue band using a pseudo-element */
body.login-page .login-box::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 12px !important;
  background: #0091bc !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

/* ---------------------------------------------------------
   MOBILE FIXES — override desktop layout on small screens
--------------------------------------------------------- */
@media (max-width: 768px) {

  /* Hide desktop sidebar */
  .menu {
    display: none !important;
  }

  /* Show mobile menu */
  #menu-phone {
    display: block !important;
  }

  /* Let the main panel take full width */
  .main-panel {
    margin-left: 0 !important;
    padding: 12px !important;
  }

  /* Restore responsive layout */
  .layout-row {
    display: flex !important;
    flex-direction: column !important;
  }
}

.datepicker-dropdown {
    right: auto !important;
}

#datepicker-hook {
    top: 0;
    left: 0;
}

.main-panel {
    position: relative !important;
}

.main-panel .datepicker-dropdown {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
}

/* ---------------------------------------------------------
   FINAL MOBILE FIXES — override desktop layout completely
--------------------------------------------------------- */
@media (max-width: 768px) {

  /* Fully hide the desktop sidebar */
  body:not(.login-page) .menu {
    display: none !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Let the main panel take full width */
  body:not(.login-page) .main-panel {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 12px !important;
  }

  /* Restore responsive layout */
  body:not(.login-page) .layout-row {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Fix language selector width in identity bar */
.identity-bar select {
    min-width: 0 !important;
    width: auto !important;
    max-width: 80px !important;
}

/* Prevent wrapping inside the identity bar */
.identity-bar {
    white-space: nowrap !important;
}

.identity-bar > div:last-child {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
}

/* Hard-lock identity bar layout so it never wraps */
.identity-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Keep both sides on a single line */
.identity-bar > div {
    white-space: nowrap !important;
}

/* Force the language selector to stay small and inline */
.identity-bar select,
.identity-bar .lang-select {
    width: 70px !important;
    max-width: 70px !important;
    min-width: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Restore proper flex behavior so identity bar doesn't collapse */
body:not(.login-page) .layout-row {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
}

/* Restore native dropdown arrow for the identity bar */
.identity-bar select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background-image: initial !important;
}

/* Canonical, page-independent styling for the header language selector */
.identity-bar .lang-select {
    /* Reset anything inherited/weird */
    all: unset;
    box-sizing: border-box;

    /* Size and shape */
    display: inline-block;
    padding: 3px 8px;
    min-width: 60px;
    max-width: 80px;
    height: 26px;
    line-height: 20px;

    /* Typography */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;

    /* Border + background to match a normal Bootstrap-ish select */
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;

    /* Make sure it behaves like a real select */
    cursor: pointer;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

.identity-bar {
    background: linear-gradient(180deg, #F5F9FF 0%, #FFFFFF 100%) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

.legal-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 32px 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    line-height: 1.65;
    font-size: 16px;
}

.legal-container h1 {
    margin-bottom: 10px;
}

.legal-container h2 {
    margin-top: 28px;
    font-size: 20px;
}

.legal-updated {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.legal-breadcrumb {
    font-size: 14px;
    color: #777;
    margin-bottom: 16px;
}

@media print {
    .content-footer,
    .legal-breadcrumb {
        display: none;
    }
    .legal-container {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 768px) {

  /* MOBILE TOOLBAR */

  .mobile-toolbar {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    gap: 6px;
  }

  .mobile-toolbar .logo {
    text-align: center;
  }

  .mobile-toolbar .logo-text {
    white-space: nowrap;
    font-size: 1.35em;
    font-weight: 400;          /* thinner Stake */
    border-bottom: none;       /* no underline on Stake */
  }

  .mobile-toolbar .logo-tools {
    font-weight: 700;          /* bold Tools */
    border-bottom: 3px solid #0091bc;
    padding-bottom: 1px;
  }

  .mobile-toolbar .identity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;       /* inline vertically */
    gap: 4px;
    width: 100%;
  }

  .mobile-toolbar .identity-row .left {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;       /* allow wrapping instead of truncation */
    font-size: 0.9em;
    line-height: 1.2;
  }

  .mobile-toolbar .identity-row .right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;       /* keep user/lang/hamburger on one line */
  }

  .mobile-toolbar .lang-select {
    width: auto;
    min-width: 60px;           /* enough for EN/ES */
    max-width: 90px;           /* no huge pill */
    font-size: 0.85em;
    padding-right: 0;
    white-space: nowrap;

    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background: initial;
  }

  /* HIDE DESKTOP IDENTITY BAR ON MOBILE */
  .identity-bar {
    display: none !important;
  }

  /* HAMBURGER MENU VISIBILITY */
  #mobile-scroll-menu {
    display: none !important;
  }
  #mobile-scroll-menu.open {
    display: block !important;
  }
}

@media (max-width: 768px) {

  /* Remove ALL underline/border from Stake Tools text */
  .mobile-toolbar .logo-text,
  .mobile-toolbar .logo-text * {
    border-bottom: none !important;
    text-decoration: none !important;
  }

  /* Re‑apply underline ONLY to Tools */
  .mobile-toolbar .logo-tools {
    font-weight: 700;
    border-bottom: 3px solid #0091bc !important;
    padding-bottom: 1px;
  }
}

@media (max-width: 768px) {
  .mobile-toolbar {
    background-color: #333;
    color: #fff;
  }

  #mobile-scroll-menu {
    background-color: #444;
  }
}

@media (max-width: 768px) {
  .mobile-toolbar {
    padding: 10px 12px;
  }

  .mobile-toolbar .logo,
  .mobile-toolbar .identity-row {
    margin: 0;
  }

  .mobile-toolbar .logo-text,
  .mobile-toolbar .identity-row .left,
  .mobile-toolbar .identity-row .right {
    line-height: 1.2;
  }

  /* Kill any extra top/bottom margins some pages might add */
  .mobile-toolbar * {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .mobile-toolbar .lang-select {
    height: 26px !important;        /* fixed height */
    line-height: 26px !important;   /* centers text */
    padding: 0 6px !important;      /* consistent padding */
    font-size: 0.85em !important;

    /* override DataTables forcing larger controls */
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  .mobile-toolbar .lang-select {
    /* Reset EVERYTHING DataTables touches */
    all: unset !important;
    box-sizing: border-box !important;

    /* Rebuild your intended style */
    display: inline-block !important;
    background-color: #444 !important;
    color: #fff !important;
    border: 1px solid #666 !important;
    border-radius: 4px !important;

    height: 26px !important;
    line-height: 26px !important;
    padding: 0 6px !important;
    font-size: 0.85em !important;

    /* Restore native dropdown arrow */
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;

    /* Prevent stretching */
    min-width: 60px !important;
    max-width: 90px !important;
    white-space: nowrap !important;
  }
}

/* Ensure sidebar scrolls fully on tablets */
.sidebar {
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Make the desktop sidebar scrollable on tablets/desktop */
@media (min-width: 768px) {
  .menu {
    /* Ensure it fits the viewport and can scroll */
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Give extra padding so the last item (Logout) isn't hidden */
  .menu-list {
    padding-bottom: 40px;
  }
}

/* Force desktop sidebar to scroll independently */
@media (min-width: 768px) {
  .layout-row {
    display: flex;
    align-items: stretch;
    height: 100vh; /* full viewport height */
    overflow: hidden; /* prevent double scrollbars */
  }

  .menu {
    width: 220px; /* whatever your sidebar width is */
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-panel {
    flex-grow: 1;
    overflow-y: auto;
    height: 100vh;
  }

  .menu-list {
    padding-bottom: 60px; /* ensures Logout isn't hidden */
  }
}

@media (min-width: 768px) {

  /* Sidebar becomes its own scrollable column */
  .menu {
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Add padding so Logout never hides under system bars */
  .menu-list {
    padding-bottom: 80px;
  }
}

.content-footer {
    width: 100% !important;
    clear: both !important;
    display: block !important;
    flex: none !important;
}

/* Email preview modal overlay */
#pollPreviewModal {
    display: none; /* JS toggles this */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Email preview card */
#pollPreviewContent {
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 28px 32px;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    overflow-y: auto;
    max-height: 85vh;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

/* Optional: make links look like email links */
#pollPreviewContent a {
    color: #337ab7;
}

#pollPreviewContent {
    background: #fafafa;
    padding: 20px;
    border-radius: 6px;
}

#pollPreviewContent {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.success-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  width: 120px;      /* or whatever size you want */
  height: 120px;
}

.success-icon-wrapper svg {
  display: block;
  width: 100%;
  height: 100%;
}

.progress-animated {
    transition: width 0.6s ease-in-out;
}

/* ---------------------------------------------------------
   MISSIONARY MODAL — FULLY ISOLATED, PREMIUM LAYOUT
--------------------------------------------------------- */

/* Main two-column layout */
#addMissionaryModal .missionary-edit-layout,
#editMissionaryModal .missionary-edit-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 24px !important;
  width: 100% !important;
}

/* LEFT COLUMN — compact, clean, consistent */
#addMissionaryModal .left-col,
#editMissionaryModal .left-col {
  flex: 1.6 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  column-gap: 12px !important;
  row-gap: 6px !important;
}

/* Each field block */
#addMissionaryModal .left-col > div,
#editMissionaryModal .left-col > div {
  flex: 1 1 300px !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
}

/* Labels */
#addMissionaryModal .left-col label,
#editMissionaryModal .left-col label {
  font-weight: 600 !important;
  margin-bottom: 2px !important;
}

/* Inputs */
#addMissionaryModal .left-col input,
#addMissionaryModal .left-col select,
#addMissionaryModal .left-col textarea,
#editMissionaryModal .left-col input,
#editMissionaryModal .left-col select,
#editMissionaryModal .left-col textarea {
  padding: 6px 8px !important;
  height: auto !important;
  line-height: 1.2 !important;
}

/* Notes field spans full width */
#addMissionaryModal .left-col textarea,
#editMissionaryModal .left-col textarea {
  min-height: 80px !important;
}

/* RIGHT COLUMN — fixed width, clean alignment */
#addMissionaryModal .right-col,
#editMissionaryModal .right-col {
  flex: 1 !important;
  min-width: 360px !important;
}

/* Header row for steps */
#addMissionaryModal .right-col .steps-header,
#editMissionaryModal .right-col .steps-header {
  display: grid !important;
  grid-template-columns: 1fr 140px !important;
  column-gap: 16px !important;
  margin-bottom: 8px !important;
}

/* Steps list */
#addMissionaryModal .right-col ol,
#editMissionaryModal .right-col ol {
  padding-left: 20px !important;
}

/* Each step row */
#addMissionaryModal .right-col li,
#editMissionaryModal .right-col li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 8px !important;
  min-height: 36px !important;
}

/* Left side of step row */
#addMissionaryModal .right-col .step-row-left,
#editMissionaryModal .right-col .step-row-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 !important;
}

/* Date input wrapper */
#addMissionaryModal .right-col .step-row-date,
#editMissionaryModal .right-col .step-row-date {
  width: 140px !important;
  min-height: 32px !important;
}

/* Footer buttons */
#addMissionaryModal .modal-footer-bar,
#editMissionaryModal .modal-footer-bar {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  padding: 20px !important;
  align-items: center !important;
}

/* Tighter spacing for progress steps */
#addMissionaryModal .right-col li,
#editMissionaryModal .right-col li {
  margin-bottom: 4px !important;   /* was 8px */
  gap: 10px !important;            /* was 16px */
  min-height: 28px !important;     /* was 36px */
  padding: 2px 0 !important;       /* adds compact feel */
}

/* Tighten spacing inside the left side of each step row */
#addMissionaryModal .right-col .step-row-left,
#editMissionaryModal .right-col .step-row-left {
  gap: 6px !important;             /* was 8px */
}

/* Tighten spacing around the date input */
#addMissionaryModal .right-col .step-row-date,
#editMissionaryModal .right-col .step-row-date {
  min-height: 26px !important;     /* was 32px */
}

/* Make the date input itself more compact */
#addMissionaryModal .right-col input.step-date,
#editMissionaryModal .right-col input.step-date {
  padding: 4px 6px !important;
  height: 26px !important;
  line-height: 1.1 !important;
}

#addMissionaryModal .right-col li.hidden-step-row,
#editMissionaryModal .right-col li.hidden-step-row {
    display: none !important;
}

.dashboard-header {
  width: 100%;
  height: 360px;              /* your chosen banner height */
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;    /* center horizontally */
  align-items: center;        /* center vertically */
  padding: 0;
}

.header-image {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;    /* center the image */
  align-items: center;
  overflow: hidden;           /* clean full-bleed edges */
}

.header-image img {
  width: 100%;                /* full width of card */
  height: auto;               /* maintain aspect ratio */
  object-fit: cover;          /* full-bleed crop */
  object-position: center;    /* center the panoramic focal point */
  display: block;
}

.card {
    position: relative;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 22px; /* MORE rounded */
    border: 1px solid rgba(255, 255, 255, 0.45);

    padding: 24px;
    margin-bottom: 28px;

    /* STRONGER, modern drop shadow */
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.10);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.22),
        0 6px 14px rgba(0, 0, 0, 0.12);
}

.card h3 {
    margin-top: 0;
    font-weight: 600;
    color: #1a1a1a;
}

.card-content {
    margin-top: 10px;
    line-height: 1.55;
}

/* Background behind cards */
.body-resize {
    background: linear-gradient(180deg, #F5F9FF 0%, #FFFFFF 100%) !important;
    padding: 20px;
    border-radius: 12px;
}

/* FINAL OVERRIDE — FORCE MODERN CARD STYLE */
.body-resize .card {
    position: relative !important;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;

    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;

    padding: 24px !important;
    margin-bottom: 28px !important;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.10) !important;

    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.body-resize .card:hover {
    transform: translateY(-4px) !important;
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.22),
        0 6px 14px rgba(0, 0, 0, 0.12) !important;
}

/* Force Stake Tools card style over Bootstrap's card */
body:not(.login-page) .card {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;

    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;

    padding: 24px !important;
    margin-bottom: 28px !important;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.10) !important;

    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body:not(.login-page) .card:hover {
    transform: translateY(-4px) !important;
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.22),
        0 6px 14px rgba(0, 0, 0, 0.12) !important;
}

/* Graph overlay tweaks for clarity on glass */
.graph-overlay {
    mix-blend-mode: screen;
    opacity: 0.9;
}

/* Allow dashboard content to push footer down */
body:not(.login-page) .main-panel {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: visible !important;
}

/* Let the page grow naturally so the footer is never covered */
body:not(.login-page) .main-panel {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
}

/* Make the Progress Steps card scroll internally */
.progress-steps-card {
    max-height: 420px; /* adjust as needed */
    overflow-y: auto;
    padding-right: 6px; /* avoid scrollbar overlap */
}

/* Modern sidebar styling */
.sidebar {
    border-top-right-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 4px 0 18px rgba(0,0,0,0.18) !important;
}

/* Unified dashboard background */
body:not(.login-page) {
    background: linear-gradient(180deg, #F5F9FF 0%, #FFFFFF 100%) !important;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.10) !important;
}

.card.dashboard-card {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.10) !important;
}

.sidebar {
    background: #1f1f1f; /* keep your dark theme */
    border-top-right-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 4px 0 18px rgba(0,0,0,0.18) !important;
}

/* Progress Steps card internal scroll */
.progress-steps-card {
    max-height: 300px !important; /* adjust as needed */
    overflow-y: auto !important;
    padding-right: 6px;
}

/* Restore natural scrolling on all Stake pages */
body:not(.login-page) .main-panel {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: visible !important;
}

/* Ensure Stake Business content can scroll vertically */
.stake-business-wrapper {
    max-height: calc(100vh - 120px); /* adjust if needed */
    overflow-y: auto;
    padding-right: 6px; /* avoid scrollbar overlap */
}

/* Allow vertical scrolling on all Stake pages */
body:not(.login-page) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Let the main panel grow naturally */
body:not(.login-page) .main-panel {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
}

/* Prevent horizontal overflow on Stake Business page */
.stake-business-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* FINAL OVERRIDE — Full-height, centered, side-cropped banner */
.dashboard-header {
    width: 100%;
    height: 360px;                 /* fixed banner height */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    border-radius: 22px !important;
}

.header-image {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
}

.header-image img {
    height: 100% !important;       /* full height */
    width: auto !important;        /* maintain aspect ratio */
    object-fit: cover !important;  /* crop sides only */
    object-position: center !important;
    display: block !important;
}

/* FINAL OVERRIDE — Add spacing below the dashboard header card */
.dashboard-header {
    margin-bottom: 40px !important;   /* adjust to taste */
}

@media (max-width: 768px) {
    .dashboard-header {
        margin-bottom: 24px !important;
    }
}

/* FIX: Allow dashboard scrolling on mobile landscape */
@media (max-height: 500px) and (orientation: landscape) {

  .layout-row {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  .main-panel {
    height: auto !important;
    min-height: auto !important;
    overflow-y: visible !important;
  }

  body:not(.login-page) {
    overflow-y: auto !important;
  }
}

/* FINAL OVERRIDE — Darker, premium sidebar shadow */
.menu {
    border-top-right-radius: 22px !important;
    overflow: hidden !important;

    box-shadow:
        6px 0 20px rgba(0,0,0,0.32),   /* darker core shadow */
        12px 0 28px rgba(0,0,0,0.18) !important; /* soft outer glow */

    z-index: 1000 !important;
}

/* Ensure shadow isn't clipped */
.layout-row {
    overflow: visible !important;
}

/* FINAL OVERRIDE — One unified background */
body:not(.login-page) {
    background: linear-gradient(180deg, #F5F9FF 0%, #FFFFFF 100%) !important;
}

.body-resize {
    background: transparent !important;
}

/* FINAL OVERRIDE — Identity bar as a thin floating card */
.identity-bar {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;

    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;

    padding: 8px 18px !important;
    margin-bottom: 18px !important;

    box-shadow:
        0 6px 18px rgba(0,0,0,0.12),
        0 2px 6px rgba(0,0,0,0.08) !important;

    width: 100% !important;
}

/* Legal pages: floating card styling */
.legal-container {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.45);

    padding: 30px 40px;
    margin: 40px auto;

    box-shadow:
        0 12px 28px rgba(0,0,0,0.18),
        0 4px 12px rgba(0,0,0,0.10);
}

/* Breadcrumb and toggle button spacing inside the card */
.legal-breadcrumb,
#toggleMode,
.legal-updated {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Optional: make inner sections feel like sub‑cards */
#officialVersion,
#funnyVersion {
    border-radius: 16px;
    padding: 20px;
}

/* ===========================
   Poll Sending Loader
   =========================== */
.dot-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dot-anim::after {
    content: '';
    animation: dots 1.4s steps(4, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* ===========================
   Success Checkmark Animation
   =========================== */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.check-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #4CAF50;
    position: relative;
    box-sizing: content-box;
    animation: popIn 0.4s ease-out forwards;
}

@keyframes popIn {
    0% { transform: scale(0.3); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
}

.line-tip {
    width: 25px;
    top: 38px;
    left: 14px;
    transform: rotate(45deg);
    animation: tipIn 0.3s ease-out 0.3s forwards;
    opacity: 0;
}

.line-long {
    width: 47px;
    top: 32px;
    left: 23px;
    transform: rotate(-45deg);
    animation: longIn 0.3s ease-out 0.45s forwards;
    opacity: 0;
}

@keyframes tipIn {
    to { opacity: 1; }
}

@keyframes longIn {
    to { opacity: 1; }
}

/* ---------------------------------------------------------
   DAILY PLANT DASHBOARD WIDGET
--------------------------------------------------------- */
.daily-plant-card {
    min-height: 300px;
}

.daily-plant-widget {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 212px;
}

.daily-plant-stage {
  flex: 0 0 210px;
  max-width: 210px;
}

.daily-plant-art {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 9;
}

.plant-sky {
  fill: #eef8fb;
}

.plant-sun {
  fill: #f8c85a;
}

.plant-ground {
  fill: #cfe7ca;
}

.plant-soil {
  fill: #7b5a3f;
}

.plant-seed {
  fill: #6e4a2e;
  stroke: #4c321f;
  stroke-width: 2;
}

.plant-stem {
  fill: none;
  stroke: #3f8d4d;
  stroke-width: 7;
  stroke-linecap: round;
}

.plant-leaf {
  fill: #54a95d;
  stroke: #34733f;
  stroke-width: 2;
}

.plant-leaf-right {
  fill: #62b86b;
}

.plant-leaf-small {
  fill: #77bf73;
}

.plant-trunk {
  fill: #775034;
  stroke: #513722;
  stroke-width: 2;
}

.plant-canopy {
  fill: #3f9651;
  stroke: #2f7640;
  stroke-width: 2;
}

.plant-water-drop {
  fill: #4aa7d8;
  opacity: 0;
  transform: translateY(-16px);
  animation: plantDrop 2.5s ease-in-out infinite;
}

.daily-plant-art.is-withered .plant-sky {
  fill: #f8f3e9;
}

.daily-plant-art.is-withered .plant-ground {
  fill: #d8c7a5;
}

.daily-plant-art.is-withered .plant-stem,
.daily-plant-art.is-withered .plant-leaf {
  stroke: #8b704a;
}

.daily-plant-art.is-withered .plant-leaf,
.daily-plant-art.is-withered .plant-canopy {
  fill: #9b8653;
}

.daily-plant-art.is-restarted .plant-ground {
  fill: #c9c1b7;
}

.daily-plant-art.is-restarted .plant-soil {
  fill: #38312b;
}

.daily-plant-info {
  flex: 1 1 auto;
  min-width: 0;
}

.daily-plant-title {
  color: #2a3f54;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.daily-plant-message {
  color: #53606b;
  line-height: 1.4;
  margin-bottom: 14px;
}

.plant-status-withered .daily-plant-message {
  color: #7a5d2b;
}

.daily-plant-progress-wrap {
  margin-bottom: 14px;
}

.daily-plant-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5f6d76;
  font-size: 12px;
  margin-bottom: 5px;
}

.daily-plant-progress {
  height: 9px;
  overflow: hidden;
  background: #e7ecef;
  border-radius: 8px;
}

.daily-plant-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #2f9a68, #66b95d, #f8c85a);
  border-radius: 8px;
  transition: width 0.45s ease;
}

@keyframes plantDrop {
  0%, 55%, 100% {
    opacity: 0;
    transform: translateY(-16px);
  }
  70% {
    opacity: 0.9;
    transform: translateY(0);
  }
  82% {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 640px) {
  .daily-plant-widget {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-plant-stage {
    flex-basis: auto;
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
  }
}

/* Daily Plant: richer animated-film style overrides */
.daily-plant-card {
    overflow: hidden !important;
}

.daily-plant-widget {
    position: relative;
}

.daily-plant-widget::before {
    content: "";
    position: absolute;
    inset: -18px auto auto -28px;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(255, 210, 118, 0.28), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.daily-plant-art {
    filter: drop-shadow(0 14px 18px rgba(42, 63, 84, 0.18));
    transform-origin: 50% 86%;
}

.plant-sky {
    fill: url(#plantSkyGlow);
}

.plant-sun {
    fill: #ffd467;
    filter: drop-shadow(0 0 10px rgba(255, 195, 71, 0.85));
}

.plant-sun-halo {
    fill: rgba(255, 218, 120, 0.24);
    animation: sunBreath 4.8s ease-in-out infinite;
}

.plant-hill-back {
    fill: rgba(129, 190, 148, 0.34);
}

.plant-hill {
    fill: rgba(88, 155, 113, 0.28);
}

.plant-ground {
    fill: url(#plantGroundGlow);
}

.plant-soil {
    fill: #7a4f34;
    filter: drop-shadow(0 4px 3px rgba(68, 45, 28, 0.32));
}

.plant-character {
    filter: url(#plantSoftShadow);
    transform-origin: 100px 150px;
    animation: plantIdle 4.6s ease-in-out infinite;
}

.plant-seed-shadow {
    fill: rgba(49, 41, 36, 0.24);
}

.plant-seed {
    fill: #8a5c37;
    stroke: #4c321f;
    stroke-width: 2;
}

.plant-seed-highlight {
    fill: none;
    stroke: rgba(255, 229, 174, 0.78);
    stroke-width: 3;
    stroke-linecap: round;
}

.plant-seed-crack {
    fill: none;
    stroke: rgba(68, 43, 25, 0.6);
    stroke-width: 2;
    stroke-linecap: round;
}

.plant-stem {
    stroke: #3b8f4f;
    filter: drop-shadow(0 5px 4px rgba(50, 88, 46, 0.28));
}

.plant-leaf {
    fill: url(#plantCanopyGlow);
    stroke: #2b7a3a;
    filter: drop-shadow(0 5px 4px rgba(39, 93, 47, 0.25));
}

.plant-sapling-fill {
    fill: url(#plantCanopyGlow);
    stroke: rgba(43, 122, 58, 0.52);
    stroke-width: 1.5;
    filter:
        drop-shadow(0 7px 5px rgba(36, 93, 45, 0.20))
        drop-shadow(0 0 8px rgba(177, 236, 113, 0.20));
}

.plant-sapling-fill-left {
    transform: rotate(-16deg);
    transform-origin: 78px 92px;
}

.plant-sapling-fill-right {
    transform: rotate(18deg);
    transform-origin: 124px 76px;
}

.plant-sapling-fill-top {
    transform: rotate(-8deg);
    transform-origin: 101px 58px;
}

.plant-leaf-right {
    fill: #68bd69;
}

.plant-leaf-small {
    fill: #83cf74;
}

.plant-leaf-glow {
    fill: none;
    stroke: rgba(235, 255, 198, 0.82);
    stroke-width: 3;
    stroke-linecap: round;
}

.plant-leaf-glow-right {
    stroke-width: 2.5;
}

.plant-trunk {
    fill: url(#plantTrunkGlow);
    stroke: #513722;
    stroke-width: 2;
}

.plant-trunk-highlight {
    fill: none;
    stroke: rgba(255, 205, 139, 0.46);
    stroke-width: 4;
    stroke-linecap: round;
}

.plant-canopy {
    fill: url(#plantCanopyGlow);
    stroke: #2f7640;
    stroke-width: 2;
    filter:
        drop-shadow(0 8px 5px rgba(25, 89, 41, 0.20))
        drop-shadow(0 0 8px rgba(164, 229, 111, 0.24));
}

.plant-canopy-fill {
    fill: url(#plantCanopyGlow);
    stroke: rgba(47, 118, 64, 0.56);
    stroke-width: 2;
    filter:
        drop-shadow(0 10px 8px rgba(25, 89, 41, 0.20))
        drop-shadow(0 0 12px rgba(179, 235, 116, 0.28));
}

.plant-young-trunk {
    fill: url(#plantTrunkGlow);
}

.plant-young-trunk-highlight {
    stroke-width: 3;
}

.plant-young-canopy-fill {
    fill: url(#plantCanopyGlow);
}

.plant-young-canopy {
    filter:
        drop-shadow(0 7px 5px rgba(25, 89, 41, 0.18))
        drop-shadow(0 0 7px rgba(164, 229, 111, 0.22));
}

.plant-young-canopy-light {
    opacity: 0.8;
}

.plant-canopy-light {
    fill: rgba(220, 255, 174, 0.38);
    stroke: none;
}

.plant-canopy-light-two {
    fill: rgba(255, 244, 174, 0.24);
}

.plant-water-drop {
    fill: #63bde9;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1;
    filter: drop-shadow(0 4px 5px rgba(42, 124, 168, 0.45));
}

.plant-mote {
    fill: rgba(255, 255, 255, 0.82);
    filter: drop-shadow(0 0 5px rgba(255, 239, 174, 0.85));
    animation: moteFloat 5.5s ease-in-out infinite;
}

.mote-two {
    animation-delay: 1.2s;
}

.mote-three {
    animation-delay: 2.1s;
}

.daily-plant-art.is-withered .plant-sky {
    fill: #f5ead8;
}

.daily-plant-art.is-withered .plant-sun {
    fill: #d39a5f;
}

.daily-plant-art.is-withered .plant-hill,
.daily-plant-art.is-withered .plant-hill-back,
.daily-plant-art.is-withered .plant-ground {
    fill: #d1bd91;
}

.daily-plant-art.is-withered .plant-leaf,
.daily-plant-art.is-withered .plant-canopy,
.daily-plant-art.is-withered .plant-sapling-fill,
.daily-plant-art.is-withered .plant-canopy-fill {
    fill: #9a854f;
    stroke: #7a623e;
    filter: drop-shadow(0 6px 4px rgba(96, 72, 43, 0.24));
}

.daily-plant-art.is-withered .plant-stem,
.daily-plant-art.is-withered .plant-trunk {
    stroke: #705134;
}

.daily-plant-art.is-restarted .plant-sky {
    fill: #e9edf0;
}

.daily-plant-art.is-restarted .plant-hill,
.daily-plant-art.is-restarted .plant-hill-back,
.daily-plant-art.is-restarted .plant-ground {
    fill: #b8b4aa;
}

.daily-plant-art.is-restarted .plant-soil {
    fill: #302a25;
    filter:
        drop-shadow(0 -2px 6px rgba(228, 117, 52, 0.45))
        drop-shadow(0 4px 3px rgba(28, 23, 20, 0.35));
}

.plant-wither-curl {
    fill: none;
    stroke: rgba(105, 79, 48, 0.72);
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 2px rgba(80, 55, 31, 0.22));
}

.plant-wither-leaf-fall {
    fill: #9b7448;
    stroke: #725235;
    stroke-width: 1.5;
    filter: drop-shadow(0 4px 4px rgba(79, 55, 31, 0.26));
    animation: witherLeafDrift 4.8s ease-in-out infinite;
}

.plant-ash-streak {
    fill: none;
    stroke: rgba(35, 31, 28, 0.72);
    stroke-width: 5;
    stroke-linecap: round;
}

.plant-ash-streak-two {
    stroke-width: 3;
    opacity: 0.62;
}

.plant-ember {
    fill: #e36d34;
    stroke: rgba(255, 216, 130, 0.7);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 7px rgba(229, 91, 38, 0.72));
    animation: emberPulse 2.6s ease-in-out infinite;
}

.daily-plant-scripture {
    border-left: 4px solid rgba(0, 145, 188, 0.5);
    background: rgba(255, 255, 255, 0.42);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.58);
}

.daily-plant-scripture-ref {
    color: #2a3f54;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 3px;
}

.daily-plant-scripture-thought {
    color: #53606b;
    font-size: 13px;
    line-height: 1.35;
}

/* ---------------------------------------------------------
   ASSIGNMENTS PAGE CARDS
--------------------------------------------------------- */
.assignments-board {
    padding: 18px !important;
    margin-top: 0 !important;
}

.assignments-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.assignments-toolbar .radio-inline {
    margin-left: 0;
    color: #2a3f54;
    font-weight: 600;
}

.assignments-divider {
    border-top-color: rgba(255, 255, 255, 0.55);
    margin: 16px 0;
}

.assignments-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.assignment-card {
    position: relative;
    min-height: 160px;
    padding: 16px 52px 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.assignment-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18),
        0 4px 10px rgba(0, 0, 0, 0.10);
}

.assignment-card.is-completed {
    opacity: 0.74;
}

.assignment-card-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.assignment-complete {
    flex: 0 0 auto;
    margin: 2px 0 0;
    cursor: pointer;
}

.assignment-complete input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.assignment-complete span {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 145, 188, 0.65);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.assignment-complete input:checked + span {
    background: #2f9a68;
    border-color: #2f9a68;
}

.assignment-complete input:checked + span::after {
    content: "\f00c";
    display: block;
    color: #fff;
    font-family: FontAwesome;
    font-size: 13px;
    line-height: 19px;
    text-align: center;
}

.assignment-card-body {
    min-width: 0;
}

.assignment-card-title {
    color: #1f2f3d;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.assignment-card.is-completed .assignment-card-title {
    text-decoration: line-through;
}

.assignment-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    color: #53606b;
    font-size: 13px;
    line-height: 1.35;
}

.assignment-card-meta i,
.assignment-card-footer i {
    color: #0091bc;
    margin-right: 5px;
}

.assignment-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.56);
    color: #63717d;
    font-size: 12px;
    line-height: 1.35;
}

.assignment-card-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.assignment-card-actions .btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    line-height: 28px;
}

@media (max-width: 640px) {
    .assignments-card-grid {
        grid-template-columns: 1fr;
    }

    .assignment-card {
        padding-right: 48px;
    }
}

@keyframes plantIdle {
    0%, 100% {
        transform: rotate(-0.8deg) translateY(0);
    }
    50% {
        transform: rotate(1deg) translateY(-2px);
    }
}

@keyframes sunBreath {
    0%, 100% {
        opacity: 0.18;
        transform: scale(0.92);
        transform-origin: 164px 33px;
    }
    50% {
        opacity: 0.38;
        transform: scale(1.08);
        transform-origin: 164px 33px;
    }
}

@keyframes moteFloat {
    0%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

@keyframes witherLeafDrift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.78;
    }
    50% {
        transform: translate(-3px, 5px) rotate(-5deg);
        opacity: 1;
    }
}

@keyframes emberPulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.92);
        transform-origin: 136px 148px;
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
        transform-origin: 136px 148px;
    }
}
/* Shared glass surfaces for tool pages. Keep this late in custom.css so page-specific
   Bootstrap/DataTables rules do not flatten the cards back to plain white. */
body:not(.login-page) .stake-glass-panel,
body:not(.login-page) .stake-business-wrapper,
body:not(.login-page) .settings-glass-panel,
body:not(.login-page) .ward-tool-page {
    background: rgba(255, 255, 255, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.48) !important;
    border-radius: 18px !important;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.10) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    padding: 20px !important;
    margin-top: 12px !important;
    margin-bottom: 24px !important;
}

body:not(.login-page) .stake-glass-panel:hover,
body:not(.login-page) .stake-business-wrapper:hover,
body:not(.login-page) .settings-glass-panel:hover,
body:not(.login-page) .ward-tool-page:hover {
    transform: none !important;
}

body:not(.login-page) .stake-glass-panel .nav-tabs,
body:not(.login-page) .stake-business-wrapper .nav-tabs,
body:not(.login-page) .settings-glass-panel .nav-tabs,
body:not(.login-page) .ward-tool-page .nav-tabs {
    border-bottom-color: rgba(42, 63, 84, 0.16) !important;
}

body:not(.login-page) .stake-glass-panel .nav-tabs > li > a,
body:not(.login-page) .stake-business-wrapper .nav-tabs > li > a,
body:not(.login-page) .settings-glass-panel .nav-tabs > li > a,
body:not(.login-page) .ward-tool-page .nav-tabs > li > a {
    border-radius: 8px 8px 0 0 !important;
    color: #2a3f54 !important;
    font-weight: 600 !important;
}

body:not(.login-page) .stake-glass-panel .nav-tabs > li.active > a,
body:not(.login-page) .stake-business-wrapper .nav-tabs > li.active > a,
body:not(.login-page) .settings-glass-panel .nav-tabs > li.active > a,
body:not(.login-page) .ward-tool-page .nav-tabs > li.active > a {
    background: rgba(255, 255, 255, 0.74) !important;
    border-color: rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.7) transparent !important;
    color: #1f3142 !important;
}

body:not(.login-page) .stake-table-panel .table,
body:not(.login-page) .stake-business-wrapper .table,
body:not(.login-page) .settings-glass-panel .table,
body:not(.login-page) .ward-tool-page .table {
    background: rgba(255, 255, 255, 0.66) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid rgba(42, 63, 84, 0.10) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

body:not(.login-page) .stake-table-panel .table > thead > tr > th,
body:not(.login-page) .stake-business-wrapper .table > thead > tr > th,
body:not(.login-page) .settings-glass-panel .table > thead > tr > th,
body:not(.login-page) .ward-tool-page .table > thead > tr > th {
    background: rgba(42, 63, 84, 0.08) !important;
    border-bottom: 1px solid rgba(42, 63, 84, 0.14) !important;
    color: #233647 !important;
}

body:not(.login-page) .stake-table-panel .table-striped > tbody > tr:nth-of-type(odd) > td,
body:not(.login-page) .stake-business-wrapper .table-striped > tbody > tr:nth-of-type(odd) > td,
body:not(.login-page) .settings-glass-panel .table-striped > tbody > tr:nth-of-type(odd) > td,
body:not(.login-page) .ward-tool-page .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(255, 255, 255, 0.86) !important;
}

body:not(.login-page) .stake-table-panel .table-striped > tbody > tr:nth-of-type(even) > td,
body:not(.login-page) .stake-business-wrapper .table-striped > tbody > tr:nth-of-type(even) > td,
body:not(.login-page) .settings-glass-panel .table-striped > tbody > tr:nth-of-type(even) > td,
body:not(.login-page) .ward-tool-page .table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: rgba(221, 235, 243, 0.92) !important;
}

body:not(.login-page) .stake-inner-panel {
    background: rgba(255, 255, 255, 0.62) !important;
    border: 1px solid rgba(255, 255, 255, 0.50) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.62), 0 6px 18px rgba(0,0,0,0.08) !important;
    padding: 15px !important;
}

body:not(.login-page) .stake-business-wrapper {
    max-height: none !important;
    overflow: visible !important;
}

body:not(.login-page) .stake-table-panel table.table > tbody > tr.near-date > td,
body:not(.login-page) table.table > tbody > tr.near-date > td {
    background-color: #fff0b8 !important;
    border-top-color: rgba(156, 109, 0, 0.22) !important;
    border-bottom-color: rgba(156, 109, 0, 0.22) !important;
}

body:not(.login-page) .stake-table-panel table.table > tbody > tr.near-date > td:first-child,
body:not(.login-page) table.table > tbody > tr.near-date > td:first-child {
    box-shadow: inset 4px 0 0 #d98c00 !important;
}

body:not(.login-page) .main-panel {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body:not(.login-page) .main-panel > .content-footer {
    margin-top: auto !important;
}

body:not(.login-page) .ward-tools-modal .modal-dialog,
body:not(.login-page) .baptism-modal .modal-dialog {
    max-width: 1400px !important;
    width: calc(100% - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body:not(.login-page) .ward-tools-modal .modal-header,
body:not(.login-page) .baptism-modal .modal-header {
    background: #0091bc !important;
    color: #fff !important;
    border-radius: 6px 6px 0 0 !important;
}

body:not(.login-page) .ward-tools-modal .modal-header .close,
body:not(.login-page) .baptism-modal .modal-header .close {
    color: #fff !important;
    opacity: .9 !important;
}

body:not(.login-page) .ward-tools-modal .modal-body,
body:not(.login-page) .baptism-modal .modal-body {
    padding: 18px 20px !important;
}

.ward-agenda-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(231,240,246,0.96)) !important;
    color: #22384d !important;
    padding: 12px !important;
}

.ward-agenda-card .agenda-date {
    font-size: 12px;
    color: #5f7485;
    margin-bottom: 8px;
}

.ward-agenda-card .agenda-title {
    font-size: 15px;
    line-height: 1.2;
    min-height: 42px;
}

.ward-agenda-card .agenda-meta {
    font-size: 11px;
    line-height: 1.35;
    font-weight: 500;
    margin-top: 10px;
}

.ward-agenda-card .agenda-actions {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.ward-agenda-card .agenda-actions .btn {
    font-size: 10px;
    padding: 2px 5px;
}

.ward-assignment-entry-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) max-content max-content;
    gap: 8px;
    align-items: center;
    max-width: 100%;
}

.ward-assignment-entry-row .form-control {
    width: 100%;
    min-width: 0;
}

.ward-assignment-entry-row .btn {
    width: auto;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .ward-assignment-entry-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body:not(.login-page) .ward-tools-modal .modal-dialog,
    body:not(.login-page) .baptism-modal .modal-dialog {
        width: calc(100% - 20px) !important;
    }
}
