/* =============================================
   RESET DAN BASE STYLE UNTUK MENCEGAH TUMPANG TINDIH 
   ============================================= */
.pendaftaran-admin-frontend * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #1d2327;
}

.pendaftaran-admin-frontend {
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* =============================================
   TOMBOL ADMIN STYLE 
   ============================================= */
/* PERBAIKAN VERSION */
/* Style dasar untuk semua tombol */
.pendaftaran-admin-frontend .button,
.pendaftaran-admin-frontend button,
.pendaftaran-admin-frontend input[type="button"],
.pendaftaran-admin-frontend input[type="submit"],
.pendaftaran-admin-frontend input[type="reset"] {
    display: inline-block;
    text-decoration: none;
    font-size: 12px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0 5px 5px 0;
    padding: 8px 12px; /* Diubah dari 0 10px untuk padding vertikal lebih baik */
    cursor: pointer;
    border-color: #2271b1;
    color: #2271b1;
    background-color: #f0f0f1;
    border: 1px solid ; /* Border lebih spesifik */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 4px!important;
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: middle; /* Diubah dari top ke middle untuk alignment lebih baik */
    transition: all 0.2s ease-in-out; /* Transisi lebih halus */
    font-weight: 600; /* Lebih tebal */
    text-shadow: none;
    box-shadow: none;
}
/* =============================================
   TOMBOL FILTER DAN RESET KHUSUS - PERBAIKAN FINAL
   ============================================= */
.pendaftaran-admin-frontend input[type="submit"][name="filter_action"],
.pendaftaran-admin-frontend input[type="submit"].button-filter,
.pendaftaran-admin-frontend input[type="submit"] {
    background-color: #2271b1 !important;
    border-color: #2271b1 !important;
    color: white !important;
}

.pendaftaran-admin-frontend input[type="submit"][name="filter_action"]:hover,
.pendaftaran-admin-frontend input[type="submit"][name="filter_action"]:focus,
.pendaftaran-admin-frontend input[type="submit"].button-filter:hover,
.pendaftaran-admin-frontend input[type="submit"].button-filter:focus,
.pendaftaran-admin-frontend input[type="submit"]:hover,
.pendaftaran-admin-frontend input[type="submit"]:focus {
    background-color: #135e96 !important;
    border-color: #135e96 !important;
    color: white !important;
}

.pendaftaran-admin-frontend a.button,
.pendaftaran-admin-frontend input[type="reset"],
.pendaftaran-admin-frontend input[type="reset"].button-reset {
    background-color: #f6f7f7 !important;
    border-color: #dcdcde !important;
    color: #2271b1 !important;
}

.pendaftaran-admin-frontend a.button:hover,
.pendaftaran-admin-frontend a.button:focus,
.pendaftaran-admin-frontend input[type="reset"]:hover,
.pendaftaran-admin-frontend input[type="reset"]:focus,
.pendaftaran-admin-frontend input[type="reset"].button-reset:hover,
.pendaftaran-admin-frontend input[type="reset"].button-reset:focus {
    background-color: #f0f0f1 !important;
    border-color: #c0c0c4 !important;
    color: #f0e6e4 !important;
}
/*====================================*/
/* Remove default button styling completely */
.pendaftaran-admin-frontend .button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Focus state */
.pendaftaran-admin-frontend .button:focus {
    outline: none;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color, #2271b1);
}

/* Active state */
.pendaftaran-admin-frontend .button:active {
    transform: translateY(1px);
}

/* Primary Button (Biru) */

.pendaftaran-admin-frontend .button.button-primary {
    background: #64baf7 !important;
    border-color: #64baf7 !important;
    color: white !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.pendaftaran-admin-frontend .button.button-primary:hover,
.pendaftaran-admin-frontend .button.button-primary:focus {
    background: #2d9ff0 !important;
    border-color: #2d9ff0 !important;
    color: white !important;
}


/* Untuk memastikan override */
.pendaftaran-admin-frontend .button-primary {
    background: #64baf7 !important;
    border-color: #64baf7 !important;
}

/* Secondary Button (Abu-abu) */
.pendaftaran-admin-frontend .button.button-secondary {
    background: #f6f7f7;
    border-color: #dcdcde;
    color: #2271b1;
}

.pendaftaran-admin-frontend .button.button-secondary:hover,
.pendaftaran-admin-frontend .button.button-secondary:focus {
    border-color: #c0c0c4;
    color: #135e96;
    background: #f0f0f1;
}

/* Danger Button (Merah) */
.pendaftaran-admin-frontend .button.button-danger {
    background: #d63638 !important;
    border-color: #d63638 !important;
    color: #fff;
}

.pendaftaran-admin-frontend .button.button-danger:hover,
.pendaftaran-admin-frontend .button.button-danger:focus {
    background: #b32d2e !important;
    border-color: #b32d2e !important;
    color: #fff;
}

/* Small Button */
.pendaftaran-admin-frontend .button.button-small {
    height: 24px;
    line-height: 1.5;
    font-size: 11px;
    padding: 0 8px;
}

/* Disabled State */
.pendaftaran-admin-frontend .button:disabled,
.pendaftaran-admin-frontend .button[disabled] {
    color: #3169a1 !important;
    background: #f6f7f7 !important;
    border-color: #dcdcde !important;
    cursor: default;
}

/* Tombol Verifikasi (Biru) */
.pendaftaran-admin-frontend .button.button-verify {
    background: #45ef5e !important;
    border-color: #45ef5e  !important;
    color: white !important;
}

.pendaftaran-admin-frontend .button.button-verify:hover,
.pendaftaran-admin-frontend .nutton.button-verify:focus {
    background: #14b32c!important;
    border-color: #14b32c!important;
    color: white;
}

/* Tombol Tolak (Kuning/Oranye) */
.pendaftaran-admin-frontend .button.button-reject {
    background: #ffb900 !important;
    border-color: #ffb900!important;
    color: white !important; /* Warna teks gelap untuk kontras */
}

.pendaftaran-admin-frontend .button.button-reject:hover,
.pendaftaran-admin-frontend .button .button-reject:focus {
    background: #dba617!important;
    border-color: #dba617!important;
    color: white;
}

/* Tombol Hapus (Merah) */
.pendaftaran-admin-frontend .button.button-delete {
    background: #d63638!important;
    border-color: #d63638!important;
    color: white !important;
}

.pendaftaran-admin-frontend .button.button-delete:hover,
.pendaftaran-admin-frontend .button.button-delete:focus {
    background: #b32d2e!important;
    border-color: #b32d2e!important;
    color: white !important;
}



/* Untuk memastikan override style WordPress */
.pendaftaran-admin-frontend .button {
    border-color: #2271b1 !important;
    color: #2271b1;
    background-color: #f0f0f1 !important;
}


/* =============================================
   TABLE STYLE 
   ============================================= */
.pendaftaran-admin-frontend .wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.pendaftaran-admin-frontend .wp-list-table th {
    background: #f0f0f1;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #dcdcde;
    font-weight: 600;
}

.pendaftaran-admin-frontend .wp-list-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #dcdcde;
    vertical-align: middle;
}

.pendaftaran-admin-frontend .wp-list-table tr:last-child td {
    border-bottom: none;
}

.pendaftaran-admin-frontend .wp-list-table .check-column {
    width: 2.2em;
    padding: 8px 0 8px 3px;
}

/* =============================================
   CARD DAN FORM CONTAINER 
   ============================================= */
.pendaftaran-admin-frontend .pu-form-container {
    margin-bottom: 20px;
}

.pendaftaran-admin-frontend .pu-form-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    padding: 20px;
    margin-bottom: 20px;
}

.pendaftaran-admin-frontend .pu-form-card h2 {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 20px;
    font-weight: 500;
    color: #1d2327;
}

/* =============================================
   FORM ELEMENTS 
   ============================================= */
.pendaftaran-admin-frontend .pu-form-group {
    margin-bottom: 15px;
}

.pendaftaran-admin-frontend .pu-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.pendaftaran-admin-frontend .pu-form-group input[type="text"],
.pendaftaran-admin-frontend .pu-form-group input[type="email"],
.pendaftaran-admin-frontend .pu-form-group input[type="number"],
.pendaftaran-admin-frontend .pu-form-group input[type="date"],
.pendaftaran-admin-frontend .pu-form-group input[type="time"],
.pendaftaran-admin-frontend .pu-form-group select,
.pendaftaran-admin-frontend .pu-form-group textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background-color: #fff;
    color: #2c3338;
}

.pendaftaran-admin-frontend .pu-form-group textarea {
    min-height: 100px;
}

/* =============================================
   NOTICE DAN STATUS MESSAGES 
   ============================================= */
.pendaftaran-admin-frontend .notice {
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid #fff;
    background: #f6f7f7;
}

.pendaftaran-admin-frontend .notice-success {
    border-left-color: #00a32a;
}

.pendaftaran-admin-frontend .notice-error {
    border-left-color: #d63638;
}

.pendaftaran-admin-frontend .notice-info {
    border-left-color: #72aee6;
}

/* Status indicators */

.status-pending {
    color: #FF9800;
    background: #FFF3E0;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    font-weight: 600;
    content: "Menunggu";
}

.status-verified {
    color: #4CAF50;
    background: #E8F5E9;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    font-weight: 600;
    content: "Terverifikasi";
}

.status-rejected {
    color: #d63638;
    background: #ffebeb;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    font-weight: 600;
    content: "Ditolak";
}

.pendaftaran-admin-frontend .status-rejected {
    color: #d63638;
    font-weight: 500;
}






/* =============================================
   PAGINATION 
   ============================================= */
.pendaftaran-admin-frontend .tablenav-pages {
    margin: 10px 0;
    float: right;
}

.pendaftaran-admin-frontend .tablenav-pages a,
.pendaftaran-admin-frontend .tablenav-pages span {
    display: inline-block;
    padding: 5px 10px;
    margin-left: 2px;
    border: 1px solid #dcdcde;
    background: #f6f7f7;
    color: #2271b1;
    text-decoration: none;
    border-radius: 2px;
}

.pendaftaran-admin-frontend .tablenav-pages span.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS 
   ============================================= */
@media screen and (max-width: 782px) {
    .pendaftaran-admin-frontend .wp-list-table {
        border: none;
    }
    
    .pendaftaran-admin-frontend .wp-list-table thead {
        display: none;
    }
    
    .pendaftaran-admin-frontend .wp-list-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #c3c4c7;
    }
    
    .pendaftaran-admin-frontend .wp-list-table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #dcdcde;
    }
    
    .pendaftaran-admin-frontend .wp-list-table td:before {
        content: attr(data-colname);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        text-align: left;
    }
    
    .pendaftaran-admin-frontend .wp-list-table td.actions {
        text-align: center;
    }
    
    .pendaftaran-admin-frontend .wp-list-table td.actions:before {
        display: none;
    }
}


/* Sertifikat */
.pu-sertifikat-container {
    margin: 20px 0;
}

.pu-sertifikat-actions {
    white-space: nowrap;
}

.pu-sertifikat-actions .button {
    margin-right: 5px;
}

.status-expired {
    color: #d63638;
    background: #ffebeb;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    font-weight: 600;
}

/* Filter Styles */
.pu-filter-card {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.pu-filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pu-filter-row .pu-form-group {
    flex: 1;
    min-width: 200px;
}

.pu-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.pu-no-data {
    color: #666;
    font-style: italic;
    margin: 5px 0 0;
}

/* Filter Styles */
.pu-filter-card {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.pu-filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pu-filter-row .pu-form-group {
    flex: 1;
    min-width: 200px;
}

.pu-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.pu-no-data {
    color: #666;
    font-style: italic;
    margin: 5px 0 0;
}

/* =============================================
   HEADER DAFTAR SERTIFIKAT 
   ============================================= */
.pu-sertifikat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.pu-sertifikat-header h2 {
    margin: 0;
    font-size: 20px;
}

/* Tombol export */
.pu-sertifikat-header .button {
    margin: 0;
}

/* Icon export */
.pu-sertifikat-header .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}