body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
}

header {
  background-color: #2c3e50;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

header button {
  background: #e74c3c;
  border: none;
  padding: 0.5rem 1rem;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

main {
  display: flex;
  height: calc(100vh - 80px);
}

.sidebar {
  width: 250px;
  background: #34495e;
  color: white;
  padding: 1rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: #2c3e50;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar li:hover {
  background: #1abc9c;
}

.main-content {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  background: #fff;
}

.content-section {
  display: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 500px;
  margin-top: 1rem;
}

form input, form button, form select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  background-color: #27ae60;
  color: white;
  border: none;
  cursor: pointer;
}

form button:hover {
  background-color: #219150;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table, th, td {
  border: 1px solid #ccc;
}

th, td {
  padding: 0.75rem;
  text-align: left;
}

th {
  background: #ecf0f1;
}

img {
  max-width: 80px;
  border-radius: 6px;
}

#auth-section, #farm-section {
  padding: 2rem;
  max-width: 600px;
  margin: auto;
}

#register-box, #login-box {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#user-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}
