/* CSS tiket struktur header, body, footer */
.antrian-ticket {
    align-self: center;
    text-align: center;
}
#tiket-antrian {
    max-width: 320px;
    margin: auto;
    padding: 20px;
    border: 2px dashed #000;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#tiket-antrian .ticket-header {
    text-align: center;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

#tiket-antrian .header-tittle {
    font-size: 2em !important;
}

#tiket-antrian .header-tagline {
    font-size: 1.25em !important;
}

#tiket-antrian .ticket-body {
    padding: 5px 0;
}

#tiket-antrian .details p {
    margin: 0 !important;
}

#tiket-antrian .ticket-footer {
    text-align: center;
    border-top: 2px dashed #ccc;
    font-size: 12px;
    color: #666;
}


#tiket-antrian .ticket-footer .note {
    font-style: italic;
}


.btn-certificate {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-certificate:hover {
    background-color: #45a049;
}

#tiket-antrian .download-button {
    text-align: center;
    margin-top: 20px;
}

/* CSS Form Antrian */

.que-antrian-form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.que-tab-buttons button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin-right: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.que-tab-buttons button.active {
    background-color: #2e7d32; /* warna lebih gelap saat aktif */
}


.que-tab-content {
    display: none;
}
.que-tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.que-tab-content button {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.que-tab-content button :hover {
    background-color: #45a049;
}

#que-antrian-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffffdd;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#que-antrian-form input,
#que-antrian-form select {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#que-antrian-form input:focus,
#que-antrian-form select:focus, #que-antrian-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

#que-antrian-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.que-submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
#que-antrian-form .flatpickr-calendar {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  background: #000;
  color: #ff0;
}
#que-antrian-form .flatpickr-current-month {
    display: flex;
}
#que-antrian-form .flatpickr-day.selected {
  background: #ff0;
  color: #000;
}


@media (max-width: 480px) {
    .que-antrian-form-container {
        padding: 1rem;
        max-width: 100%;
    }
    
}


/* Style untuk tabel */
.tanggal-filter-form {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    overflow-x: auto;
}

.tanggal-filter-input,
.status-filter-input {
    
    font-size: 14px;
    border: 1.8px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.tanggal-filter-input:focus,
.status-filter-input:focus {
    border-color: #2196f3;
    outline: none;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
}

.tanggal-filter-submit {
    background-color: #2196f3;
    color: #fff;
    border: none;
    padding: 9px 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tanggal-filter-submit:hover {
    background-color: #1976d2;
}


.que-pagination {
    margin-top: 20px;
    text-align: center;
}
.que-pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #f1f1f1;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.que-pagination a.active {
    background: #000;
    color: #ff0;
    font-weight: bold;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    min-width: 600px; /* atau lebih sesuai kolomnya */
}

.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

/* Styling untuk header tabel */
.wp-list-table th {
    background-color: #0073aa;
    color: white;
    padding: 10px;
    text-align: left;
}

/* Styling untuk baris tabel */
.wp-list-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

/* Styling untuk baris yang dihover */
.wp-list-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Styling untuk tombol panggil */
.btn-panggil, .btn-certificate {
    background-color: #28a745;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.btn-update-status, .btn-update-poli {
    background-color: #0073aa;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px;
}

/* Hover effect untuk tombol */
.btn-panggil:hover {
    background-color: #218838;
}

.btn-update-status:hover {
    background-color: #0056b3;
}

#status-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }

  #status-modal .modal-content {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-family: sans-serif;
  }

  #status-modal p {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
  }

  .status-option {
    background-color: #e0e0e0;
    border: none;
    color: #333;
    padding: 10px 16px;
    margin: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
  }

  .status-option[data-status="selesai"] {
    background-color: #4caf50;
    color: white;
  }

  .status-option[data-status="diperiksa"] {
    background-color: #2196f3;
    color: white;
  }

  .status-option:hover {
    opacity: 0.9;
    transform: scale(1.03);
  }

  #close-modal {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
  }

  #close-modal:hover {
    opacity: 0.9;
  }
  
  #poli-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#poli-modal .modal-content {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-family: sans-serif;
}

#poli-modal label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
}

#poli-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 20px;
}

#poli-update-btn {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#poli-update-btn:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

#close-poli-modal {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: 10px;
}

#close-poli-modal:hover {
    opacity: 0.9;
}


/* Styling untuk tabel body */
.wp-list-table tbody tr td {
    text-align: center;
}

/* Styling untuk kolom nomor antrian agar lebih menonjol */
.wp-list-table tbody tr td:first-child {
    font-weight: bold;
    color: #0073aa;
}

/* Styling untuk kolom aksi agar tombol berada di tengah */
.wp-list-table td:last-child {
    text-align: center;
}

