/* 🔒 Locked day checkbox styling */
.day-checkbox[data-locked-by-other="1"] {
  position: relative;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #444;
  border-radius: 3px;
  background-color: #f9f9f9;
  cursor: not-allowed;
  vertical-align: middle;
}

.day-checkbox[data-locked-by-other="1"]::after {
  content: "✖";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 14px;
  color: black;
  font-weight: 600;
  pointer-events: none;
}


.day-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #28a745; /* green for active ones */
  cursor: pointer;
  position: relative;
}

/* जब checkbox disable हो */
.day-checkbox:disabled {
  cursor: not-allowed;
  accent-color: #999; /* grey outline */
  background-color: #999 !important;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.65);
  border-radius: 2px;
}

/* कुछ browsers accent-color override नहीं करते, fallback */
.day-checkbox:disabled::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  pointer-events: none;
}

/* ====== तेरा पुराना CSS जस का तस ====== */
.tg-wrapper { max-width: 900px; margin: auto; padding: 20px; border: 1px solid #ddd; border-radius: 8px; }
.tg-wrapper form { margin-bottom: 20px; }
.tg-wrapper label { display: block; margin-top: 10px; font-weight: bold; }
.tg-wrapper input,
.tg-wrapper button,
.tg-wrapper textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#tg_generate { margin-top: 15px; padding: 10px 20px; background: #0073aa; color: white; border: none; border-radius: 5px; cursor: pointer; }
#tg_generate:hover { background: #005f8a; }
#tg-result { margin-top: 20px; }
#tg-table { width: 100%; border-collapse: collapse; text-align: center; }
#tg-table th, #tg-table td { padding: 10px; }

/* ====== Add-on styling for new fields ====== */

/* कुल कालांश, कुल कक्षा, कुल दिन इनपुट्स */
#stt_periods,
#stt_classes,
#stt_days,
.teacher_total_periods {   /* ✅ class का सही use */
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
}
.day-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* हर checkbox-label के बीच gap */
}

.day-cell label {
    display: inline-flex;
    align-items: center;
    gap: 4px;  /* checkbox और नंबर के बीच छोटा gap */
    margin: 0; /* default margin हटाओ */
    font-size: 14px;
    cursor: pointer;
}

.day-cell input[type="checkbox"] {
    appearance: auto;   /* default browser style वापिस */
    -webkit-appearance: auto;
    margin: 0;
}


/* === Buttons === */
.btn-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 6px;
    background: #f43676;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}


.btn-btn:hover {
    background: #302d55;
}


.mapping-block.highlight {
  border: 2px solid #28a745;
  box-shadow: 0 0 10px #28a745;
}

/* ✅ दिन वाले checkbox के बीच का gap कम */
.mapping-block .day-cell label {
  margin-right: 5px !important;
  font-size: 14px;
  color: #1d3557;
}

/* ✅ Action वाले buttons का refined look */
.mapping-block .action-cell button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.mapping-block .action-cell button:hover {
  background: #0056b3;
  transform: scale(1.05);
}

.mapping-block .action-cell button + button {
  margin-left: 6px;
}



.btn-mapping,
.btn-delete {
  background-color: #f83575;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap; /* 🔹 text टूटेगा नहीं */
  transition: background-color 0.2s ease;
}

.btn-mapping:hover,
.btn-delete:hover {
  background-color: #d62e68; /* 🔹 हल्का hover effect */
}

.btn-mapping:focus,
.btn-delete:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(248, 53, 117, 0.4);
}





