/* === General Bulletin Board Styles === */
.gtb-bb-board {
  display: block;
  padding: 24px;
  margin: 30px auto;
  max-width: 400px;
  min-height: 120px;
  border-radius: 10px;
  font-family: inherit;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(0,255,255,0.3);
  transition: all 0.3s ease;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* === Editor Form Box === */
.gtb-bb-editor,
.gtb-corkboard-editor {
  background: #1a1a1a;
  border: 2px solid #ccc;
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  font-family: inherit;
  display: block;
  min-height: 100px;
}

.gtb-corkboard-editor-box {
  border: 1px solid #ccc;
  padding: 15px;
  margin: 30px auto;
  border-radius: 10px;
  max-width: 400px;
}

.gtb-bb-editor textarea,
.gtb-corkboard-editor textarea {
  width: 100%;
  margin-bottom: 10px;
  background: #333;
  color: #fff;
  border: 1px solid #666;
  border-radius: 6px;
  padding: 8px;
}

.gtb-bb-editor select,
.gtb-corkboard-editor select {
  margin-right: 6px;
  background: #222;
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  border: 1px solid #666;
  font-size: 12px;
}

.gtb-bb-status {
  margin-left: 10px;
  color: #00ff99;
  font-weight: bold;
}

/* === Corkboard === */
.gtb-corkboard {
  background: #d6b47c url('https://www.transparenttextures.com/patterns/cork.png') repeat;
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: flex-start;
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.sticky-note {
  flex: 1 1 80px;
  max-width: 100px;
  min-height: 60px;
  padding: 6px;
  border-radius: 6px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  font-size: clamp(10px, 2vw, 13px);
  font-weight: bold;
  white-space: pre-wrap;
  word-wrap: break-word;
  position: relative;
  color: #000 !important;
  cursor: pointer;
  overflow: hidden;
}

.sticky-text {
  text-align: left;
  color: #000 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-note.yellow { background: #fff78c; }
.sticky-note.pink   { background: #ffc8dd; }
.sticky-note.blue   { background: #a0c4ff; }
.sticky-note.green  { background: #caffbf; }
.sticky-note.purple { background: #e0b3ff; }

.sticky-img img {
  max-width: 100%;
  max-height: 40px;
  margin-bottom: 4px;
  border-radius: 3px;
  display: block;
}

/* === Modal Styles === */
.gtb-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gtb-modal-content {
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  background: #fff; /* fallback */
  color: #000;
}

.gtb-modal-content.yellow { background: #fff78c; color: #000; }
.gtb-modal-content.pink   { background: #ffc8dd; color: #000; }
.gtb-modal-content.blue   { background: #a0c4ff; color: #000; }
.gtb-modal-content.green  { background: #caffbf; color: #000; }
.gtb-modal-content.purple { background: #e0b3ff; color: #000; }

.gtb-modal-content h3 {
  color: #000 !important;
  font-size: 20px !important;
  font-weight: bold;
  line-height: 1.3;
  margin-top: 0;
}

.gtb-modal-content img.gtb-modal-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.gtb-modal-close {
  margin-top: 20px;
  padding: 8px 16px;
  background: transparent;
  color: #00ffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.gtb-modal-close:hover {
  text-decoration: underline;
  background: transparent;
}
