html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  margin: 0;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.card h3 {
  margin: 0;
  color: #555;
}

.card p {
  font-size: 28px;
  font-weight: bold;
  color: #2c7be5;
}

.card a {
  text-decoration: none;
}


.chart-box {
  background: white;
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}


button {
  background: #2c7be5;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #1a5fd0;
}

.section {
  margin-top: 30px;
  scroll-margin-top: 80px;
}

.section h3 {
  margin-bottom: 10px;
  color: #333;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.item small {
  color: #888;
}

.form-box {
  background: white;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

textarea {
  min-height: 80px;
}

.actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.actions button {
  background: #eee;
  color: #333;
  padding: 5px 10px;
  border-radius: 6px;
}

.actions button:hover {
  background: #ddd;
}

.item b {
  color: #2c7be5;
}

.actions button:first-child {
  background: #e7f1ff;
  color: #2c7be5;
}

.actions button:last-child {
  background: #ffe7e7;
  color: #d63031;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-content input,
.modal-content textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.modal-content textarea {
  min-height: 100px;
}

.modal-content {
  width: 400px;
}

#previewFile {
  display: block;
  margin-top: 10px;
  color: #2c7be5;
}