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

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

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-box {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  width: 360px;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.form-group input:focus {
  border-color: #4a90d9;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-primary {
  background: #4a90d9;
  color: #fff;
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.btn-primary:hover { background: #357abd; }

.btn-success {
  background: #52c41a;
  color: #fff;
}

.btn-success:hover { background: #43a814; }

.btn-warning {
  background: #faad14;
  color: #fff;
}

.btn-warning:hover { background: #d9950f; }

.btn-sm {
  padding: 4px 12px;
  font-size: 13px;
}

.error-msg {
  color: #ff4d4f;
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
  min-height: 20px;
}

/* Dashboard */
.header {
  background: #fff;
  padding: 16px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 18px;
  color: #1a1a1a;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right span {
  color: #666;
  font-size: 14px;
}

.btn-link {
  background: none;
  border: none;
  color: #4a90d9;
  cursor: pointer;
  font-size: 14px;
}

.btn-link:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 24px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar h2 {
  font-size: 16px;
  color: #333;
}

table {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

th {
  background: #fafafa;
  color: #666;
  font-weight: 500;
}

tr:hover { background: #fafafa; }

.empty-tip {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 420px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal h3 {
  margin-bottom: 20px;
  font-size: 16px;
}

.modal .form-group input,
.modal .form-group select {
  width: 100%;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.btn-cancel:hover { background: #e8e8e8; }

/* Logs section */
.section-title {
  font-size: 16px;
  color: #333;
  margin: 32px 0 16px;
}

.log-table {
  margin-top: 0;
}
