body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  color: #4a4a4a;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #0056b3;
}

.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 10px 0;
}

.input-field {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

.input-field:focus {
  border-color: #007bff;
  outline: none;
}

.date-picker {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.task-list {
  list-style-type: none;
  padding: 0;
}

.task-list li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.task-list li:last-child {
  border-bottom: none;
}

/* 导航样式 */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  margin-bottom: 20px;
}

nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s;
  font-size: 0.9em;
}

nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.nav-icon {
  font-size: 1.5em;
  margin-bottom: 4px;
}

nav a[href*="med-checkin"]::before { content: "💊"; }
nav a[href*="calendar"]::before { content: "📅"; }
nav a[href*="tasks"]::before { content: "📝"; }
nav a[href*="settings"]::before { content: "⚙️"; }

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }
  
  nav a {
    min-width: 80px;
    height: 80px;
    font-size: 0.9em;
  }
}

/* 顶部栏样式 */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 20px;
}

.header h1 {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
}

.page-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 调整现有样式以适应新布局 */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 0;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  margin-top: auto;
}

/* 动态背景效果 */
body {
  background: linear-gradient(
    45deg,
    rgba(var(--primary-rgb), 0.05) 0%,
    rgba(var(--primary-rgb), 0.02) 100%
  );
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 0% 0%, 
      rgba(255, 182, 193, 0.1) 0%,
      transparent 50%),
    radial-gradient(circle at 100% 0%, 
      rgba(173, 216, 230, 0.1) 0%,
      transparent 50%),
    radial-gradient(circle at 100% 100%, 
      rgba(255, 218, 185, 0.1) 0%,
      transparent 50%),
    radial-gradient(circle at 0% 100%, 
      rgba(176, 224, 230, 0.1) 0%,
      transparent 50%);
  animation: bgShine 15s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes bgShine {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* 更新主题变量 */
:root {
  --primary-rgb: 255, 105, 180;  /* pink */
}

[data-theme="blue"] {
  --primary-rgb: 70, 130, 180;  /* steel blue */
}

[data-theme="purple"] {
  --primary-rgb: 147, 112, 219;  /* medium purple */
}