/* EVBro — Notification centre and native controls.
   Standalone sheet: the load ORDER (templates/index.html) follows the original cascade; do not change it. */

/* ==========================================================
   NOTIFICATION CENTRE AND NATIVE CONTROLS
   ========================================================== */
.notif-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red, #ff3d00);
  box-shadow: 0 0 8px rgba(255, 61, 0, 0.8);
  display: none;
}

.native-section-header {
  margin-bottom: 1.25rem;
}

.native-section-header .section-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 3px;
}

.native-section-header .section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

.notif-triggers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-trigger-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s, border-color 0.2s;
}

.notif-trigger-card:hover {
  background: var(--surface-card-hover);
}

.notif-trigger-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.notif-trigger-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-glass-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notif-trigger-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notif-trigger-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* iOS Toggle Switch */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.18);
  transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 34px;
}

.ios-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.ios-switch input:checked + .ios-slider {
  background-color: #30d158;
}

.ios-switch input:checked + .ios-slider:before {
  transform: translateX(20px);
}

/* Unified Native Dark Tables & Cards */
.native-table-container {
  background: #151518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  margin-top: 1rem;
}

.native-table-container .data-table {
  width: 100%;
  margin: 0;
  border: none;
}

.native-table-container .data-table th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.native-table-container .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.native-card-wrapper {
  background: #151518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  margin-bottom: 14px;
}

/* An alert's own setting (e.g. tyre pressure margin) */
.notif-trigger-extra { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.notif-trigger-extra label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.notif-trigger-extra .form-control { min-height: 40px; }

/* Alert history: status of each delivery */
.notif-log-ok { color: var(--accent-green); }
.notif-log-fail { color: var(--accent-red); }
