.wdp-rsvp-dashboard-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
}

/* Alert Warning Red Highlight */
.wdp-dashboard-alert-box { 
    padding: 60px 40px; 
    text-align: center; 
    border-radius: 12px;
}
.wdp-alert-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.wdp-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.wdp-warning-icon { color: #dc2626; margin-bottom: 5px; }
.wdp-alert-text { font-size: 16px; font-weight: 500; line-height: 1.6; max-width: 100%; }
.wdp-alert-text strong { color: #7f1d1d; font-weight: 700; text-decoration: underline; }

.wdp-dashboard-header { margin-bottom: 25px; }
.wdp-dashboard-header h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; color: #111827; }
.wdp-dashboard-header p { margin: 0; font-size: 15px; color: #6b7280; line-height: 1.6; }

.wdp-dashboard-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-bottom: 25px;
}
.wdp-stat-card {
    background: #fff; padding: 24px; border-radius: 12px;
    display: flex; align-items: center;
    transition: transform 0.2s;
}
.wdp-stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    margin-right: 15px; flex-shrink: 0;
}
.wdp-stat-info h4 { margin: 0; font-size: 12px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.wdp-stat-val { font-size: 24px; font-weight: 700; color: #111827; display: block; margin-top: 2px; }

/* Stat Icons Initial Defaults */
.wdp-stat-icon.wdp-icon-ucapan { background-color: #eff6ff; color: #3b82f6; }
.wdp-stat-icon.wdp-icon-hadir { background-color: #ecfdf5; color: #10b981; }
.wdp-stat-icon.wdp-icon-tidak-hadir { background-color: #fef2f2; color: #ef4444; }
.wdp-stat-icon.wdp-icon-masih-ragu { background-color: #eff6ff; color: #3b82f6; }

.wdp-rsvp-toolbar {
    background: #fff; padding: 15px; border-radius: 12px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.wdp-tb-search { flex: 5; }
.wdp-tb-filter { flex: 2; }
.wdp-tb-refresh { flex: 2; }
.wdp-tb-export { flex: 2; }

.wdp-input-search, .wdp-input-select {
    width: 100%; box-sizing: border-box;
    padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; outline: none; transition: all 0.2s;
    height: 42px;
    line-height: normal;
}
.wdp-input-search:focus, .wdp-input-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

.wdp-dashboard-btn {
    width: 100%;
    padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; transition: all 0.2s;
    height: 42px;
    box-sizing: border-box;
    line-height: 1;
}

/* Strict Isolation for Action Buttons SVG Icons (Segarkan Data & Ekspor CSV) */
.wdp-dashboard-btn svg,
.wdp-btn-refresh svg,
.wdp-btn-export svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.wdp-btn-refresh { background: #3b82f6; color: #fff; }
.wdp-btn-refresh:hover { background: #2563eb; transform: translateY(-1px); }

.wdp-btn-export { background: #3b82f6; color: #fff; }
.wdp-btn-export:hover { background: #2563eb; transform: translateY(-1px); }

.wdp-dashboard-table-wrapper {
    background: #fff; border-radius: 12px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; border: 1px solid #f3f4f6; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.wdp-dashboard-table {
    width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; font-size: 14px;
}
.wdp-dashboard-table th {
    background: #f9fafb; padding: 16px; font-weight: 600; color: #374151; font-size: 13px; text-transform: uppercase; letter-spacing: 0.025em;
    border-bottom: 1px solid #f3f4f6;
}
.wdp-dashboard-table td { padding: 16px; border-bottom: 1px solid #f3f4f6; color: #4b5563; }
.wdp-dashboard-table tr:last-child td { border-bottom: none; }
.wdp-dashboard-table tr:hover { background: #f9fafb; }

.wdp-col-name { font-weight: 600; color: #111827; }
.wdp-col-msg { max-width: 320px; white-space: normal; line-height: 1.6; }
.wdp-col-note { max-width: 250px; white-space: normal; line-height: 1.6; font-style: italic; }
.wdp-empty-cell { text-align: center; padding: 60px !important; color: #9ca3af; font-weight: 500; }

.wdp-badge {
    padding: 6px 12px; border-radius: 9999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.025em;
    display: inline-block;
}
.wdp-badge.hadir { background: #dcfce7; color: #166534; }
.wdp-badge.tidak_hadir { background: #fee2e2; color: #991b1b; }
.wdp-badge.masih_ragu { background: #fef3c7; color: #92400e; }
.wdp-badge.belum_konfirmasi { background: #f3f4f6; color: #374151; }

.wdp-table-footer {
    padding: 16px 20px; background: #fff; border: 1px solid #f3f4f6; border-radius: 12px; margin-top: 20px;
    display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: #6b7280;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.wdp-entries-per-page { padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; background: #fff; outline: none; }

.wdp-pagination { display: flex; gap: 10px; }
.wdp-btn-prev, .wdp-btn-next {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e5e7eb; background: #ffffff; color: #374151; border-radius: 8px; cursor: pointer; transition: all 0.2s ease;
    outline: none; box-sizing: border-box; overflow: hidden;
}
.wdp-btn-prev svg, .wdp-btn-next svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}
.wdp-btn-prev svg, .wdp-btn-next svg,
.wdp-btn-prev svg *, .wdp-btn-next svg * {
    stroke: currentColor;
    fill: none;
    transition: stroke 0.2s ease, width 0.2s ease, height 0.2s ease;
    pointer-events: none;
}
.wdp-btn-prev:hover, .wdp-btn-next:hover { border-color: #3b82f6; color: #3b82f6; }
.wdp-btn-prev:disabled, .wdp-btn-next:disabled { opacity: 0.4; cursor: not-allowed; }

/* Override disabled state in Elementor Editor so controls always reflect live styling */
body.elementor-editor-active .wdp-btn-prev:disabled,
body.elementor-editor-active .wdp-btn-next:disabled,
body.elementor-editor-preview .wdp-btn-prev:disabled,
body.elementor-editor-preview .wdp-btn-next:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
}

@media (max-width: 768px) {
    .wdp-rsvp-toolbar { flex-direction: column; align-items: stretch; }
    .wdp-table-footer { flex-direction: column; gap: 20px; }
    .wdp-dashboard-table-wrapper { border-radius: 8px; }
    .wdp-dashboard-table th,
    .wdp-dashboard-table td { padding: 12px 10px; font-size: 13px; }
    .wdp-col-msg { max-width: 180px; }
}