* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e5e5e5;
  --text-dim: #888;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-user-select: none;
  user-select: none;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px;
  padding-top: env(safe-area-inset-top, 20px);
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

header {
  text-align: center;
  padding: 24px 0 16px;
}

header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

header p {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 4px;
}

/* Status card */
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.status-row:last-child {
  margin-bottom: 0;
}

.status-label {
  color: var(--text-dim);
  font-size: 14px;
}

.status-value {
  font-size: 14px;
  font-weight: 500;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--danger); }
.status-dot.pending { background: var(--warning); }

/* Buttons */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 12px;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

/* Add to Home Screen banner */
.install-banner {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.install-banner h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.install-banner p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.install-banner .steps {
  text-align: left;
  margin-top: 12px;
  font-size: 14px;
  line-height: 2;
}

/* Notification list */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 12px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin: 0;
}

.btn-clear {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-clear:active {
  background: rgba(239, 68, 68, 0.15);
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Swipe-to-delete wrapper */
.notification-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.notification-delete-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
}

.notification-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: transform 0.2s ease;
  touch-action: pan-y;
}

.notification-item .title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.notification-item.clickable {
  cursor: pointer;
}

.notification-item.clickable:active {
  background: #222;
}

.notification-item .body {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 6px;
}

.notification-item .url {
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

.priority-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-badge.high { background: #422006; color: var(--warning); }
.priority-badge.critical { background: #450a0a; color: var(--danger); }
.priority-badge.low { background: #1a1a2e; color: #666; }

.empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 14px;
}

.hidden {
  display: none !important;
}
