/* Reusable Content Block Picker - TinyMCE Dialog Styles */

.rcb-picker {
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.rcb-search-box {
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding-bottom: 8px;
}

.rcb-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.rcb-search-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.rcb-category {
  margin-bottom: 16px;
}

.rcb-category-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e9ecef;
}

.rcb-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rcb-item {
  padding: 10px 14px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}

.rcb-item:hover,
.rcb-item.rcb-item-hover {
  border-color: #0d6efd;
  background: #f0f6ff;
  box-shadow: 0 1px 4px rgba(13, 110, 253, 0.12);
}

.rcb-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rcb-item-name {
  font-size: 14px;
  color: #212529;
}

.rcb-item-date {
  font-size: 11px;
  color: #adb5bd;
  white-space: nowrap;
}

.rcb-item-desc {
  font-size: 12px;
  color: #6c757d;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

/* === TinyMCE içinde Reusable Content Block görünümü === */
.reusable-content-block {
  border: 2px dashed #6c757d;
  padding: 12px;
  margin: 8px 0;
  position: relative;
  background: #f8f9fa;
  border-radius: 4px;
}

.reusable-content-block .rcb-label {
  position: absolute;
  top: -10px;
  left: 10px;
  background: #6c757d;
  color: #fff;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 3px;
  pointer-events: none;
  user-select: none;
}

.reusable-content-block[contenteditable="false"] {
  outline: none;
}

.reusable-content-block[contenteditable="false"]:hover {
  border-color: #0d6efd;
}
