:root{
  --sidebar-w: 18rem;

  --blue: #4668f2;
  --blue-dark: #2745d4;

  --text: #111827;
  --muted: #6b7280;

  --shadow-soft: 0 10px 22px rgba(0,0,0,.08);

  --border-soft: 1px solid rgba(17,24,39,0.08);
}

html, body {
  height: 100%;
  transform: none !important;
  font-family: 'Poppins', sans-serif;
}

body {
  padding-left: var(--sidebar-w);
  background: #f3f4f6;
}

.sidebar {
  position: fixed !important;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  transform: none !important;
  z-index: 50;

  background: #ffffff;
  border-right: var(--border-soft);
  box-shadow: var(--shadow-soft);

  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.sidebar::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(circle at 14% 10%, rgba(70,104,242,0.10), transparent 58%),
    radial-gradient(circle at 85% 85%, rgba(70,104,242,0.08), transparent 62%);
  opacity: .55;
}

.sidebar-top {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .15rem;
}

.sidebar-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sidebar-logo img {
  height: 3.25rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.10));
}

.sidebar-nav {
  flex: 1;
  overflow: hidden;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.section-heading {
  margin-left: 5px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(17,24,39,0.55);
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(17,24,39,0.10);
}

.section-heading.section-heading-others {
  border-top: 1px solid rgba(17,24,39,0.10);
  border-bottom: none;
  padding-top: .85rem;
  padding-bottom: 0;
  margin-top: .2rem;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .75rem;
}

.nav-item { display: block; }

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;

  padding: .7rem .8rem;
  border-radius: .95rem;
  text-decoration: none;

  color: var(--text);
  background: transparent;
  border: 1px solid transparent;

  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.nav-link i {
  font-size: 1.05rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: .85rem;

  color: var(--blue);
  background: rgba(70,104,242,0.08);
  box-shadow: 0 10px 18px rgba(70,104,242,0.07);

  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  flex-shrink: 0;
}

.nav-link span {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav-link:hover {
  background: linear-gradient(180deg, rgba(70,104,242,0.14), rgba(39,69,212,0.10));
  border-color: rgba(70,104,242,0.22);
  box-shadow: 0 14px 24px rgba(70,104,242,0.10);
  transform: translateY(-1px);
  color: var(--blue-dark);
}
.nav-link:hover i {
  background: rgba(70,104,242,0.14);
  color: var(--blue-dark);
  box-shadow: 0 14px 22px rgba(70,104,242,0.12);
  transform: scale(1.03);
}

.nav-link.active {
  background: linear-gradient(180deg, rgba(70,104,242,0.16), rgba(39,69,212,0.10));
  border-color: rgba(70,104,242,0.22);
  box-shadow: 0 14px 24px rgba(70,104,242,0.10);
  position: relative;
  color: var(--blue-dark);
}

.nav-link.active::before {
  content:"";
  position: absolute;
  left: -10px;
  top: 10px;
  bottom: 10px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  box-shadow: 0 10px 18px rgba(70,104,242,0.22);
}

.nav-link.active i {
  background: rgba(70,104,242,0.14);
  color: var(--blue-dark);
  box-shadow: 0 14px 22px rgba(70,104,242,0.12);
}

.btn-logout {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
}

.sidebar-footer {
  text-align: center;
  font-size: .72rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid rgba(17,24,39,0.08);
  background: transparent;
}

.sidebar-footer h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: .35rem;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.sidebar-footer p {
  margin: .2rem 0;
  line-height: 1.25;
  color: rgba(107,114,128,0.92);
}

/* Legal links INLINE in the same text style */
.legal-inline {
  margin-top: .35rem;
  color: rgba(107,114,128,0.92);
  font-size: .72rem;
  line-height: 1.25;
}

.legal-inline a{
  color: rgba(107,114,128,0.92);
  text-decoration: none;
  font-weight: 800;
  transition: color .18s ease;
}

.legal-inline a:hover{
  color: var(--blue-dark);
}

.footer-bottom {
  margin-top: .45rem;
  color: rgba(107,114,128,0.92);
  font-size: .72rem;
  line-height: 1.25;
}

main {
  background: #ffffff;
  min-height: 100vh;
  overflow-y: auto;
}
/* Groups index styles */
:root {
  --blue: #4668f2;
  --blue-dark: #2745d4;
  --radius: 1rem;
  --shadow: 0 16px 40px rgba(0,0,0,.12);
  --soft-border: rgba(0,0,0,.08);
}

.group-page {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(120deg, #f0f3f5 0%, #dfe9f3 100%);
  overflow-x: hidden;
}

/* ANIMATIONS */
@keyframes group-fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes group-fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes group-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes pop {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

/* ===== TOP FIXED BAR ===== */
.group-top-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffffee;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: group-fadeInDown 0.4s ease;
  border-bottom: 1px solid var(--soft-border);
  overflow: visible;
}
.group-top-bar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: linear-gradient(180deg, #4668f2, #3b57d1);
  border-radius: 0 0 10px 0;
}
.group-top-bar::after {
  content:"";
  position:absolute;
  top:-70px; right:-70px;
  width: 200px; height:200px;
  background: radial-gradient(rgba(70,104,242,.14), transparent 60%);
  border-radius: 50%;
  pointer-events:none;
}
.group-top-bar h1 {
  margin: 0;
  padding-left: 1rem;
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #2f2f2f;
  position: relative;
  z-index: 1;
  font-weight: 900;
}
.group-top-bar h1 i {
  color: #4668f2;
  animation: group-pulse 2s infinite;
}

.group-top-bar .group-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 0.25rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===== MODERN BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: none;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s, box-shadow .18s, filter .18s, background .18s;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  padding: .85rem 1.05rem;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(70,104,242,.26);
  font-size: .92rem;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(70,104,242,.30);
  filter: brightness(1.02);
}

.btn-soft {
  padding: .8rem 1rem;
  border-radius: 14px;
  background: rgba(70,104,242,.10);
  border: 1px solid rgba(70,104,242,.22);
  color: var(--blue);
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  font-size: .9rem;
}
.btn-soft:hover {
  transform: translateY(-1px);
  background: rgba(70,104,242,.14);
  box-shadow: 0 14px 22px rgba(0,0,0,.08);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(70,104,242,.22);
}
.btn-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(70,104,242,.26);
  filter: brightness(1.03);
}

/* Keep original class names but give them modern look */
.group-create-btn,
.group-leave-btn {
  padding: .85rem 1.05rem;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(70,104,242,.26);
  transition: transform .18s, box-shadow .18s, filter .18s, background .18s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.group-create-btn:hover,
.group-leave-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(70,104,242,.30);
  filter: brightness(1.02);
}

/* ===== SEARCH ===== */
.group-search-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255,255,255,.7);
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  min-width: 260px;
}
.group-search-container i.fa-search { color: var(--blue); }
.group-search-container input[type="text"] {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.95rem;
  color: #111827;
  font-weight: 700;
  min-width: 140px;
}
.group-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  animation: group-fadeIn 0.25s ease;
  z-index: 10000;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
}
.group-search-results.active { display: block; }

.group-search-results::-webkit-scrollbar { width: 8px; }
.group-search-results::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.group-search-results::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }
.group-search-results::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

.group-search-result-item {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.18s;
  gap: .75rem;
}
.group-search-result-item:last-child { border-bottom: none; }
.group-search-result-item:hover { background: rgba(70,104,242,.06); }
.group-search-result-item span {
  font-size: 0.95rem;
  font-weight: 900;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-search-result-item button {
  padding: .55rem .8rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform .18s, box-shadow .18s, filter .18s;
  box-shadow: 0 10px 18px rgba(70,104,242,.22);
  display:inline-flex;
  align-items:center;
  gap:.45rem;
}
.group-search-result-item button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 24px rgba(70,104,242,.26);
}

/* ===== MODALS ===== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20000;
  padding: 1rem;
}
.backdrop.active { display: flex; }

.modal {
  background: rgba(255,255,255,.92);
  border-radius: calc(var(--radius)*1.15);
  box-shadow: var(--shadow);
  padding: 1.7rem 1.9rem;
  animation: pop .28s forwards;
  position: relative;
  width: clamp(320px, 90vw, 520px);
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
  max-height: 90vh;
  overflow-y: auto;
}
.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(70,104,242,.08);
  border: 1px solid rgba(70,104,242,.18);
  color: var(--blue);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .18s, transform .18s;
  z-index: 10;
  font-size: 1.15rem;
}
.close-btn i { pointer-events: none; }
.close-btn:hover {
  background: rgba(70,104,242,.12);
  transform: scale(1.03);
}
.card-header {
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.05rem;
  position: relative;
}
.form-group label {
  font-weight: 900;
  font-size: .9rem;
  color: #374151;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem .95rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: .95rem;
  font-size: .96rem;
  width: 100%;
  transition: border .2s, box-shadow .2s, transform .2s;
  background: rgba(255,255,255,.72);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(70,104,242,.7);
  box-shadow: 0 0 0 3px rgba(70,104,242,.18);
  transform: translateY(-1px);
}

.btn-blue {
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  border-radius: 1rem;
  padding: .9rem 1.2rem;
  font-weight: 900;
  width: 100%;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(70,104,242,.26);
  transition: transform .18s, box-shadow .18s, filter .18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: 0.95rem;
}
.btn-blue:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(70,104,242,.30);
}

.btn-outline {
  background: rgba(255,255,255,.85);
  color: #111;
  border: 2px solid var(--blue);
  border-radius: 1rem;
  padding: .9rem 1.2rem;
  font-weight: 900;
  cursor: pointer;
  transition: .18s;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

.small-note {
  font-size: .78rem;
  color: #777;
  margin-top: .25rem;
}

/* IMPORTANT: no red error box in Update Group section anymore (per your request).
   Errors will show only via flash. Keeping class used only for Create Group errors. */
.error-messages {
  background: #ffe6e6;
  border: 1px solid #f5c2c2;
  color: #c02c2c;
  padding: 0.75rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 800;
}

/* Floating Flash Messages */
#flash-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: min(720px, calc(100vw - 2rem));
}
.flash-message {
  background-color: #4668f2;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(70,104,242,.26);
  opacity: 1;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 800;
}
.flash-message .fa { font-size: 1.1rem; opacity: .95; }

.group-content-area { padding: 1.5rem; }

/* ===== MY GROUPS LIST ===== */
.my-groups-wrap { margin-bottom: 2rem; background: transparent; }
.my-groups-title {
  font-size: 1.15rem;
  margin: 0 0 1rem 0;
  display:flex;
  align-items:center;
  gap:.55rem;
  color: var(--blue);
  font-weight: 900;
}
.my-groups-grid { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.my-group-chip {
  background: rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  text-decoration: none;
  color: #111827;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  border: 1px solid rgba(0,0,0,.10);
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-weight: 900;
}
.my-group-chip i { color: var(--blue); }
.my-group-chip:hover {
  background: rgba(255,255,255,.95);
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(0,0,0,.08);
  border-color: rgba(70,104,242,.22);
}

/* ===== GROUP DASHBOARD ===== */
.group-dashboard {
  margin: 1.25rem 0 2rem 0;
  padding: 1.6rem;
  background: #ffffffdd;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  animation: group-fadeIn 0.6s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--soft-border);
}
.group-dashboard::before {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(rgba(70,104,242,0.14), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.group-dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.group-dashboard-header h2 {
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: #111827;
  font-weight: 900;
}
.group-dashboard-header h2 i {
  color: #4668f2;
  animation: group-pulse 2s infinite;
}
.group-dashboard-header p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.45;
  font-weight: 700;
  overflow-wrap:anywhere;
  word-break:break-word;

}

/* SUMMARY CARDS */
.group-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.group-summary-card {
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
  padding: 1.4rem 1rem;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
  color: #333;
  border: 1px solid rgba(0,0,0,.06);
}
.group-summary-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  transform: translate(20%, -20%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(rgba(255,255,255,.55), transparent 60%);
}
.group-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0,0,0,0.10);
}
.group-summary-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.55rem 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #111827;
  font-weight: 900;
}
.group-summary-card h3 i { color: var(--blue); }
.group-summary-card p {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 0.25rem 0;
}
.group-summary-subtext {
  font-size: 0.85rem;
  color: #666;
  font-weight: 700;
}
.group-summary-card:nth-child(1) { background: linear-gradient(135deg, #b9e9ff 0%, #e2f3ff 100%); }
.group-summary-card:nth-child(2) { background: linear-gradient(135deg, #ffd8bf 0%, #ffece0 100%); }
.group-summary-card:nth-child(3) { background: linear-gradient(135deg, #d2ffd2 0%, #e7ffe7 100%); }
.group-summary-card:nth-child(4) { background: linear-gradient(135deg, #fceaa5 0%, #fef2d4 100%); }

/* ===== PANELS ===== */
.group-members-panel,
.group-recent-activity,
.group-edit-panel {
  background: #ffffffdd;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  animation: group-fadeIn 0.35s ease;
  border: 1px solid var(--soft-border);
}
.group-members-panel::before,
.group-recent-activity::before,
.group-edit-panel::before {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(rgba(70,104,242,0.10), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.group-members-panel h4,
.group-recent-activity h4,
.group-edit-panel h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  margin: 0 0 1rem 0;
  color: var(--blue);
  font-weight: 900;
  position: relative;
  z-index: 1;
}

/* MEMBERS LIST */
.group-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 320px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  padding-right: .25rem;
}
.group-member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.65);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  gap: 1rem;
}
.group-member-item:hover {
  background: rgba(255,255,255,.78);
  transform: translateY(-1px);
  border-color: rgba(70,104,242,.18);
  box-shadow: 0 14px 22px rgba(0,0,0,.08);
}

.group-member-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dde1f8;
}
.group-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.group-member-content { flex: 1; display: flex; align-items: center; min-width: 0; }
.group-member-details { flex: 1; min-width: 0; }
.group-member-details p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.group-member-details .sub {
  display:block;
  margin-top:.25rem;
  font-size:.82rem;
  color:#6b7280;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-member-actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.group-member-actions form { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; }

.group-edit-role-select {
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  background: rgba(255,255,255,.75);
  font-weight: 800;
  outline: none;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.group-edit-role-select:focus {
  border-color: rgba(70,104,242,.6);
  box-shadow: 0 0 0 3px rgba(70,104,242,.18);
  transform: translateY(-1px);
}

.group-kick-btn,
.group-ban-btn,
.group-update-role-btn,
.group-unban-btn,
.activity-view-btn {
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  transition: transform .18s, box-shadow .18s, filter .18s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(70,104,242,.18);
}
.group-kick-btn:hover,
.group-ban-btn:hover,
.group-update-role-btn:hover,
.group-unban-btn:hover,
.activity-view-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 22px rgba(70,104,242,.22);
}

/* RECENT ACTIVITY ITEMS */
.group-activity-item {
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.85rem;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}
.group-activity-item:hover {
  background: rgba(255,255,255,.78);
  transform: translateY(-1px);
  border-color: rgba(70,104,242,.18);
  box-shadow: 0 14px 22px rgba(0,0,0,.08);
}
.activity-details p {
  margin: 0;
  margin-bottom: 0.25rem;
  font-size: 0.86rem;
  color: #374151;
  font-weight: 800;
}
.activity-details p:last-child { margin-bottom: 0; }
.activity-details strong { color: #111827; }

/* ===== EDIT GROUP (nice layout) ===== */
.edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 840px) {
  .edit-grid { grid-template-columns: 1fr; }
}
.edit-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.edit-field label {
  font-weight: 900;
  color: #374151;
  font-size: .9rem;
}
.edit-field input,
.edit-field textarea {
  padding: .75rem .95rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  font-size: .95rem;
  font-weight: 800;
  transition: border .18s, box-shadow .18s, transform .18s;
  outline: none;
}
.edit-field textarea { resize: vertical; min-height: 92px; }
.edit-field input:focus,
.edit-field textarea:focus {
  border-color: rgba(70,104,242,.65);
  box-shadow: 0 0 0 3px rgba(70,104,242,.18);
  transform: translateY(-1px);
}
.edit-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .9rem;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}
.edit-actions .update-btn {
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(70,104,242,.22);
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  transition: transform .18s, filter .18s, box-shadow .18s;
}
.edit-actions .update-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 30px rgba(70,104,242,.26);
}

.danger-btn {
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #e74c3c, #c0392b);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(231,76,60,.18);
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  transition: transform .18s, filter .18s, box-shadow .18s;
}
.danger-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 30px rgba(231,76,60,.22);
}

/* DELETE CONFIRM MODAL */
.danger-modal-title { color: #c0392b; }
.danger-hint {
  margin: 0 0 1rem 0;
  color: #444;
  line-height: 1.45;
  font-weight: 800;
}
.danger-actions {
  display:flex;
  gap:.75rem;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.danger-confirm {
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #e74c3c, #c0392b);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 900;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  box-shadow: 0 12px 24px rgba(231,76,60,.18);
  transition: transform .18s, filter .18s, box-shadow .18s;
}
.danger-confirm:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 30px rgba(231,76,60,.22);
}

/* CHARTS */
.group-charts-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .group-charts-container { grid-template-columns: 1fr 1fr; }
}
.group-chart-panel {
  background: #ffffffdd;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  animation: group-fadeIn 0.4s ease;
  border: 1px solid var(--soft-border);
}
.group-chart-panel::before {
  content: "";
  position: absolute;
  bottom: -30px; left: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(rgba(70,104,242,0.10), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.group-chart-panel h4 {
  margin: 0 0 .75rem 0;
  display:flex;
  align-items:center;
  gap:.5rem;
  color: var(--blue);
  font-weight: 900;
  position: relative;
  z-index: 1;
}
.group-chart-panel h4 i { color: var(--blue); }
.group-chart-container {
  width: 100%;
  height: 280px;
  position: relative;
  z-index: 1;
}
.group-chart { width: 100% !important; height: 100% !important; }
.group-chart-info {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.high-tasks-scroll {
max-height: 320px;      
overflow-y: auto;
padding-right: 6px;     
    }


.high-tasks-scroll::-webkit-scrollbar { width: 8px; }
.high-tasks-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.high-tasks-scroll::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }
.high-tasks-scroll::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* EXTRAS */
.group-extras-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  .group-extras-container { grid-template-columns: repeat(3, 1fr); }
}
.group-extra-panel {
  background: #ffffffdd;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  padding: 1rem 1.25rem;
  position: relative;
  overflow: hidden;
  animation: group-fadeIn 0.4s ease;
  border: 1px solid var(--soft-border);
}
.group-extra-panel::before {
  content: "";
  position: absolute;
  top: -30px; left: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(rgba(70,104,242,0.10), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.group-extra-panel h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem 0;
  font-size: 1.05rem;
  color: var(--blue);
  font-weight: 900;
  position: relative;
  z-index: 1;
}
.group-extra-panel h4 i { color: var(--blue); }

.pill-box {
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
}
.pill-box strong { color: #111827; }

/* "Name:" label style */
.kv-line {
  display: flex;
  gap: .45rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.kv-key { color: #6b7280; font-weight: 900; }
.kv-val { color: #111827; font-weight: 900; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .group-top-bar { gap: 1rem; }
  .group-search-container { min-width: 220px; width: 100%; }
  .group-top-bar .group-bar-actions { width: 100%; justify-content: flex-start; }
}

/* Groups edit styles */
:root{
  --blue:#4668f2;
  --blue-dark:#2745d4;
  --shadow:0 16px 40px rgba(0,0,0,.12);
}

.group-edit-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(120deg, #f0f3f5 0%, #dfe9f3 100%);
  padding: 1.25rem;
}

.group-edit-card{
  width: min(520px, 100%);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.75rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.group-edit-card::before{
  content:"";
  position:absolute;
  top:-60px; right:-60px;
  width: 180px; height: 180px;
  background: radial-gradient(rgba(70,104,242,.18), transparent 60%);
  border-radius: 50%;
  pointer-events:none;
}

.group-edit-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.group-edit-title{
  margin:0;
  font-size: 1.6rem;
  font-weight: 900;
  color:#111827;
  display:flex;
  align-items:center;
  gap:.55rem;
  line-height:1.15;
}

.group-edit-title i{
  color: var(--blue);
}

.group-edit-subtitle{
  margin: .35rem 0 0 0;
  color:#6b7280;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
}

.group-edit-close{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(70,104,242,.08);
  border: 1px solid rgba(70,104,242,.18);
  color: var(--blue);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .18s, background .18s;
  text-decoration:none;
  flex-shrink:0;
}

.group-edit-close:hover{
  transform: scale(1.04);
  background: rgba(70,104,242,.12);
}

.group-edit-form{
  position: relative;
  z-index: 1;
  display:flex;
  flex-direction:column;
  gap: 1rem;
}

.group-edit-field label{
  display:block;
  font-weight: 900;
  font-size: .9rem;
  color:#374151;
  margin-bottom: .35rem;
}

.group-edit-input{
  width:100%;
  padding: .8rem .95rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  font-size: .96rem;
  font-weight: 700;
  transition: border .2s, box-shadow .2s, transform .2s;
}

.group-edit-input:focus{
  outline:none;
  border-color: rgba(70,104,242,.7);
  box-shadow: 0 0 0 3px rgba(70,104,242,.18);
  transform: translateY(-1px);
}

.group-edit-hint{
  margin-top: .35rem;
  color:#6b7280;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.35;
}

.group-edit-actions{
  display:flex;
  flex-direction:column;
  gap: .75rem;
  margin-top: .25rem;
}

.group-edit-submit{
  width:100%;
  padding: .95rem 1.1rem;
  border:none;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color:#fff;
  font-weight: 900;
  font-size: .96rem;
  cursor:pointer;
  box-shadow: 0 12px 24px rgba(70,104,242,.26);
  transition: transform .18s, box-shadow .18s, filter .18s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .55rem;
}

.group-edit-submit:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 30px rgba(70,104,242,.30);
}

.group-edit-back{
  width:100%;
  text-align:center;
  padding: .8rem 1.05rem;
  border-radius: 14px;
  border: 2px solid rgba(70,104,242,.85);
  background: rgba(255,255,255,.8);
  color:#111827;
  font-weight: 900;
  text-decoration:none;
  transition: background .18s, transform .18s, color .18s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .5rem;
}

.group-edit-back:hover{
  background: rgba(70,104,242,.08);
  transform: translateY(-1px);
}
:root {
  --blue: #4668f2;
  --blue-dark: #2745d4;
  --radius: 1rem;
  --shadow: 0 16px 40px rgba(0,0,0,.12);
  --soft-border: rgba(0,0,0,.08);
}

/* ===== SIDEBAR ===== */
.tasks-sidebar {
  width: 280px;
  background: #ffffffdd;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
  height: calc(100vh - 2rem);
  overflow: hidden;
  border: 1px solid var(--soft-border);
}
.sidebar-header {
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--blue);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--soft-border);
}
.sidebar-header .left {
  display:flex;
  align-items:center;
  gap:.55rem;
}
.sidebar-header i { color: var(--blue); }

.sidebar-count {
  background: rgba(70,104,242,.10);
  border: 1px solid rgba(70,104,242,.22);
  color: var(--blue);
  font-weight: 900;
  border-radius: 999px;
  padding: .28rem .6rem;
  font-size: .8rem;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
}

.categories-list {
  flex: 1;
  padding-top: 0.75rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.categories-list::-webkit-scrollbar { width: 8px; }
.categories-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.categories-list::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }
.categories-list::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

.category-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,.55);
  border-radius: 12px;
  padding: 0.6rem 0.65rem;
  margin-bottom: 0.55rem;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color .18s;
  border: 1px solid var(--soft-border);
  box-shadow: 0 8px 16px rgba(0,0,0,.05);
}
.category-item:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.7);
  border-color: rgba(70,104,242,.22);
  box-shadow: 0 12px 20px rgba(0,0,0,.08);
}
.category-color {
  width: 14px; height: 14px; border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.10);
  flex: 0 0 auto;
}
.category-name {
  font-size: 0.93rem;
  flex: 1;
  cursor: pointer;
  color: #2f2f2f;
  font-weight: 900;
  line-height: 1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.category-actions { 
  display: flex; 
  flex:0 0 auto;
  gap: 0.45rem; 
}

/* ===== BUTTON SYSTEM ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: none;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s, box-shadow .18s, filter .18s, background .18s;
  user-select: none;
  white-space: nowrap;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(70,104,242,.22);
}
.btn-icon:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(70,104,242,.26);
}
.btn-danger {
  background: linear-gradient(180deg, #dc3545, #b02a37) !important;
  box-shadow: 0 8px 18px rgba(220,53,69,.20) !important;
}

.btn-primary {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 12px 24px rgba(70,104,242,.26);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(70,104,242,.30);
  filter: brightness(1.02);
}

.btn-soft {
  width: 100%;
  padding: .78rem 1rem;
  border-radius: 14px;
  background: rgba(70,104,242,.10);
  border: 1px solid rgba(70,104,242,.22);
  color: var(--blue);
  font-size: .9rem;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}
.btn-soft:hover {
  transform: translateY(-1px);
  background: rgba(70,104,242,.14);
  box-shadow: 0 14px 22px rgba(0,0,0,.08);
}

/* ===== MAIN ===== */
.tasks-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.tasks-filter-bar {
  background: #ffffffdd;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap; /* ✅ keep in one row */
  border: 1px solid var(--soft-border);
  position: relative;
  overflow: hidden;
}
.tasks-filter-bar::before {
  content:"";
  position:absolute;
  top:-55px; right:-55px;
  width: 160px; height:160px;
  background: radial-gradient(rgba(70,104,242,.18), transparent 60%);
  border-radius: 50%;
  pointer-events:none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap; /* ✅ keep in one row */
  min-width: 0;      /* ✅ allow shrinking */
  position: relative;
  z-index: 1;
}
.filter-group label { font-weight: 900; color: #2f2f2f; display:flex; align-items:center; gap:.45rem;white-space: nowrap;  }
.filter-group label i { color: var(--blue); }

.filter-group select {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 12px;
  font-size: 0.92rem;
  outline: none;
  background: rgba(255,255,255,.7);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.filter-group select:focus {
  border-color: rgba(70,104,242,.65);
  box-shadow: 0 0 0 3px rgba(70,104,242,.18);
  transform: translateY(-1px);
}

.role-info {
  font-size: 0.86rem;
  color: #555;
  margin-left: 0.2rem;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  white-space: nowrap;
}
.role-info i { color: var(--blue); }

/* ✅ NEW: Viewing + Role stacked */
.viewing-stack{
  display:flex;
  flex-direction:column;
  gap: .15rem;
  line-height: 1.1;
  margin-left: .2rem;
}
.viewing-stack .role-info{
  margin-left: 0;
}

.tasks-search-form {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-left: .15rem;
  min-width: 0;
}
.tasks-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  transition: border-color .18s, box-shadow .18s, transform .18s;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}
.tasks-search-wrap i { color: var(--blue); }
.tasks-search-wrap:focus-within {
  border-color: rgba(70,104,242,.65);
  box-shadow: 0 0 0 3px rgba(70,104,242,.18);
  transform: translateY(-1px);
}
.tasks-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.90rem;
  font-weight: 850;
  color: #111827;
  width: clamp(150px, 18vw, 230px); /* ✅ keeps button in same row */
  min-width: 0;
}
.tasks-search-input::placeholder { color: #9aa3af; font-weight: 800; }

.btn-new-task {
  padding: .85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 12px 24px rgba(70,104,242,.26);
  position: relative;
  z-index: 1;
  border: none;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s, box-shadow .18s, filter .18s, background .18s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
}
.btn-new-task:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(70,104,242,.30);
  filter: brightness(1.02);
}

/* ===== TASKS LIST ===== */
.tasks-list {
  background: #ffffffdd;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--soft-border);
  position: relative;
  overflow: hidden;
}
.tasks-list::before {
  content:"";
  position:absolute;
  bottom:-70px; left:-70px;
  width: 200px; height:200px;
  background: radial-gradient(rgba(70,104,242,.14), transparent 60%);
  border-radius: 50%;
  pointer-events:none;
}

.task-item {
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}
.task-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.task-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.task-title {
  flex: 1;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 900;
  color: #111827;
  line-height: 1.25;
}

.task-name-line {
  display:flex;
  align-items:flex-start;
  gap:.55rem;
  margin: 0;
}
.task-name-line i {
  color: var(--blue);
  font-size: 1.05rem;
  margin-top: .12rem;
  flex: 0 0 auto;
}
.task-name-line .lbl {
  font-weight: 900;
  color: #111827;
  margin-right: .35rem;
  white-space: nowrap;
}
.task-name-line .val {
  color: #111827;
  font-weight: 900;
  word-break: break-word;
  min-width: 0;
}

.task-desc {
  font-size: 0.9rem;
  color: #374151;
  margin: 0.25rem 0 0.55rem 0;
  line-height: 1.45;
}
.task-desc .lbl {
  font-weight: 900;
  color: #374151;
  margin-right: .35rem;
  white-space: nowrap;
}
.task-desc .val {
  color: #4b5563;
  font-weight: 650;
  word-break: break-word;
}

.task-meta {
  font-size: 0.78rem;
  color: #8b95a1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  white-space: nowrap;
}
.meta-item .k {
  font-weight: 900;
  color: #6b7280;
}
.meta-item .v {
  font-weight: 700;
  color: #8b95a1;
}

.task-category-label {
  color: #fff;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 900;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
}
.task-category-label i { color: #fff; }

.task-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin-top: .05rem;
}

.tasks-pagination {
  text-align: center;
  margin: 1rem 0;
}

/* ===== MODALS ===== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  padding: 1rem;
}
.backdrop.active { display: flex; }

@keyframes pop {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.modal {
  background: rgba(255,255,255,.92);
  border-radius: calc(var(--radius)*1.15);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
  animation: pop .28s forwards;
  position: relative;
  width: clamp(320px, 90vw, 420px);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
}
.modal-task { padding: 1.4rem 1.6rem; }

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(70,104,242,.08);
  border: 1px solid rgba(70,104,242,.18);
  color: var(--blue);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .18s, transform .18s;
  z-index: 10;
  font-size: 1.15rem;
}
.close-btn i { pointer-events: none; }
.close-btn:hover {
  background: rgba(70,104,242,.12);
  transform: scale(1.03);
}

.card-header {
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.card-header i { color: var(--blue); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 0.95rem;
  position: relative;
}
.form-group label {
  font-weight: 900;
  font-size: .88rem;
  color: #374151;
  display:flex;
  align-items:center;
  gap:.45rem;
}
.form-group label i { color: var(--blue); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: .66rem .9rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: .95rem;
  font-size: .92rem;
  width: 100%;
  transition: border .2s, box-shadow .2s, transform .2s;
  background: rgba(255,255,255,.72);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(70,104,242,.7);
  box-shadow: 0 0 0 3px rgba(70,104,242,.18);
  transform: translateY(-1px);
}

.btn-blue {
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  border-radius: 1rem;
  padding: .9rem 1.2rem;
  font-weight: 900;
  width: 100%;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(70,104,242,.26);
  transition: transform .18s, box-shadow .18s, filter .18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: 0.95rem;
}
.btn-blue:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(70,104,242,.30);
}

.assign-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.assign-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 1rem;
  background: rgba(70,104,242,.06);
  border: 1px solid rgba(70,104,242,.18);
  transition: background 0.2s, transform .18s;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 800;
}
.assign-option:hover {
  background: rgba(70,104,242,.10);
  transform: translateY(-1px);
}
.assign-option input { width: auto; margin: 0; }

.color-picker-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
  margin-top: 0.25rem;
}
.color-picker-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ddd;
  background: #66ccff;
  transition: transform 0.2s;
}
.color-picker-circle:hover { transform: scale(1.05); }
.color-picker-input {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

#flash-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: min(720px, calc(100vw - 2rem));
}
.flash-message {
  background-color: #4668f2;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(70,104,242,.26);
  opacity: 1;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  border: 1px solid rgba(255,255,255,.22);
}
.flash-message .fa { font-size: 1.1rem; opacity: .95; }

/* Responsive */
@media (max-width: 980px) {
  .tasks-sidebar {
    position: static;
    height: auto;
    width: 100%;
  }
  .tasks-main { width: 100%; }
  .task-title-row { gap: .6rem; }

  .tasks-filter-bar { flex-wrap: wrap; }
  .filter-group { flex-wrap: wrap; }

  .tasks-search-input { width: 100%; min-width: 180px; }
  .tasks-search-form { width: 100%; }
  .tasks-search-wrap { width: 100%; }
}
:root{
  --blue:#4668f2;
  --blue-dark:#2745d4;
  --shadow: 0 10px 24px rgba(0,0,0,.10);
  --border: rgba(0,0,0,.10);
  --muted:#6b7280;
}

#flash-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: min(720px, calc(100vw - 2rem));
}
.flash-message {
  background-color: #4668f2;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(70,104,242,.26);
  opacity: 1;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  border: 1px solid rgba(255,255,255,.22);
}
.flash-message .fa { font-size: 1.1rem; opacity: .95; }

.kanban-header {
  background: #ffffffdd;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.kanban-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.kanban-header h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.kanban-header h1 i { color: var(--blue); font-size: 1.3rem; }
.kanban-filter-form { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.kanban-filter-form label { font-weight: 900; margin-right: 0.5rem; font-size: 0.9rem; color: #333; }
.kanban-filter-form select {
  padding: 0.55rem 0.75rem;
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
  font-weight: 800;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.kanban-filter-form select:focus {
  border-color: rgba(70,104,242,.55);
  box-shadow: 0 0 0 3px rgba(70,104,242,.18);
  transform: translateY(-1px);
}
.viewing-text { font-size: 0.9rem; color: #555; text-align: center; margin: 0; font-weight: 700; }

.kanban-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.kanban-column {
  background: #ffffffcc;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 60vh;
  border: 1px solid var(--border);
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-width: 0;
}
.kanban-column h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
}
.kanban-column h2 i { color: var(--blue); }

/* ✅ Bigger drop target */
.kanban-tasks {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 52vh;
  padding: 0.25rem;
  border-radius: 12px;
  transition: box-shadow .18s, background-color .18s, outline-color .18s;
}

.kanban-task {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
  padding: 0.85rem;
  margin-bottom: 1rem;
  transition: transform 0.18s, box-shadow 0.18s, border-color .18s;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,.08);
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  position: relative; /* (bitno za tooltip) */
}
.kanban-task:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0,0,0,0.10);
  border-color: rgba(70,104,242,.18);
}
.kanban-task:active { cursor: grabbing; }

/* ✅ LOCKED styling */
.kanban-task.kb-locked {
  cursor: not-allowed;
  opacity: 0.85;
}

/* ✅ OVO JE TEXT NA HOVER (tooltip) */
.kanban-task.kb-locked::after{
  content: "You don't have permission to update this task";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: rgba(17,24,39,.96);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 9999;
}
.kanban-task.kb-locked::before{
  content:"";
  position:absolute;
  left:50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(17,24,39,.96);
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 9999;
}
.kanban-task.kb-locked:hover::after{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.kanban-task.kb-locked:hover::before{ opacity: 1; }

.kanban-task-title {
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 0.6rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  text-align: center;
}

.kanban-task-info {
  font-size: 0.78rem;
  color: #374151;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}
.kanban-task-info .label { color:#111827; font-weight: 900; }
.kanban-task-info .sub   { color: #6b7280; font-weight: 800; }

.kanban-task-category {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #999;
  font-weight: 800;
}
.kanban-task-category-label {
  display: inline-block;
  background: #ccc;
  color: #fff;
  border-radius: 8px;
  padding: 0.18rem 0.5rem;
  font-size: 0.75rem;
  margin-left: 0.3rem;
  font-weight: 900;
  max-width: 100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  vertical-align: middle;
}

.kb-ghost { opacity: .45; }
.kb-chosen { box-shadow: 0 18px 40px rgba(0,0,0,0.18); }
.kb-drag { cursor: grabbing !important; }

.kb-drop-active{
  background: rgba(70,104,242,.08);
  outline: 2px dashed rgba(70,104,242,.55);
  outline-offset: 3px;
  box-shadow: 0 10px 24px rgba(70,104,242,.18);
}
.kb-col-active{
  border-color: rgba(70,104,242,.35);
  box-shadow: 0 12px 28px rgba(70,104,242,.16);
}

@media (max-width: 1200px) { .kanban-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .kanban-board { grid-template-columns: 1fr; } }
:root {
  --blue: #4668f2;
  --blue-dark: #2745d4;
  --bg1: #f0f3f5;
  --bg2: #dfe9f3;
  --radius: 1.25rem;
  --shadow: 0 16px 40px rgba(0,0,0,.12);
  --shadow-soft: 0 10px 24px rgba(0,0,0,.10);
  --border: 1px solid rgba(255,255,255,.55);
}

.auth-page {
  min-height: 100vh;
  background: linear-gradient(120deg, var(--bg1) 0%, var(--bg2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
  position: relative;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.auth-page::before {
  top: -180px;
  left: -180px;
  background: radial-gradient(circle at 30% 30%, rgba(70,104,242,0.35), rgba(70,104,242,0.02) 60%);
}
.auth-page::after {
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle at 70% 70%, rgba(70,104,242,0.25), rgba(70,104,242,0.02) 62%);
}

@keyframes auth-fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes auth-pop {
  0% { opacity: 0; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes auth-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

#flash-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  width: min(680px, calc(100vw - 2rem));
}
.flash-message {
  background: rgba(70,104,242,0.95);
  color: #fff;
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px rgba(70,104,242,.25);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.25);
  animation: auth-pop .25s ease;
}
.flash-message i {
  font-size: 1.15rem;
  opacity: .95;
}

.auth-wrapper {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
  z-index: 1;
}
@media (max-width: 900px) {
  .auth-wrapper { grid-template-columns: 1fr; }
}

.auth-brand {
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(14px);
  border-radius: calc(var(--radius) * 1.15);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  animation: auth-fadeInUp .35s ease;
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 20% 10%, rgba(70,104,242,0.25), transparent 50%),
              radial-gradient(circle at 80% 90%, rgba(70,104,242,0.18), transparent 55%);
  pointer-events: none;
}
.auth-brand-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(70,104,242,0.18);
  color: #2f2f2f;
  width: fit-content;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  font-size: 0.9rem;
  font-weight: 600;
}
.brand-badge i {
  color: var(--blue);
  animation: auth-pulse 2s infinite;
}

.brand-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.3vw, 2.4rem);
  line-height: 1.15;
  color: #1f2937;
  letter-spacing: -0.02em;
}
.brand-title span { color: var(--blue); }

.brand-subtitle {
  margin: .65rem 0 0 0;
  color: #4b5563;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 46ch;
}

.brand-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
@media (max-width: 520px) {
  .brand-features { grid-template-columns: 1fr; }
}

.feature {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 1rem;
  padding: .9rem 1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,0,0,.09);
}
.feature i {
  color: var(--blue);
  font-size: 1.05rem;
  margin-top: .1rem;
}
.feature h4 {
  margin: 0;
  font-size: .95rem;
  color: #111827;
}
.feature p {
  margin: .25rem 0 0 0;
  font-size: .85rem;
  color: #6b7280;
  line-height: 1.35;
}

.auth-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  border-radius: calc(var(--radius) * 1.15);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.6rem 2rem;
  animation: auth-fadeInUp .45s ease;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(rgba(70,104,242,0.18), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.auth-header h1 {
  margin: 0;
  font-size: 1.55rem;
  color: #111827;
  display: flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: -0.01em;
}
.auth-header h1 i { color: var(--blue); }
.auth-header .hint {
  font-size: .85rem;
  color: #6b7280;
  text-align: right;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.field label {
  font-weight: 700;
  font-size: .9rem;
  color: #374151;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 1rem;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 6px 14px rgba(0,0,0,.05);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.input-wrap:focus-within {
  border-color: rgba(70,104,242,0.85);
  box-shadow: 0 0 0 3px rgba(70,104,242,0.18), 0 10px 18px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.input-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(70,104,242,0.06);
  border-right: 1px solid rgba(0,0,0,0.06);
  border-radius: 1rem 0 0 1rem;
  flex-shrink: 0;
}
.input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: .85rem .9rem;
  font-size: 1rem;
  color: #111827;
}
.input-wrap input::placeholder { color: #9ca3af; }

.toggle-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #9ca3af;
  font-size: 1.05rem;
  transition: background .2s, color .2s;
  z-index: 2;
  border: none;
  background: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.toggle-eye:hover {
  background: rgba(70,104,242,0.10);
  color: var(--blue);
}
.toggle-eye i { pointer-events: none; }

.auth-actions {
  margin-top: .4rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .95rem 1.15rem;
  border: none;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(70,104,242,.26);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(70,104,242,.30);
  filter: brightness(1.02);
}
.btn-primary:active {
  transform: translateY(0px);
  box-shadow: 0 10px 20px rgba(70,104,242,.24);
}

.auth-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  color: #6b7280;
  font-size: .92rem;
}
.auth-footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

.micro {
  font-size: .82rem;
  color: #6b7280;
  margin-top: .15rem;
}

body, input, button, select, textarea {
  font-family: 'Poppins', sans-serif;
}

/* ===== COOKIE CONSENT (LOGIN ONLY) ===== */
@keyframes cookie-slideInRight {
  from { opacity: 0; transform: translateX(24px) translateY(6px); }
  to   { opacity: 1; transform: translateX(0) translateY(0); }
}
@keyframes cookie-slideOutRight {
  from { opacity: 1; transform: translateX(0) translateY(0); }
  to   { opacity: 0; transform: translateX(28px) translateY(6px); }
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  z-index: 1000000;
  overflow: hidden;
  opacity: 0;
  transform: translateX(24px) translateY(6px);
  pointer-events: none;
}
.cookie-consent.active {
  opacity: 1;
  transform: translateX(0) translateY(0);
  pointer-events: auto;
  animation: cookie-slideInRight .35s cubic-bezier(.2,.85,.25,1) both;
}
.cookie-consent.closing {
  animation: cookie-slideOutRight .25s ease both;
  pointer-events: none;
}

.cookie-consent::before {
  content: "";
  position: absolute;
  top: -34px;
  right: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(rgba(70,104,242,0.22), transparent 60%);
  pointer-events: none;
}

.cookie-inner {
  position: relative;
  padding: 14px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cookie-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(70,104,242,0.10);
  border: 1px solid rgba(70,104,242,0.18);
  color: var(--blue);
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  overflow: hidden;
}
.cookie-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  opacity: .95;
}
.cookie-icon svg path { fill: currentColor; }

.cookie-text h3 {
  margin: 0;
  font-size: .98rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}
.cookie-text p {
  margin: 4px 0 0 0;
  font-size: .86rem;
  line-height: 1.35;
  color: #4b5563;
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-btn {
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: .7rem .9rem;
  font-weight: 700;
  font-size: .92rem;
  transition: transform .18s, box-shadow .18s, filter .18s, background .18s, border-color .18s, color .18s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  user-select: none;
  white-space: nowrap;
}
.cookie-btn:active { transform: translateY(0); }

.cookie-accept {
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(70,104,242,.26);
}
.cookie-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(70,104,242,.30);
  filter: brightness(1.02);
}

.cookie-decline {
  background: rgba(255,255,255,0.85);
  color: #111827;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
}
.cookie-decline:hover {
  transform: translateY(-1px);
  background: rgba(70,104,242,0.08);
  border-color: rgba(70,104,242,0.18);
  box-shadow: 0 14px 22px rgba(0,0,0,.08);
  color: var(--blue);
}
:root {
  --blue: #4668f2;
  --blue-dark: #2745d4;
  --bg1: #eef2f7;
  --bg2: #dde7f3;
  --radius: 1.25rem;
  --shadow: 0 16px 40px rgba(0,0,0,.12);
  --border: 1px solid rgba(255,255,255,.55);
  --text: #111827;
  --muted: #6b7280;
}

.auth-page {
  min-height: 100vh;
  background: linear-gradient(120deg, var(--bg1) 0%, var(--bg2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
  position: relative;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.auth-page::before {
  top: -200px;
  left: -200px;
  background: radial-gradient(circle at 30% 30%, rgba(70,104,242,0.35), rgba(70,104,242,0.02) 60%);
}
.auth-page::after {
  bottom: -220px;
  right: -220px;
  background: radial-gradient(circle at 70% 70%, rgba(70,104,242,0.25), rgba(70,104,242,0.02) 62%);
}

@keyframes auth-fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes auth-pop {
  0% { opacity: 0; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes auth-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

#flash-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  width: min(680px, calc(100vw - 2rem));
}
.flash-message {
  background: rgba(70,104,242,0.95);
  color: #fff;
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px rgba(70,104,242,.25);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.25);
  animation: auth-pop .25s ease;
}
.flash-message i {
  font-size: 1.15rem;
  opacity: .95;
}

.auth-wrapper {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.2rem;
  align-items: stretch;
  z-index: 1;
}
@media (max-width: 980px) {
  .auth-wrapper { grid-template-columns: 1fr; }
}

.auth-brand {
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(14px);
  border-radius: calc(var(--radius) * 1.15);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  animation: auth-fadeInUp .35s ease;
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 18% 12%, rgba(70,104,242,0.25), transparent 52%),
              radial-gradient(circle at 82% 88%, rgba(70,104,242,0.18), transparent 58%);
  pointer-events: none;
}
.auth-brand-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(70,104,242,0.18);
  color: #2f2f2f;
  width: fit-content;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  font-size: 0.9rem;
  font-weight: 700;
}
.brand-badge i {
  color: var(--blue);
  animation: auth-pulse 2s infinite;
}

.brand-hero {
  margin-top: 1.1rem;
  text-align: center;
}
.brand-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.1vw, 2.15rem);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand-title span { color: var(--blue); }

.brand-subtitle {
  margin: .65rem auto 0 auto;
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 50ch;
}

.brand-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  margin-top: 0.35rem;
}

.feature {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 1rem;
  padding: .9rem 1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,0,0,.09);
}
.feature i {
  color: var(--blue);
  font-size: 1.05rem;
  margin-top: .1rem;
}
.feature h4 {
  margin: 0;
  font-size: .95rem;
  color: var(--text);
}
.feature p {
  margin: .25rem 0 0 0;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.35;
}

.auth-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  border-radius: calc(var(--radius) * 1.15);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 2.15rem 2.25rem 1.65rem 2.25rem;
  animation: auth-fadeInUp .45s ease;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(rgba(70,104,242,0.18), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-header {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.auth-header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: -0.01em;
}
.auth-header h1 i { color: var(--blue); }
.auth-header .hint {
  font-size: .85rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.25;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: .95rem;
  margin-top: .5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .95rem;
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.field label {
  font-weight: 700;
  font-size: .88rem;
  color: #374151;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 0.95rem;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 6px 14px rgba(0,0,0,.05);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  min-height: 44px;
}
.input-wrap:focus-within {
  border-color: rgba(70,104,242,0.85);
  box-shadow: 0 0 0 3px rgba(70,104,242,0.18), 0 10px 18px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.input-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(70,104,242,0.06);
  border-right: 1px solid rgba(0,0,0,0.06);
  border-radius: 0.95rem 0 0 0.95rem;
  flex-shrink: 0;
  font-size: 0.98rem;
}
.input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: .74rem .85rem;
  font-size: .96rem;
  color: var(--text);
}
.input-wrap input::placeholder { color: #9ca3af; }

.toggle-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #9ca3af;
  font-size: 1.05rem;
  transition: background .2s, color .2s;
  z-index: 2;
  border: none;
  background: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.toggle-eye:hover {
  background: rgba(70,104,242,0.10);
  color: var(--blue);
}
.toggle-eye i { pointer-events: none; }

.upload-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: nowrap;
}
@media (max-width: 520px) {
  .upload-row { flex-wrap: wrap; }
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem .9rem;
  border-radius: .95rem;
  background: rgba(70,104,242,0.10);
  border: 1px solid rgba(70,104,242,0.25);
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
  user-select: none;
  white-space: nowrap;
  font-size: .92rem;
}
.btn-upload:hover {
  background: rgba(70,104,242,0.16);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(70,104,242,.12);
}

.file-pill {
  flex: 1;
  min-width: 160px;
  padding: .68rem .85rem;
  border-radius: .95rem;
  border: 1px dashed rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.65);
  color: #374151;
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.micro {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .12rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .86rem 1.05rem;
  border: none;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 800;
  font-size: .98rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(70,104,242,.26);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(70,104,242,.30);
  filter: brightness(1.02);
}
.btn-primary:active {
  transform: translateY(0px);
  box-shadow: 0 10px 20px rgba(70,104,242,.24);
}

.auth-footer {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}
.auth-footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

body, input, button, select, textarea {
  font-family: 'Poppins', sans-serif;
}
/* Originalni dashboard stilovi */
.dashboard-page {
  padding: 2rem;
  background: linear-gradient(120deg, #f0f3f5 0%, #dfe9f3 100%);
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

/* ANIMATIONS */
@keyframes dashboard-fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dashboard-fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dashboard-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Small UI helpers (NE MIJENJA boje kartica, samo detalji) */
.panel-title-blue {
  color: #4668f2;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.panel-title-blue i { color: #4668f2; }

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: rgba(70,104,242,0.10);
  border: 1px solid rgba(70,104,242,0.20);
  color: #3b57d1;
  font-weight: 800;
  font-size: .78rem;
  white-space: nowrap;
}
.pill-badge i { color: #4668f2; font-size: .85rem; }

/* NEW: clean key/value lines for Task Name + Assigned To */
.kv-line{
  display:flex;
  gap:.45rem;
  align-items:baseline;
  flex-wrap:wrap;
  margin:0;
}
.kv-key{
  color:#6b7280;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  white-space:nowrap;
}
.kv-val{
  color:#111827;
  font-weight:900;
}

/* HEADER */
.dashboard-header {
  background: #ffffffee;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  animation: dashboard-fadeInDown 0.4s ease;
  position: relative;
  overflow: hidden;
}
.dashboard-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: linear-gradient(180deg, #4668f2, #3b57d1);
  border-radius: 8px 0 0 8px;
}
.dashboard-header-left {
  margin-left: 1rem;
  position: relative;
}
.dashboard-header-left h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: #2f2f2f;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dashboard-header-left h1 i {
  color: #4668f2;
  animation: dashboard-pulse 2s infinite;
}
.dashboard-header-left p {
  font-size: 0.95rem;
  color: #666;
}
.dashboard-header-right {
  font-size: 0.85rem;
  color: #777;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.06);
  padding: .45rem .7rem;
  border-radius: 999px;
}

/* FILTER SECTION */
.dashboard-filter-section {
  background: #ffffffcc;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  animation: dashboard-fadeIn 0.6s ease;
}
.dashboard-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dashboard-filter-label {
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dashboard-filter-label i { color: #4668f2; }

.dashboard-filter-group select {
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s, box-shadow .2s, transform .2s;
  background: rgba(255,255,255,0.75);
}
.dashboard-filter-group select:focus {
  border-color: #4668f2;
  box-shadow: 0 0 0 3px rgba(70,104,242,0.15);
  transform: translateY(-1px);
}

/* APPLY BUTTON (kept for fallback, but hidden because now auto-applies on change) */
.dashboard-filter-apply-btn { display:none !important; }

/* SUMMARY CARDS */
.dashboard-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.dashboard-summary-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 1.5rem 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: dashboard-fadeIn 0.8s ease;
  position: relative;
  overflow: hidden;
}
.dashboard-summary-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(70,104,242,0.25), rgba(255,255,255,0));
  transform: translate(20%, -20%);
  border-radius: 50%;
  pointer-events: none;
}
.dashboard-summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.dashboard-summary-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
}
.dashboard-summary-card h2 i {
  color: #4668f2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(70,104,242,0.08);
  border: 1px solid rgba(70,104,242,0.12);
}
.dashboard-summary-card p {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}
.dashboard-card-subtext {
  font-size: 0.85rem;
  color: #666;
}
.dashboard-summary-card-upcoming p { color: #c0392b; }
.dashboard-summary-card-groups p { color: #f39c12; }
.dashboard-summary-card-completed p { color: #27ae60; }

/* EXTRA PANELS */
.dashboard-extra-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 992px) {
  .dashboard-extra-panels {
    grid-template-columns: repeat(3, 1fr);
  }
}
.dashboard-panel {
  background: #ffffffdd;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  animation: dashboard-fadeIn 0.4s ease;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.dashboard-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.dashboard-panel::before {
  content: "";
  position: absolute;
  bottom: -30px; left: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(rgba(70,104,242,0.15), transparent);
  border-radius: 50%;
  pointer-events: none;
}

/* Notifications */
.dashboard-notification-list {
  max-height: 350px;
  overflow-y: auto;
  padding-left: 0;
  margin: 0;
  list-style: none;
  padding-right: .25rem;
}
.dashboard-notification-list li {
  margin-bottom: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.65);
  box-shadow: 0 6px 14px rgba(0,0,0,.05);
}
.dashboard-notification-list li:last-child { margin-bottom: 0; }
.dashboard-notification-time {
  font-size: 0.75rem;
  color: #999;
  display: inline-block;
  margin-top: .35rem;
}

/* SCROLLABLE BLOCKS */
.dashboard-scroll-container {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.dashboard-scroll-container ul { padding-left: 0; margin: 0; list-style: none; }

.dashboard-scroll-item {
  background: #f7f8fa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.65rem;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  box-shadow: 0 6px 14px rgba(0,0,0,.05);
}
.dashboard-scroll-item:hover {
  background: #f0f2f5;
  transform: translateY(-1px);
  border-color: rgba(70,104,242,0.25);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

/* CHART SIZING */
.dashboard-chart-container {
  width: 100%;
  height: 300px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.06);
}
.dashboard-chart {
  width: 100% !important;
  height: 100% !important;
}

/* TASKS LISTS */
.dashboard-tasks-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .dashboard-tasks-lists {
    grid-template-columns: 1fr 1fr;
  }
}
.dashboard-tasks-panel {
  background: #ffffffdd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  animation: dashboard-fadeIn 0.6s ease;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.dashboard-tasks-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.dashboard-tasks-panel::before {
  content: "";
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(rgba(70,104,242,0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.dashboard-tasks-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.dashboard-tasks-panel-header h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.15rem;
  margin: 0;
  color: #4668f2;
  font-weight: 800;
}
.dashboard-tasks-panel-header h3 i { color: #4668f2; }

/* See All button (style kao login/register ali "soft") */
.dashboard-tasks-panel-header a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(70,104,242,0.10);
  border: 1px solid rgba(70,104,242,0.22);
  color: #4668f2;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform .18s, background .18s, box-shadow .18s;
  box-shadow: 0 6px 14px rgba(70,104,242,0.12);
}
.dashboard-tasks-panel-header a:hover {
  transform: translateY(-1px);
  background: rgba(70,104,242,0.14);
  box-shadow: 0 10px 18px rgba(70,104,242,0.16);
  text-decoration: none;
}

/* Modern list item styling (bez promjene boja kartice) */
.dashboard-tasks-panel ul { padding-left: 0; margin: 0; list-style: none; }

.dashboard-tasks-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
  padding: 0.8rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.dashboard-tasks-list-item:last-child { margin-bottom: 0; }
.dashboard-tasks-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(70,104,242,0.22);
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}
.dashboard-tasks-list-item p {
  margin: 0;
  font-weight: 800;
  color: #2f2f2f;
}

.dashboard-task-group-label {
  font-size: 0.78rem;
  color: #777;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.dashboard-task-group-label i { color: #4668f2; }

.dashboard-tasks-list-subtext {
  font-size: 0.78rem;
  color: #777;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.dashboard-tasks-list-subtext i { color: #4668f2; }

/* VIEW BUTTON (match login/register plavo) */
.dashboard-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #4668f2, #3b57d1);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(70,104,242,.26);
  transition: transform .2s, box-shadow .2s, filter .2s;
  white-space: nowrap;
}
.dashboard-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(70,104,242,.30);
  filter: brightness(1.02);
}
.dashboard-view-btn:active {
  transform: translateY(0px);
  box-shadow: 0 10px 20px rgba(70,104,242,.24);
}
.dashboard-view-btn i { font-size: 0.95rem; }

/* COMPLETED & UPCOMING TASKS */
.dashboard-tasks-completion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .dashboard-tasks-completion-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.dashboard-completed-tasks-panel, .dashboard-upcoming-tasks-panel {
  background: #ffffffdd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  animation: dashboard-fadeIn 0.6s ease;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.dashboard-completed-tasks-panel:hover,
.dashboard-upcoming-tasks-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.dashboard-completed-tasks-panel::before,
.dashboard-upcoming-tasks-panel::before {
  content: "";
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(rgba(70,104,242,0.15), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.dashboard-panel-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
}
.dashboard-panel-title i { color: #4668f2; }

.dashboard-completed-on,
.dashboard-due-on {
  font-size: 0.78rem;
  color: #777;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.dashboard-completed-on i,
.dashboard-due-on i { color: #4668f2; }

/* RECENT ACTIVITY */
.dashboard-recent-activity {
  margin-bottom: 3rem;
}
.dashboard-recent-activity h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #4668f2;
  font-weight: 800;
}
.dashboard-recent-activity h3 i { color: #4668f2; }

.dashboard-activity-item {
  background: #ffffffdd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: dashboard-fadeIn 0.4s ease;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(0,0,0,0.06);
}
.dashboard-activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.dashboard-activity-item .activity-details p {
  margin: 0;
  margin-bottom: 0.25rem;
}
.dashboard-activity-subtext {
  font-size: 0.75rem;
  color: #777;
}

/* NOVI MODAL STIL (tvoj ostaje, samo sitan polish bez promjene boja) */
.task-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
.task-modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.task-modal-content {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-radius: 1.3rem;
  width: clamp(320px, 90vw, 480px);
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  position: relative;
  animation: pop 0.35s forwards;
  border: 1px solid rgba(255,255,255,0.5);
}
@keyframes pop {
  0% { opacity:0; transform: scale(.9); }
  100% { opacity:1; transform: scale(1); }
}
.task-modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #4668f2;
  font-weight: 800;
}
.task-modal-content .close-task-modal-btn {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 1.2rem;
  cursor: pointer;
  color: #777;
  transition: color .2s, background .2s, transform .2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
}
.task-modal-content .close-task-modal-btn i { pointer-events: none; }
.task-modal-content .close-task-modal-btn:hover {
  color: #4668f2;
  background: rgba(70, 104, 242, 0.08);
  transform: scale(1.03);
}
.task-details-body {
  font-size: 1.05rem;
  line-height: 1.6;
}
.task-details-body p { margin-bottom: 0.8rem; }
:root {
  --blue: #4668f2;
  --blue-dark: #2745d4;
  --radius: 1rem;
  --shadow: 0 16px 40px rgba(0,0,0,.12);
  --border: rgba(0,0,0,.10);
  --glass: rgba(255,255,255,.78);
}

#flash-container{
  position:fixed;top:1.5rem;left:50%;
  transform:translateX(-50%);
  z-index:1100;
  display:flex;flex-direction:column;gap:.75rem;
  width:min(720px, calc(100vw - 2rem));
}
.flash-message{
  background:linear-gradient(180deg,var(--blue),var(--blue-dark));
  color:#fff;
  padding:.75rem 1.25rem;
  border-radius:calc(var(--radius)*1.05);
  box-shadow:var(--shadow);
  display:flex;align-items:center;gap:.6rem;
  font-size:.95rem;
  opacity:1;
  transition:opacity .5s ease,transform .5s ease;
  border:1px solid rgba(255,255,255,.22);
  font-weight:800;
}

@keyframes pop {
  0% { opacity: 0; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); }
}

@media (min-width: 1024px) {
  .grid-wrap {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2.5rem;
    padding: 4rem 3rem;
  }
}

@media (max-width: 1023px) {
  .grid-wrap {
    padding: 2.5rem 1.5rem;
  }
}

/* SIDE PANEL (WHITE GLASS BOX) */
.side-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-radius: calc(var(--radius)*1.3);
  box-shadow: var(--shadow);
  padding: 2.8rem 2.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.side-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(rgba(70,104,242,.14), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.avatar-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  z-index: 1;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  transition: filter .25s;
}

.avatar-wrap:hover .avatar-img {
  filter: brightness(.92);
}

.edit-avatar-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .18s, filter .18s, box-shadow .18s;
  border: 1px solid rgba(255,255,255,.22);
}

.edit-avatar-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
}

.side-card-buttons {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
  z-index: 1;
}

/* MAIN CARDS */
.card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-radius: calc(var(--radius)*1.2);
  box-shadow: var(--shadow);
  padding: 2.2rem 2.5rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(rgba(70,104,242,.10), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.card-header {
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* STATS GRID */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid rgba(255,255,255,.20);
  overflow: hidden;
}

.stat-item i {
  position: absolute;
  top: 7px;
  right: 14px;
  font-size: 1.3rem;
  opacity: .20;
  pointer-events: none;
}

.stat-item span {
  display: block;
  font-size: .82rem;
  opacity: .92;
  font-weight: 800;
  white-space: nowrap;
  padding-right: 2.1rem;
  line-height: 1.15;
}

.stat-item strong {
  display: block;
  font-size: 1.6rem;
  margin-top: .15rem;
  font-weight: 900;
}

/* BUTTONS (MODERN) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1rem 1.6rem;
  border-radius: calc(var(--radius)*1.05);
  font-weight: 900;
  border: none;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, filter .18s, background .18s;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn-blue {
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(70,104,242,.26);
  border: 1px solid rgba(255,255,255,.20);
}

.btn-blue:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 36px rgba(70,104,242,.30);
}

.btn-outline {
  background: rgba(255,255,255,.92);
  color: #111;
  border: 2px solid rgba(70,104,242,.75);
  box-shadow: 0 12px 22px rgba(0,0,0,.08);
}

.btn-outline:hover {
  background: rgba(70,104,242,.10);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0,0,0,.10);
}

/* Inspiration card list */
.quote-list li {
  position: relative;
  padding-left: 1.5rem;
}

.quote-list li::before {
  content: """;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1;
}

/* MODAL */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  padding: 1rem;
}

.backdrop.active {
  display: flex;
}

.modal {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-radius: calc(var(--radius)*1.2);
  width: clamp(320px, 90vw, 480px);
  padding: 2.6rem 2.8rem;
  box-shadow: var(--shadow);
  animation: pop .35s forwards;
  position: relative;
  border: 1px solid rgba(0,0,0,.10);
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(70,104,242,.08);
  border: 1px solid rgba(70,104,242,.18);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.3rem;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, transform .18s;
  z-index: 10;
}
.close-btn i { pointer-events: none; }
.close-btn:hover {
  background: rgba(70,104,242,.12);
  transform: scale(1.03);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.3rem;
  position: relative;
}

.form-group label {
  font-weight: 900;
  font-size: .9rem;
  color: #374151;
}

.form-group input {
  padding: .75rem 1rem;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: .95rem;
  font-size: .96rem;
  width: 100%;
  transition: border .2s, box-shadow .2s, transform .2s;
  background: rgba(255,255,255,.85);
  font-weight: 800;
  outline: none;
}

.form-group input:focus {
  border-color: rgba(70,104,242,.7);
  box-shadow: 0 0 0 3px rgba(70,104,242,.18);
  transform: translateY(-1px);
}

.toggle-eye {
  position: absolute;
  bottom: 3px;
  right: .75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.05rem;
  color: #9ca3af;
  cursor: pointer;
  user-select: none;
  transition: background .2s, color .2s;
  z-index: 2;
  border: none;
  background: transparent;
}
.toggle-eye:hover {
  background: rgba(70,104,242,.10);
  color: var(--blue);
}
.toggle-eye i { pointer-events: none; }

.small-note {
  font-size: .78rem;
  color: #777;
  margin-top: .25rem;
  font-weight: 700;
}
:root {
  --blue: #4668f2;
  --blue-dark: #2745d4;

  --bg1: #f0f3f5;
  --bg2: #dfe9f3;

  --text: #0f172a;
  --muted: #64748b;

  --glass: rgba(255,255,255,.78);
  --border: 1px solid rgba(255,255,255,.65);

  --shadow: 0 16px 40px rgba(0,0,0,.12);
  --shadow-soft: 0 10px 24px rgba(0,0,0,.10);

  --radius: 1.25rem;
}

.legal-page {
  min-height: 100vh;
  background: linear-gradient(120deg, var(--bg1) 0%, var(--bg2) 100%);
  padding: 2.25rem 1rem 3rem 1rem;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}

.legal-page::before,
.legal-page::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}

.legal-page::before {
  top: -190px;
  left: -190px;
  background: radial-gradient(circle at 30% 30%, rgba(70,104,242,0.35), rgba(70,104,242,0.02) 60%);
}

.legal-page::after {
  bottom: -220px;
  right: -220px;
  background: radial-gradient(circle at 70% 70%, rgba(70,104,242,0.25), rgba(70,104,242,0.02) 62%);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wrap {
  width: min(980px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(14px);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: calc(var(--radius) * 1.15);
  padding: 1.6rem 1.6rem 1.25rem 1.6rem;
  animation: fadeInUp .25s ease;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -36px;
  right: -36px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(rgba(70,104,242,.18), transparent 60%);
  pointer-events: none;
}

.title {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: .65rem;
  line-height: 1.15;
}

.title i {
  color: var(--blue);
}

.subtitle {
  margin: .55rem 0 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 88ch;
}

.meta {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(70,104,242,.18);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  font-size: .86rem;
  font-weight: 650;
  color: #111827;
  white-space: nowrap;
}

.badge svg {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--blue);
}

.badge svg path {
  fill: currentColor;
}

.card {
  margin-top: 1rem;
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(14px);
  border: var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: calc(var(--radius) * 1.05);
  overflow: hidden;
  animation: fadeInUp .3s ease;
}

.card-inner {
  padding: 1.15rem 1.2rem;
}

.section {
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.section:last-child {
  border-bottom: none;
}

.h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: #0b1220;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.h2 i,
.h2 .h2-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(70,104,242,.10);
  border: 1px solid rgba(70,104,242,.18);
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  flex: 0 0 auto;
  font-size: 1rem;
}

.h2 .h2-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--blue);
  opacity: .95;
}

.h2 .h2-icon svg path {
  fill: currentColor;
}

.p {
  margin: .55rem 0 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: .97rem;
}

.list {
  margin: .55rem 0 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: .96rem;
}

.legal-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .95rem 1.05rem;
  background: rgba(255,255,255,.74);
  border: var(--border);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.legal-footer p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.4;
}

.legal-footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
}

.legal-footer a:hover {
  text-decoration: underline;
}
/*









*/
