/* iOS Design System CSS */
:root {
  /* iOS Colors */
  --ios-blue: #007AFF;
  --ios-green: #34C759;
  --ios-red: #FF3B30;
  --ios-orange: #FF9500;
  --ios-yellow: #FFCC00;
  --ios-purple: #AF52DE;
  --ios-pink: #FF2D55;
  --ios-teal: #5AC8FA;
  --ios-indigo: #5856D6;
  
  /* System Colors */
  --ios-separator: rgba(60, 60, 67, 0.12);
  --ios-opaque-separator: #C6C6C8;
  --ios-gray: #8E8E93;
  --ios-gray-2: #AEAEB2;
  --ios-gray-3: #C7C7CC;
  --ios-gray-4: #D1D1D6;
  --ios-gray-5: #E5E5EA;
  --ios-gray-6: #F2F2F7;
  
  /* Background Colors */
  --ios-bg-primary: #FFFFFF;
  --ios-bg-secondary: #F2F2F7;
  --ios-bg-tertiary: #FFFFFF;
  
  /* Text Colors */
  --ios-text-primary: #000000;
  --ios-text-secondary: rgba(60, 60, 67, 0.6);
  --ios-text-tertiary: rgba(60, 60, 67, 0.3);
  
  /* Safe Areas */
  --safe-top: env(safe-area-inset-top, 20px);
  --safe-bottom: env(safe-area-inset-bottom, 20px);
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --ios-bg-primary: #000000;
    --ios-bg-secondary: #1C1C1E;
    --ios-bg-tertiary: #2C2C2E;
    
    --ios-text-primary: #FFFFFF;
    --ios-text-secondary: rgba(235, 235, 245, 0.6);
    --ios-text-tertiary: rgba(235, 235, 245, 0.3);
    
    --ios-separator: rgba(84, 84, 88, 0.65);
    --ios-opaque-separator: #38383A;
    
    --ios-gray: #8E8E93;
    --ios-gray-2: #636366;
    --ios-gray-3: #48484A;
    --ios-gray-4: #3A3A3C;
    --ios-gray-5: #2C2C2E;
    --ios-gray-6: #1C1C1E;
  }
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--ios-bg-secondary);
  color: var(--ios-text-primary);
  line-height: 1.4;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Screens */
.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen.hidden {
  display: none;
}

/* Login Screen */
#login-screen {
  justify-content: center;
  align-items: center;
  padding: 20px;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.login-container {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.app-icon {
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.3));
}

.app-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.app-subtitle {
  font-size: 17px;
  color: var(--ios-text-secondary);
  margin-bottom: 40px;
}

/* iOS Form Styles */
.ios-form {
  width: 100%;
}

.input-group {
  margin-bottom: 12px;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: var(--font-family);
  background: var(--ios-bg-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--ios-text-primary);
  outline: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
  background: var(--ios-bg-primary);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.input-group input::placeholder {
  color: var(--ios-text-tertiary);
}

/* iOS Buttons */
.ios-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-family);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.ios-button.primary {
  width: 100%;
  background: var(--ios-blue);
  color: white;
}

.ios-button.primary:active {
  background: #0066d6;
  transform: scale(0.98);
}

.ios-button.secondary {
  background: var(--ios-gray-5);
  color: var(--ios-text-primary);
}

.ios-button.secondary:active {
  background: var(--ios-gray-4);
}

.error-message {
  color: var(--ios-red);
  font-size: 15px;
  margin-top: 12px;
  min-height: 20px;
}

.hint-text {
  color: var(--ios-text-secondary);
  font-size: 14px;
  margin-top: 16px;
  line-height: 1.5;
}

/* Header */
.ios-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 8px;
  padding-top: calc(var(--safe-top) + 6px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 0.5px solid var(--ios-separator);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

@media (prefers-color-scheme: dark) {
  .ios-header {
    background: rgba(28, 28, 30, 0.82);
  }
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-left {
  justify-content: flex-start;
  min-width: 0;
  flex-shrink: 0;
}

.header-right {
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
  flex-shrink: 0;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.ios-header h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  white-space: nowrap;
  min-width: 0;
}

/* Icon Buttons in Header */
.header-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 10px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 10px;
  transition: background-color 0.15s ease, transform 0.1s ease;
  position: relative;
}

.header-icon-btn:active {
  background: var(--ios-gray-5);
  transform: scale(0.92);
}

.header-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-icon-label {
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-family);
  color: var(--ios-blue);
  letter-spacing: 0.1px;
  line-height: 1;
  white-space: nowrap;
}

.nav-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ios-blue);
  transition: background-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav-arrow:active {
  background: var(--ios-gray-5);
  transform: scale(0.9);
}

/* Calendar Container */
.calendar-container {
  background: var(--ios-bg-primary);
  margin: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Weekday Header */
.weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 12px 8px;
  background: var(--ios-bg-secondary);
  border-bottom: 0.5px solid var(--ios-separator);
}

.weekday-header span {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ios-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--ios-separator);
  padding: 1px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px;
  background: var(--ios-bg-primary);
  cursor: pointer;
  transition: background-color 0.15s;
  position: relative;
  min-height: 60px;
}

.calendar-day:active {
  background: var(--ios-gray-5);
}

.calendar-day.other-month {
  background: var(--ios-bg-secondary);
}

.calendar-day.other-month .day-number {
  color: var(--ios-text-tertiary);
}

.calendar-day.today {
  background: rgba(0, 122, 255, 0.08);
}

.calendar-day.today .day-number {
  background: var(--ios-blue);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.calendar-day.selected {
  background: rgba(0, 122, 255, 0.15);
}

.day-number {
  font-size: 15px;
  font-weight: 500;
  color: var(--ios-text-primary);
  margin-bottom: 4px;
}

.note-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ios-blue);
  position: absolute;
  bottom: 8px;
}

.note-preview {
  font-size: 10px;
  color: var(--ios-text-secondary);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  padding: 0 2px;
  margin-top: 2px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--ios-bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  animation: slideUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 0.5px solid var(--ios-separator);
  background: var(--ios-bg-tertiary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 600;
}

.modal-button {
  font-size: 17px;
  font-weight: 400;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

.modal-button.cancel {
  color: var(--ios-blue);
}

.modal-button.save {
  color: var(--ios-blue);
  font-weight: 600;
}

.modal-button:active {
  opacity: 0.6;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.modal-body textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: var(--font-family);
  background: var(--ios-bg-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--ios-text-primary);
  resize: none;
  outline: none;
  line-height: 1.5;
  min-height: 150px;
}

.modal-body textarea:focus {
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.modal-body textarea::placeholder {
  color: var(--ios-text-tertiary);
}

/* Note Actions */
.note-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: var(--font-family);
  background: var(--ios-bg-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--ios-blue);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.action-button:active {
  background: var(--ios-gray-5);
}

.action-button.destructive {
  color: var(--ios-red);
}

/* Date Picker */
.date-picker {
  max-height: 50vh;
}

.date-picker-container {
  display: flex;
  gap: 12px;
}

.date-picker-container select {
  flex: 1;
  padding: 12px 16px;
  font-size: 17px;
  font-family: var(--font-family);
  background: var(--ios-bg-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--ios-text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E8E93' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.date-picker-container select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 24px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ios-text-primary);
  color: var(--ios-bg-primary);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  z-index: 2000;
  animation: toastIn 0.3s ease-out;
  box-shadow: var(--shadow-lg);
}

.toast.hidden {
  display: none;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Desktop Styles */
@media (min-width: 768px) {
  .calendar-container {
    max-width: 600px;
    margin: 24px auto;
  }
  
  .calendar-day {
    min-height: 80px;
    padding: 12px 8px;
  }
  
  .day-number {
    font-size: 16px;
  }
  
  .note-preview {
    font-size: 11px;
  }
  
  .modal-content {
    border-radius: var(--radius-xl);
    margin: auto;
    max-height: 80vh;
  }
  
  .modal-header {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  
  .login-container {
    padding: 40px;
    background: var(--ios-bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .calendar-container {
    max-width: 800px;
  }
  
  .calendar-day {
    min-height: 100px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--ios-blue);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ios-blue);
  outline-offset: 2px;
}

/* Reminder Styles */
.reminder-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ios-orange);
  position: absolute;
  bottom: 16px;
}

.reminder-modal {
  max-height: 90vh;
}

.reminder-section {
  margin-bottom: 20px;
}

.reminder-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ios-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.reminder-date-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: var(--font-family);
  background: var(--ios-bg-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--ios-text-primary);
  outline: none;
}

.reminder-date-input:focus {
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.reminder-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 0.5px solid var(--ios-separator);
}

/* Criteria List */
.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.criteria-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--ios-bg-primary);
  border-radius: var(--radius-md);
}

.criteria-item-text {
  font-size: 15px;
  color: var(--ios-text-primary);
}

.criteria-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ios-red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.add-criteria-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-family);
  background: var(--ios-bg-primary);
  border: 2px dashed var(--ios-gray-4);
  border-radius: var(--radius-md);
  color: var(--ios-blue);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.add-criteria-btn:active {
  background: var(--ios-gray-6);
}

/* Criteria Picker Modal */
.criteria-picker {
  max-height: 80vh;
}

.criteria-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.criteria-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.criteria-option input[type="radio"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--ios-blue);
}

.criteria-option-text {
  font-size: 16px;
  color: var(--ios-text-primary);
  line-height: 1.4;
}

.sub-selector {
  margin-left: 34px;
  margin-top: 12px;
  padding: 12px;
  background: var(--ios-bg-secondary);
  border-radius: var(--radius-md);
}

.sub-selector.hidden {
  display: none;
}

.weekday-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekday-btn {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-family);
  background: var(--ios-bg-primary);
  border: 2px solid var(--ios-gray-4);
  border-radius: var(--radius-md);
  color: var(--ios-text-primary);
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.weekday-btn.selected {
  background: var(--ios-blue);
  border-color: var(--ios-blue);
  color: white;
}

.criteria-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-family);
  background: var(--ios-bg-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--ios-text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E8E93' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Time Picker */
.time-picker {
  max-height: 50vh;
}

.time-picker-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.time-select {
  padding: 12px 16px;
  font-size: 24px;
  font-weight: 500;
  font-family: var(--font-family);
  background: var(--ios-bg-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--ios-text-primary);
  cursor: pointer;
  text-align: center;
  min-width: 80px;
}

.time-separator {
  font-size: 24px;
  font-weight: 600;
  color: var(--ios-text-primary);
}

.time-zone-note {
  text-align: center;
  font-size: 13px;
  color: var(--ios-text-secondary);
  margin-top: 16px;
}

/* Reminders List Modal */
.reminders-list-modal {
  max-height: 80vh;
}

/* Push Settings */
.push-settings {
  padding: 16px;
  background: var(--ios-bg-primary);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.push-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.push-setting-row span {
  font-size: 16px;
  font-weight: 500;
  color: var(--ios-text-primary);
}

.ios-toggle {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--ios-gray-5);
  color: var(--ios-text-secondary);
}

.ios-toggle.active {
  background: var(--ios-green);
  color: white;
}

.push-description {
  font-size: 13px;
  color: var(--ios-text-tertiary);
  margin-top: 8px;
  margin-bottom: 0;
}

.reminders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reminder-list-item {
  padding: 16px;
  background: var(--ios-bg-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s;
}

.reminder-list-item:active {
  background: var(--ios-gray-5);
}

.reminder-list-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.reminder-list-item-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--ios-text-primary);
  flex: 1;
  margin-right: 8px;
}

.reminder-list-item-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  background: var(--ios-orange);
  color: white;
  border-radius: 100px;
}

.reminder-list-item-details {
  font-size: 14px;
  color: var(--ios-text-secondary);
  line-height: 1.5;
}

.reminder-list-item-times {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reminder-time-badge {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--ios-gray-5);
  color: var(--ios-text-primary);
  border-radius: 100px;
}

.empty-reminders {
  text-align: center;
  padding: 40px 20px;
  color: var(--ios-text-secondary);
}

.empty-reminders svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-reminders p {
  font-size: 16px;
}

/* Calendar Day Actions */
.day-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.day-action-btn {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.day-action-btn.note {
  background: var(--ios-blue);
  color: white;
}

.day-action-btn.reminder {
  background: var(--ios-orange);
  color: white;
}

/* Admin Panel Styles */
.admin-modal {
  max-height: 90vh;
}

.admin-section {
  margin-bottom: 24px;
}

.admin-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ios-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: var(--font-family);
  background: var(--ios-bg-primary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--ios-text-primary);
  outline: none;
}

.admin-input:focus {
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
}

.admin-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--ios-blue);
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--ios-bg-primary);
  border-radius: var(--radius-md);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-name {
  font-size: 16px;
  font-weight: 500;
}

.user-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  background: var(--ios-purple);
  color: white;
  border-radius: 100px;
}

.delete-user-btn {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  background: var(--ios-red);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

.delete-user-btn:active {
  opacity: 0.8;
}
