/* ==========================================================================
   TYLO - Premium Notifications CSS
   Theme: Mint Glossy Premium Family
   ========================================================================== */

:root {
  --mint-primary: #2ebf91;
  --mint-dark: #1b8a5f;
  --mint-light: rgba(46, 191, 145, 0.1);
  --orange-accent: #ff9933;
  --bg-main: #fcfcfc;
  --bg-card: #ffffff;
  --text-dark: #111111;
  --text-muted: #666666;
  --border-light: #eaeaea;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius-lg: 16px;
  --radius-md: 8px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body.theme-black-white-mint {
  background-color: var(--bg-main);
  color: var(--text-dark);
}

/* --- HEADER PLACEHOLDER STYLES --- */
.header-main {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4%;
  max-width: 1600px;
  margin: 0 auto;
}
.brand-section { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.header-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.brand-subtitle { font-size: 10px; color: var(--mint-primary); font-weight: 600; letter-spacing: 1.5px; }
.search-container { display: flex; align-items: center; background: #f5f5f5; border-radius: 20px; padding: 8px 16px; width: 400px; border: 1px solid transparent; transition: var(--transition-smooth); }
.search-container:focus-within { border-color: var(--mint-primary); background: #fff; box-shadow: 0 0 0 4px var(--mint-light); }
.search-input { border: none; background: transparent; outline: none; width: 100%; font-size: 14px; }
.search-action-area { display: flex; align-items: center; gap: 32px; }
.user-actions { display: flex; gap: 24px; }
.dropdown-trigger { background: none; border: none; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; }

/* --- DASHBOARD LAYOUT --- */
.notifications-dashboard {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

/* --- TITLE STRIP --- */
.page-title-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}
.title-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* --- BUTTONS --- */
.btn-outline-mint {
  background: transparent;
  border: 1px solid var(--mint-primary);
  color: var(--mint-dark);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-outline-mint:hover {
  background: var(--mint-light);
}
.btn-primary-mint {
  background: var(--mint-primary);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-primary-mint:hover {
  background: var(--mint-dark);
}
.btn-icon-mint {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-icon-mint:hover {
  border-color: var(--mint-primary);
  color: var(--mint-primary);
  box-shadow: var(--shadow-soft);
}
.btn-sm { font-size: 13px; padding: 6px 12px; }
.full-width { width: 100%; }

/* --- SUMMARY STRIP --- */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.summary-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.summary-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.highlight-unread .summary-value {
  color: var(--orange-accent);
}

/* --- CONTENT WRAPPER --- */
.notifications-content-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* --- FILTER TABS --- */
.filter-tabs-nav {
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}
.filter-tabs-list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tabs-list::-webkit-scrollbar { display: none; }
.tab-item {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: var(--transition-smooth);
}
.tab-item:hover {
  color: var(--text-dark);
}
.tab-item.active {
  color: var(--mint-dark);
  border-bottom-color: var(--mint-primary);
  background: #fff;
}

/* --- FEED CONTROLS --- */
.feed-controls-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
}
.search-feed-box input {
  width: 300px;
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}
.search-feed-box input:focus {
  border-color: var(--mint-primary);
  box-shadow: 0 0 0 3px var(--mint-light);
}
.sort-feed-box {
  display: flex;
  gap: 12px;
}
.feed-select {
  padding: 10px 32px 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  background-size: 10px auto;
}

/* --- NOTIFICATIONS FEED --- */
.notifications-feed {
  min-height: 400px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.notification-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  background: #fff;
}
.notification-card:hover {
  background: #fafafa;
}
.notification-card.is-unread {
  background: var(--mint-light);
  border-left: 4px solid var(--mint-primary);
}
.notification-card.is-unread:hover {
  background: rgba(46, 191, 145, 0.15);
}

.notif-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.is-unread .notif-icon { background: #fff; color: var(--mint-primary); }

.notif-content { display: flex; flex-direction: column; gap: 6px; }
.notif-header { display: flex; align-items: center; gap: 12px; }
.notif-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.notif-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; text-transform: uppercase; }
.badge-urgent { background: #ffeee0; color: var(--orange-accent); }
.badge-otp { background: #e0f2fe; color: #0284c7; }
.badge-offer { background: #fce7f3; color: #0369a1; }
.badge-delivery { background: #dcfce7; color: #15803d; }
.badge-order { background: #f3f4f6; color: #374151; }

.notif-message { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.notif-detail { font-size: 13px; color: #888; margin-top: 4px; background: #f9f9f9; padding: 8px 12px; border-radius: 6px; border: 1px dashed #eee; display: inline-block; width: fit-content; }

.notif-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.notif-time { font-size: 12px; color: #999; font-weight: 500; }
.notif-actions { display: flex; gap: 8px; }

/* --- EMPTY STATE --- */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-card h3 { font-size: 20px; color: var(--text-dark); margin-bottom: 8px; }
.empty-state-card p { font-size: 14px; margin-bottom: 24px; max-width: 300px; }

/* --- MODALS & TOGGLES --- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-backdrop.hidden { display: none; }
.modal-box {
  background: #fff;
  width: 100%; max-width: 450px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 18px; font-weight: 700; }
.btn-close-modal { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 24px; }
.modal-footer { padding: 20px 24px; border-top: 1px solid var(--border-light); background: #fafafa; }

.settings-list { display: flex; flex-direction: column; gap: 20px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.setting-title { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.setting-hint { font-size: 11px; color: var(--orange-accent); margin-left: auto; margin-right: 12px; }
.settings-divider { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #aaa; margin: 10px 0; border-bottom: 1px solid #eee; padding-bottom: 4px; }

/* CSS Toggle Switch */
.css-toggle { position: relative; width: 44px; height: 24px; }
.css-toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
.css-toggle input:checked + .slider { background-color: var(--mint-primary); }
.css-toggle input:focus + .slider { box-shadow: 0 0 1px var(--mint-primary); }
.css-toggle input:checked + .slider:before { transform: translateX(20px); }
.css-toggle input:disabled + .slider { background-color: #e0e0e0; cursor: not-allowed; }

/* --- TOAST --- */
.toast-notification {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark); color: #fff;
  padding: 12px 24px; border-radius: 30px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: opacity 0.3s, transform 0.3s;
}
.toast-notification.hidden {
  opacity: 0; pointer-events: none; transform: translate(-50%, 20px);
}