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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f4f8;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px;
}

header {
  background: #1e6fbf;
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

header .subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
}

.input-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

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

.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s;
}

.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e6fbf;
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #1e6fbf;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #155fa0;
}

.btn-primary:active {
  background: #0f4a80;
}

.list-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.list-header h2 {
  font-size: 1rem;
  color: #444;
}

#count-badge {
  background: #1e6fbf;
  color: white;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 20px;
}

.empty-msg {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  padding: 30px 0;
}

.record-card {
  border: 1px solid #e8edf2;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  position: relative;
  background: #fafcff;
}

.record-card:last-child {
  margin-bottom: 0;
}

.record-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.record-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e6fbf;
}

.record-shift {
  font-size: 0.75rem;
  background: #e8f0fb;
  color: #1e6fbf;
  padding: 2px 8px;
  border-radius: 12px;
}

.record-content {
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #333;
}

.record-actions {
  position: absolute;
  top: 12px;
  right: 12px;
}

.btn-delete {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete:hover {
  background: #fee;
  border-color: #e88;
  color: #c44;
}

@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

  header {
    padding: 16px;
  }

  header h1 {
    font-size: 1.25rem;
  }

  .input-section,
  .list-section {
    padding: 16px;
  }
}
