* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  padding: 0 0 80px 0;
}

header {
  background: #16213e;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  font-size: 1.4rem;
  color: #e94560;
}

header p {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

/* Add Medicine Form */
#add-form {
  background: #16213e;
  margin: 16px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

#add-form h2 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #e94560;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 4px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0f3460;
  color: #e0e0e0;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #e94560;
}

.btn-add {
  width: 100%;
  padding: 12px;
  background: #e94560;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.btn-add:active {
  background: #c73e54;
}

/* Medicine List */
#medicine-list {
  padding: 0 16px;
}

#medicine-list h2 {
  font-size: 1rem;
  color: #888;
  margin-bottom: 10px;
}

.medicine-card {
  background: #16213e;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.med-info h3 {
  font-size: 1rem;
  color: #e0e0e0;
}

.med-info .med-details {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

.med-time {
  font-size: 1.1rem;
  color: #e94560;
  font-weight: 600;
  white-space: nowrap;
}

.med-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.btn-delete {
  background: none;
  border: 1px solid #555;
  color: #888;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-delete:active {
  border-color: #e94560;
  color: #e94560;
}

.btn-edit {
  background: none;
  border: 1px solid #0f3460;
  color: #e94560;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-edit:active {
  border-color: #e94560;
}

.med-btns {
  display: flex;
  gap: 6px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #555;
}

.empty-state span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

/* Notification banner */
#notif-banner {
  display: none;
  background: #e94560;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
  cursor: pointer;
}

#notif-banner.show {
  display: block;
}

/* Alarm Overlay */
#alarm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: alarmPulse 1s infinite;
}

@keyframes alarmPulse {
  0%, 100% { background: rgba(0, 0, 0, 0.85); }
  50% { background: rgba(233, 69, 96, 0.3); }
}

.alarm-box {
  background: #16213e;
  border: 2px solid #e94560;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 0 40px rgba(233, 69, 96, 0.4);
}

.alarm-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.alarm-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e94560;
  margin-bottom: 16px;
}

.alarm-med-item {
  font-size: 1.1rem;
  color: #e0e0e0;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.alarm-med-item:last-child {
  border-bottom: none;
}

.alarm-meds {
  margin-bottom: 24px;
}

.alarm-dismiss {
  width: 100%;
  padding: 14px;
  background: #e94560;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}
