/* =============================
   Aksara Mode (Typography Premium)
============================= */
.aksara-mode {
  font-family: 'Noto Sans Batak', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* =============================
   Table Wrapper
============================= */
.batak-table-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 10px;
}

/* =============================
   Table Container
============================= */
.batak-table-container {
  min-width: 600px;
  border-radius: 24px;
  background: #fffaf0; /* ivory lembut (premium kertas) */
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.15),
    inset 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* =============================
   Table Styling
============================= */
.batak-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  border-radius: 24px;
  overflow: hidden;
}

.batak-table th {
  background: linear-gradient(135deg, #cf392c, #a5281e);
  color: #fff;
  padding: 12px;
  border: none;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.2);
}

.batak-table td {
  padding: 12px;
  border: none;
  text-align: center;
  font-size: 1rem;
  background: #fdfdfd;
  color: #222;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
}

/* Hover effect premium */
.batak-table tbody tr:hover td {
  background: #fff4f3;
  color: #cf392c;
  transform: scale(1.01);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}

/* Active cell */
.batak-table td.active {
  background: #cf392c !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6);
  border-radius: 8px;
}

/* =============================
   Modal
============================= */
.modal-batak {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.45);
  animation: fadeIn 0.35s ease;
}

.modal-content-batak {
  background: #fffdf9;
  color: #333;
  padding: 24px 28px;
  border-radius: 28px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  animation: popUp 0.35s ease forwards;
}

.modal-content-batak h2 {
  margin-bottom: 12px;
  font-size: 2.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #cf392c, #a5281e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-content-batak p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s ease;
}

.close-modal:hover {
  color: #CF392C;
  transform: rotate(90deg);
}

/* =============================
   Animations
============================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popUp {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* =============================
   Responsive
============================= */
@media screen and (max-width: 500px) {
  .batak-table {
    font-size: 0.78rem;
  }
  .modal-content-batak h2 {
    font-size: 1.7rem;
  }
}
