
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --bg-color: #f5f5f5;
  --text-color: #333;
  --border-color: #ddd;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

nav {
  background: var(--secondary-color);
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

main {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3 {
  font-weight: 600;
  color: var(--secondary-color);
}

a {
  color: var(--primary-color);
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  nav {
    flex-wrap: nowrap;
    overflow-x: visible;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.3rem;
    flex: 1 1 0;
    min-width: 0;
  }

  main {
    padding: 1rem 0.5rem !important;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  section {
    padding: 1rem !important;
  }
}

.ui-style-0 {
  --layout-variant: 'F';
}
