#indokit-template-list {
    font-family: 'Segoe UI', sans-serif;
    padding: 2em;
    background-color: #f9f9f9;
}

.indokit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.indokit-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease-in-out;
    position: relative; /* Untuk posisi kategori */
    padding-bottom: 50px; /* beri ruang di bawah untuk tombol */
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.indokit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Container gambar untuk posisi kategori */
.indokit-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Label kategori di pojok atas gambar */
.indokit-card .category {
    position: absolute;
    top: 15px;
    left: 15px;
   background: #000; 
    color: #fff;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    user-select: none;
    z-index: 10;
    

}

#pagination {
    margin-top: 20px;
}
.pagination-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 14px;
    margin: 0 5px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}
.pagination-btn[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
}


.indokit-card h4 {
    margin: 15px 0 6px;
    font-size: 1rem;
    color: #222;
}

.indokit-card hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 8px 0;
}

.indokit-card .description {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 10px;
    min-height: 40px;
}

.indokit-card .status {
    font-weight: 700;
    color: #0073aa;
    background: #d0e7ff;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 12px; /* jarak bawah */
    margin-top: auto;   /* dorong status ke bawah dalam .card-content */
}


/* Container tombol */
.indokit-card .button-container {
    position: absolute;
    bottom: 15px;  /* dari padding card */
    left: 15px;
    right: 15px;
    display: flex !important;
    justify-content: space-between;
    gap: 10px;
}

.indokit-card .button-container .button {
    flex: 1; /* buat tombol sama lebar */
    max-width: 48%; /* biar ada jarak */
}

/* Tombol Preview */
.indokit-card .button.preview {
    background-color: #0073aa;
    color: #fff;
}

.indokit-card .button.preview:hover {
    background-color: #005f87;
}

/* Tombol Import */
.indokit-card .button.import {
    background-color: #28a745;
    color: #fff;
}

.indokit-card .button.import:hover {
    background-color: #1e7e34;
}



.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.template-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.action-button {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Warna-warna tombol */
.action-button.whatsapp {
  background-color: #25D366;
}

.action-button.request {
  background-color: #007BFF;
}

.action-button.telegram {
  background-color: #0088cc;
}

/* Responsif */
@media (max-width: 600px) {
  .action-button {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* Gaya untuk kontainer filter */
#filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Gaya untuk input teks dan dropdown */
#filter-container input[type="text"],
#filter-container select {
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    min-width: 220px;
    transition: all 0.2s ease-in-out;
}

/* Gaya untuk input teks dan dropdown saat fokus */
#filter-container input[type="text"]:focus,
#filter-container select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
    outline: none;
}

/* Gaya untuk tombol Terapkan */
#apply-filter-btn {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Gaya untuk tombol Terapkan saat hover */
#apply-filter-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}


@media (max-width: 768px) {
  #filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  #filter-container input,
  #filter-container select,
  #apply-filter-btn {
    width: 100%;
  }
}

#top-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 25px;
}

.btn-top {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-top:hover {
  transform: translateY(-1px);
}

/* Warna Khusus untuk Setiap Tombol */
.btn-top.wa {
  background-color: #25d366;
}
.btn-top.wa:hover {
  background-color: #1ebc5d;
}

.btn-top.request {
  background-color: #ff9800;
}
.btn-top.request:hover {
  background-color: #e68900;
}

.btn-top.telegram {
  background-color: #0088cc;
}
.btn-top.telegram:hover {
  background-color: #0073b1;
}

@media (max-width: 768px) {
  #top-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-top {
    width: 100%;
    text-align: center;
  }
}

.announcement-box {
  background: #f0f9ff;
  border-left: 5px solid #38bdf8;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.announcement-box h3 {
  margin-top: 0;
  font-size: 18px;
  color: #0c4a6e;
  margin-bottom: 10px;
}

.announcement-box ul {
  padding-left: 18px;
  margin: 0;
}

.announcement-box ul li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #0f172a;
}

#pengumuman {
  display: none;
  background: #fef9e7;
  border-left: 4px solid #f7b731;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#pengumuman h3 {
  margin: 0 0 15px;
  font-size: 20px;
  color: #e67e22;
  display: flex;
  align-items: center;
  gap: 8px;
}

.baris-pengumuman {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid #fae5c3;
  font-size: 14px;
  line-height: 1.5;
}

.baris-pengumuman:last-child {
  border-bottom: none;
}

.baris-pengumuman .tanggal {
  color: #999;
  min-width: 130px;
  font-style: italic;
  flex-shrink: 0;
}

.baris-pengumuman .judul {
  font-weight: 600;
  color: #333;
  margin-right: 6px;
  flex-shrink: 0;
}

.baris-pengumuman .isi {
  color: #555;
  flex: 1;
}

@media (max-width: 600px) {
  .baris-pengumuman {
    flex-direction: column;
    gap: 2px;
  }

  .baris-pengumuman .tanggal {
    margin-bottom: 3px;
  }
}

/* 1. Ubah container tombol jadi block di frontend */
/* Khusus frontend: ubah container tombol jadi block */
body:not(.wp-admin) .indokit-card .button-container {
    display: block !important;
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 0;
}

/* Tombol Preview di frontend jadi full lebar */
body:not(.wp-admin) .indokit-card .button.preview {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    background-color: #0073aa;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
}



/* 4. Sembunyikan tombol import di frontend */
body:not(.wp-admin) .indokit-card .button.import {
    display: none !important;
}

/* Sembunyikan top button dan pengumuman di frontend (bukan admin) */
body:not(.wp-admin) #top-buttons,
body:not(.wp-admin) #pengumuman {
    display: none !important;
}


