/* ✅ Genel hücre yapısı (Admin) */
.cb-admin-cell {
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    line-height: 24px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    background: #fdfdfd;
}

/* ✅ Cevap girilmiş kutular */
.cb-admin-cell.filled {
    background-color: #e0ffe0;
}

/* ✅ Soru eklenebilir alan */
.cb-admin-cell:not(.filled):not(.image-block):not(.disabled-cell) {
    background-color: #ffff00;
    border: 1px solid #bbb;
}

/* ❌ Görsel hücre */
.cb-admin-cell.image-block {
    background: transparent !important;
    border: none !important;
    pointer-events: none !important;
}

/* ❌ Boş (kullanılmayan) hücre */
.cb-blocked {
    background-color: #999 !important;
    pointer-events: none;
    opacity: 0.5;
}

/* ❌ Deaktif hücre */
.cb-admin-cell.disabled-cell {
    background-color: #fff !important;
    border: none !important;
    pointer-events: none;
}


/* ✅ Görseller */
.cb-grid-image {
    position: absolute;
    z-index: 1;
    object-fit: fill;
    pointer-events: none;
    display: block;
}

/* ✅ Etiketler */
.cb-question-label {
    font-size: 9px;
    line-height: 1.1;
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 1px 2px;
    max-width: 55px;
    overflow: hidden;
    white-space: normal;
}

/* ✅ Grid konteyner */
#cb-admin-grid-wrapper,
.cb-admin-container {
    position: relative;
}

/* =============================== */
/* 🎯 KULLANICI TARAFI (Frontend) */
/* =============================== */

/* 🎯 Tooltip kutusu */
.cb-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cb-modal {
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.cb-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
    font-size: 16px;
    border-radius: 6px;
    position: relative;
}

.cb-close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.cb-image.cb-left,
.cb-image.cb-right {
    position: absolute;
    z-index: 1;
}

.cb-grid-wrapper {
    position: relative;
}
.cb-admin-cell {
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    text-align: center;
    position: relative;
    padding: 0;
    margin: 0;
}

.cb-admin-cell input {
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    border: none;
    outline: none;
    background-color: #fff;
}

.cb-admin-cell.cb-blocked {
    background-color: #999 !important;
    pointer-events: none;
    opacity: 0.5;
}

.cb-success {
    margin-top: 10px;
    padding: 10px;
    background: #e0ffe0;
    border: 1px solid green;
    text-align: center;
    font-weight: bold;
}
.cb-grid-image {
    z-index: 0;
    pointer-events: none;
}
.cb-admin-cell {
    position: relative;
    z-index: 1;
}
.cb-admin-cell {
    position: relative;
}
/* 🎯 OKLAR – Genel stil */
.cb-arrow {
    position: absolute;
    width: 21px;
    height: 21px;
    color: #000;
    fill: currentColor;
    cursor: pointer;
    pointer-events: all;
    z-index: 4;
}

/* 🎯 SAĞA OK (HORIZONTAL) – Kutunun SAĞ ORTASINA */
.cb-arrow-right {
    top: 50%;
    right: -7px;
    transform: translateY(-50%);
}

/* 🎯 AŞAĞI OK (VERTICAL) – Kutunun ALT ORTASINA */
.cb-arrow-down {
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
}
.cb-input {
  color: #000;               /* Yazı rengi siyah */
  font-weight: bold;         /* Kalın görünsün */
  text-align: center;        /* Ortalı yazı */
  font-size: 16px;           /* Harf biraz daha büyük */
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
}

/* Cevap girilmiş (disabled) kutular için */
.cb-input:disabled {
  color: #000;
  background-color: #ffd181 !important;
  opacity: 1;
}

.cb-input.cb-correct {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    border: 1px solid #388E3C;
}
