/* Simple Task Timer. Copyright (C) 2026 Islam Hassan. SPDX-License-Identifier: GPL-3.0-only */
/* The web version: the full width of the phone, inside the safe area */
body {
  width: auto;
  max-width: 600px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* iOS zooms in on a text field with a font smaller than 16px */
input { font-size: 16px; }

/* A web page cannot show an alert at a set time when it is closed */
#notify-prompt { display: none !important; }

/* Settings (the gear button): the Sync part of Preferences, in place of the tasks */
body.settings-open > :not(#settings) { display: none !important; }
.settings-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.settings-bar h1 { margin: 0; font-size: 17px; color: var(--text); }

#sync-section {
  margin: 16px 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}
#sync-section h2 { margin: 0 0 4px; font-size: 14px; color: var(--text); }
#sync-section p { margin: 4px 0; }
#sync-section .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
#sync-section .error { color: var(--danger); }
