:root {
  /* Minimalist Color Themes: Light Blue, Light Pink, Light Brown, Light Green */
  --c-blue-soft: #e0f2fe;
  --c-blue-text: #0284c7;

  --c-pink-soft: #fce7f3;
  --c-pink-text: #db2777;

  --c-brown-soft: #f5ebe0;
  --c-brown-text: #8d5b4c;

  --c-green-soft: #e8f5e9;
  --c-green-text: #16a34a;

  /* Screenshot Dark Palette */
  --bg-app: #1f1f21;           /* Background behind the cards */
  --bg-card: #131314;          /* Dark rounded card from screenshot */
  --bg-subtle: #2b2b2e;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #9aa0a6;
  --text-muted: #6e7278;

  --fab-blue: #2f4577;         /* Blue FAB button in screenshot */
  --fab-blue-active: #3b5998;
  --active-blue-tab: #6ea9fe;

  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-card: 20px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: #000000;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

/* Device Shell simulating Android Smartphone */
.viewport-wrapper {
  width: 100%;
  max-width: 412px;
  height: 890px;
  max-height: 98vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-device {
  width: 100%;
  height: 100%;
  background: var(--bg-app);
  border-radius: 44px;
  border: 4px solid #2f3033;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

/* Status Bar: 00:37, 5G, 43 (exact representation) */
.status-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px 0 24px;
  font-size: 13px;
  font-weight: 500;
  color: #e3e3e3;
  flex-shrink: 0;
}

.status-right-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.network-badge {
  font-size: 11px;
  font-weight: 700;
}

.battery-badge {
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* App Header: Centered "Tasks" + Rainbow Avatar Button */
.tasks-app-bar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.app-bar-placeholder {
  width: 38px;
}

.app-bar-title {
  font-size: 21px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* Google Account Rainbow Ring */
.account-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rainbow-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(#ea4335, #fabc05, #34a853, #4285f4, #ea4335);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.rainbow-ring:hover {
  transform: scale(1.08);
}

.avatar-letter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #a855f7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
}

/* Tabs Bar: "My Tasks" (with blue bottom line), "+ New list" */
.category-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 10px 20px;
  flex-shrink: 0;
}

.tabs-scroll-container {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-scroll-container::-webkit-scrollbar {
  display: none;
}

.tab-item-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding-bottom: 6px;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.tab-item-btn:hover {
  color: #ffffff;
}

.tab-item-btn.active {
  color: var(--active-blue-tab);
  font-weight: 600;
}

.tab-item-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #3b82f6;
  border-radius: 3px 3px 0 0;
}

.new-list-btn {
  background: transparent;
  border: none;
  color: #e3e3e3;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: background 0.2s;
}

.new-list-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Tasks Scroll Viewport */
.tasks-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 85px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tasks-scroll-container::-webkit-scrollbar {
  width: 4px;
}
.tasks-scroll-container::-webkit-scrollbar-thumb {
  background: #38383a;
  border-radius: 4px;
}

/* Team Lead Dual Filter Control Bar (Name filter on top, Color filter below) */
.lead-controls-bar {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lead-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-ctrl-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.filter-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.name-pill, .color-pill {
  background: #252628;
  border: 1px solid #3c4043;
  color: #d1d5db;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.name-pill:hover, .color-pill:hover {
  background: #333538;
}

.name-pill.active, .color-pill.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 600;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-blue { background: #38bdf8; }
.dot-pink { background: #f472b6; }
.dot-brown { background: #d4a373; }
.dot-green { background: #4ade80; }

/* Task Card */
.task-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 18px 18px 8px 18px;
}

.task-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.task-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

/* Delete List X button on top right of section */
.delete-list-btn {
  background: transparent;
  border: none;
  color: #8e9196;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
}

.delete-list-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* Delete Task X button on most right of task row */
.delete-task-btn {
  background: transparent;
  border: none;
  color: #6e7278;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  margin-top: 1px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.delete-task-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* Task Items List */
.task-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.task-row {
  display: flex;
  align-items: flex-start;
  padding: 13px 0;
  gap: 16px;
}

/* Exact Circular Unchecked Ring */
.circle-check {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #8e9196;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  background: transparent;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.circle-check:hover {
  border-color: #ffffff;
}

.circle-check:checked {
  border-color: #3b82f6;
  background: #3b82f6;
}

.circle-check:checked::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.task-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-title-text {
  font-size: 14.5px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.35;
  word-break: break-word;
}

/* Minimalist Color Tag Badges */
.tag-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.tag-badge.blue {
  background: var(--c-blue-soft);
  color: var(--c-blue-text);
}
.tag-badge.pink {
  background: var(--c-pink-soft);
  color: var(--c-pink-text);
}
.tag-badge.brown {
  background: var(--c-brown-soft);
  color: var(--c-brown-text);
}
.tag-badge.green {
  background: var(--c-green-soft);
  color: var(--c-green-text);
}

.assignee-chip {
  align-self: flex-start;
  font-size: 10px;
  background: #252628;
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

/* Completed Accordion Card (Exact match with screenshot) */
.completed-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 4px 18px 10px 18px;
}

.completed-header-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
  cursor: pointer;
}

.completed-arrow-icon {
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}

.completed-arrow-icon.open {
  transform: rotate(0deg);
}

.completed-arrow-icon.closed {
  transform: rotate(180deg);
}

.completed-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.completed-row {
  display: flex;
  align-items: flex-start;
  padding: 11px 0;
  gap: 16px;
}

.check-icon-done {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #4a75be;
  margin-top: 1px;
}

.completed-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.completed-title-strikethrough {
  font-size: 14px;
  color: #ffffff;
  text-decoration: line-through;
  line-height: 1.35;
}

.completed-date-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Blue Rounded FAB (+) Button from Screenshot */
.google-fab {
  position: absolute;
  bottom: 64px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--fab-blue);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 30;
  transition: background 0.2s, transform 0.2s;
}

.google-fab:hover {
  background: var(--fab-blue-active);
  transform: scale(1.05);
}

.google-fab:active {
  transform: scale(0.95);
}

/* Android Bottom Bar (Recents |||, Home ⬡, Back <) */
.android-bottom-nav {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 40px;
  flex-shrink: 0;
  background: var(--bg-app);
}

.nav-key {
  background: transparent;
  border: none;
  color: #9aa0a6;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Google Account Modal & Sheets */
.sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.google-account-sheet {
  width: 100%;
  background: #202124;
  border-top: 1px solid #3c4043;
  border-radius: 28px 28px 0 0;
  padding: 16px 20px 28px 20px;
  max-height: 85%;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-overlay.open .google-account-sheet {
  transform: translateY(0);
}

.sheet-pill {
  width: 36px;
  height: 4px;
  background: #5f6368;
  border-radius: 4px;
  margin: 0 auto 16px auto;
}

.current-user-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #282a2d;
  border-radius: 16px;
  margin-bottom: 12px;
}

/* Auth Mode Tabs inside Modal */
.auth-tabs-row {
  display: flex;
  background: #18191b;
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 14px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: #2b2c2f;
  color: #ffffff;
  font-weight: 600;
}

.btn-install-pwa {
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s;
}

.btn-install-pwa:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #a855f7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.modal-user-info h3 {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
}

.modal-user-info p {
  font-size: 12px;
  color: #9aa0a6;
}

.role-explainer-box {
  background: #18191b;
  border: 1px solid #35373a;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.explainer-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #60a5fa;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 4px;
}

.role-explainer-box p {
  font-size: 12px;
  color: #bdc1c6;
  line-height: 1.4;
}

.sheet-section-title {
  font-size: 13px;
  font-weight: 500;
  color: #9aa0a6;
  margin-bottom: 10px;
}

.account-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.account-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #282a2d;
  border: 1px solid #3c4043;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.account-option-card:hover {
  background: #323539;
}

.account-option-card.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.opt-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.opt-info {
  flex: 1;
}

.opt-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
}

.opt-role {
  font-size: 11px;
  color: #9aa0a6;
}

.close-sheet-btn {
  width: 100%;
  padding: 10px;
  background: #2b2c2f;
  border: none;
  border-radius: 10px;
  color: #e8eaed;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* Form Modals (New Task & New List) */
.sheet-title-text {
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 16px;
}

.sheet-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.g-input {
  width: 100%;
  background: #18191b;
  border: 1px solid #3c4043;
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.g-input:focus {
  border-color: #3b82f6;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-group label {
  font-size: 11.5px;
  color: #9aa0a6;
}

.g-select {
  background: #18191b;
  border: 1px solid #3c4043;
  border-radius: 10px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.sheet-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.btn-cancel {
  background: transparent;
  border: none;
  color: #9aa0a6;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
}

.btn-save {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

/* Toast */
.toast-hub {
  position: absolute;
  top: 48px;
  left: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #282a2d;
  border: 1px solid #3c4043;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
