* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

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

nav {
  background: #2c3e50;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: #ecf0f1;
  text-decoration: none;
  margin-right: 16px;
  font-size: 14px;
}

nav a:hover {
  color: #3498db;
}

nav .brand {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

nav .nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav .user-info {
  color: #bdc3c7;
  font-size: 13px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h2 {
  margin-bottom: 16px;
  color: #2c3e50;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 12px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #3498db;
}

button,
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #3498db;
  color: #fff;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-secondary {
  background: #95a5a6;
  color: #fff;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.note-list {
  list-style: none;
}

.note-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.note-item:last-child {
  border-bottom: none;
}

.note-item a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
}

.note-item a:hover {
  color: #3498db;
}

.note-meta {
  color: #999;
  font-size: 12px;
}

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.search-bar input {
  flex: 1;
  margin-bottom: 0;
}

.auth-container {
  max-width: 400px;
  margin: 80px auto;
}

.tabs {
  display: flex;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  border-bottom: 2px solid #ddd;
  color: #999;
}

.tab.active {
  border-bottom-color: #3498db;
  color: #2c3e50;
  font-weight: 500;
}

.error {
  color: #e74c3c;
  font-size: 13px;
  margin-bottom: 12px;
}

.success {
  color: #27ae60;
  font-size: 13px;
  margin-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}

.stat-card .number {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
}

.stat-card .label {
  color: #999;
  font-size: 13px;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
}

.user-table th,
.user-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.user-table th {
  color: #999;
  font-size: 12px;
  text-transform: uppercase;
}

.hidden {
  display: none;
}

.import-form {
  display: flex;
  gap: 8px;
}

.import-form input {
  flex: 1;
  margin-bottom: 0;
}
