/* Modal styles */
.modal-bg {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44,62,80,0.25);
  align-items: center;
  justify-content: center;
}
.modal-bg.active {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px 22px 28px;
  box-shadow: 0 4px 32px rgba(44,62,80,0.18);
  min-width: 320px;
  max-width: 95vw;
  position: relative;
  animation: modalIn 0.18s;
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 1.5em;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #2d3e50;
}
.add-btn {
  font-size: 1.2em;
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}
.add-btn:hover {
  background: #1769aa;
}
.modal input[type="text"], .modal input[type="color"] {
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}
.modal label {
  display: block;
  margin-bottom: 4px;
  font-size: 1em;
  color: #2d3e50;
  font-weight: 500;
}
.modal input[type="color"] {
  width: 48px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  vertical-align: middle;
  margin-bottom: 18px;
}
.modal button[type="submit"] {
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 1em;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.modal button[type="submit"]:hover {
  background: #1769aa;
}
