/* YantraGo PWA — notifications, confirm dialogs, village suggest (Flutter parity) */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notify-bell-wrap {
  position: relative;
  display: inline-flex;
}

.notify-bell {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.notify-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.notify-sheet-panel {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 12px 16px 24px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.notify-sheet.open .notify-sheet-panel {
  transform: translateY(0);
}

.notify-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.notify-sheet-head h3 {
  margin: 0;
  font-size: 16px;
}

.notify-sheet-actions {
  display: flex;
  gap: 8px;
}

.notify-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notify-row {
  text-align: left;
  border: 1px solid #e8f0e4;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.notify-row--unread {
  background: #f1f8ee;
  border-color: #c8e6c9;
}

.notify-row-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #1b2b1a;
}

.notify-row-body {
  display: block;
  font-size: 12px;
  color: #5f6f5c;
  margin-top: 4px;
  line-height: 1.4;
}

.notify-empty {
  text-align: center;
  color: #5f6f5c;
  padding: 24px 12px;
  font-size: 13px;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-dialog {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.confirm-dialog h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.confirm-dialog p {
  margin: 0 0 16px;
  color: #5f6f5c;
  font-size: 14px;
  line-height: 1.45;
}

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

.village-suggest-wrap {
  position: relative;
}

.village-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #d8e5d1;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-height: 220px;
  overflow-y: auto;
}

.village-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.village-suggest-item:hover {
  background: #f6faf3;
}

.compact-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
}

.icon-btn--edit {
  color: #2e7d32;
}

.icon-btn--delete {
  color: #e53935;
}

.month-highlight-card {
  background: linear-gradient(135deg, #2e7d32, #43a047, #66bb6a);
  color: #fff;
  border: none;
}

.month-highlight-card h2 {
  color: #fff;
  margin: 8px 0 4px;
}

.month-highlight-card p {
  color: rgba(255, 255, 255, 0.9);
}

.legal-doc {
  line-height: 1.55;
  font-size: 15px;
}

.legal-doc h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-doc code {
  font-size: 0.85em;
  word-break: break-all;
}

.legal-doc-back {
  margin-top: 1.5rem;
}

.legal-footer {
  padding: 12px 16px 24px;
  text-align: center;
}

.legal-footer .copyright-bar a,
.copyright-bar a {
  color: var(--yg-green, #2e7d32);
  font-weight: 600;
  text-decoration: underline;
}
