@font-face {
  font-family: "ITCBauhausHeavy";
  src: url("ressources/ITCBauhausHeavyRegular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "ITCBauhausHeavy";
  background: #053225;
  overflow: hidden;
  color: #e0e0e0;
}

/* the whole page */
.container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* title and subtitle*/
.title-zone {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

.title-text {
  font-size: 48px;
  font-weight: bold;
  color: #a8dadc;
  margin-bottom: 5px;
}

.header-text {
  font-size: 32px;
  color: #8db8b0;
}

/* add meeting button*/
.add-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  background: #0a5e47;
  color: #e0e0e0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.add-btn:hover {
  background: #0d7a5c;
}

#canvas {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

/* Hide scrollbar on desktop browsers */
#canvas::-webkit-scrollbar {
  display: none;
}

#canvas {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

#canvas svg {
  display: block;
  min-width: 100%;
}

.bubble {
  cursor: pointer;
  transition: all 0.2s;
}

.bubble:hover circle {
  stroke-width: 3;
}

.bubble text {
  pointer-events: none;
  user-select: none;
}

.person-node {
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 50, 37, 0.85);
}

.modal-content {
  background: #0a4a38;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #0d7a5c;
}

.close {
  color: #8db8b0;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
}

.close:hover {
  color: #a8dadc;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #a8dadc;
}

.modal-content label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 500;
  color: #8db8b0;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  border: 1px solid #0d7a5c;
  border-radius: 6px;
  font-size: 14px;
  background: #053225;
  color: #e0e0e0;
}

.modal-content input:focus {
  outline: none;
  border-color: #10a37f;
}

.modal-content select {
  width: 100%;
  padding: 10px;
  border: 1px solid #0d7a5c;
  border-radius: 6px;
  font-size: 14px;
  background: #053225;
  color: #e0e0e0;
}

.modal-content select:focus {
  outline: none;
  border-color: #10a37f;
}

.add-person-section {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.add-person-section input {
  flex: 1;
}

.add-person-section select {
  flex: 1;
}

.image-upload-section {
  margin-top: 10px;
}

.image-upload-section label {
  display: block;
  margin-bottom: 5px;
}

#peopleList {
  margin-bottom: 10px;
  min-height: 30px;
}

.person-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a5e47;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 16px;
  font-size: 14px;
  color: #e0e0e0;
  border: 1px solid #0d7a5c;
}

.person-tag img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.person-tag .remove {
  margin-left: 8px;
  cursor: pointer;
  color: #a8dadc;
  font-weight: bold;
}

.person-tag .remove:hover {
  color: #e0e0e0;
}

#addPersonBtn {
  margin-top: 8px;
  padding: 8px 16px;
  background: #0a5e47;
  color: #e0e0e0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#addPersonBtn:hover {
  background: #0d7a5c;
}

.modal-actions {
  margin-top: 25px;
  display: flex;
  gap: 10px;
}

#saveBtn {
  flex: 1;
  padding: 12px;
  background: #0a5e47;
  color: #e0e0e0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

#saveBtn:hover {
  background: #0d7a5c;
}

.delete-btn {
  padding: 12px 20px;
  background: #8b2635;
  color: #e0e0e0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.delete-btn:hover {
  background: #a82e40;
}