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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

#app {
  max-width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.header h1 {
  font-size: 20px;
  font-weight: 600;
}

.add-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.add-btn:active {
  transform: scale(0.95);
}

.battery-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.battery-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}

.battery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.battery-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.battery-info p {
  font-size: 14px;
  color: #666;
}

.battery-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  border-radius: 8px;
  transition: background 0.2s;
}

.icon-btn:active {
  background: rgba(0,0,0,0.1);
}

.charge-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.charge-fill {
  height: 100%;
  background: #000;
  border-radius: 4px;
  transition: width 0.3s;
}

.charge-fill.low {
  background: #ff3b30;
}

.charge-fill.medium {
  background: #ff9500;
}

.charge-text {
  font-size: 14px;
  font-weight: 600;
}

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

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
}

.modal-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
}

.form-group input[type="range"] {
  width: calc(100% - 60px);
  margin-right: 8px;
}

#charge-display {
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  width: 50px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

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

.btn-secondary {
  background: #f0f0f0;
  color: #000;
}

.btn-primary:active,
.btn-secondary:active {
  opacity: 0.7;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state p {
  font-size: 16px;
}

