/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Prevent text selection - will be overridden for development */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Prevent drag */
    -webkit-user-drag: none;
}

/* Allow selection for inputs and textareas */
input, textarea, [contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Development mode - allow text selection everywhere */
body.development-mode * {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

:root {
    --primary-color: #1976d2;
    --primary-dark: #1565c0;
    --secondary-color: #f57c00;
    --success-color: #388e3c;
    --error-color: #d32f2f;
    --warning-color: #fbc02d;
    --text-primary: #212121;
    --text-secondary: #757575;
    --bg-light: #fafafa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: var(--text-primary);
}

/* ===== Authentication ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #0d47a1 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.auth-container::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.auth-card {
    background: white;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 56px;
    margin-bottom: 16px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.auth-card h1 {
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-version {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
    font-weight: 500;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.auth-card .version {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 24px;
}

#login-form .form-group {
    margin-bottom: 20px;
}

#login-form .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

#login-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f8f9fa;
}

#login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.08);
}

#login-form .form-group input::placeholder {
    color: #bdbdbd;
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    color: var(--error-color);
    padding: 12px 16px;
    background-color: #ffebee;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    border-left: 4px solid var(--error-color);
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer-text {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* ===== Buttons ===== */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #9e9e9e;
    color: white;
}

.btn-secondary:hover {
    background-color: #757575;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-success {
    background-color: #4caf50;
    color: white;
}

.btn-success:hover {
    background-color: #388e3c;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-broadcast {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    background-color: var(--primary-color);
    color: white;
}

/* ===== Messages ===== */
.error-message {
    color: var(--error-color);
    padding: 12px;
    background-color: #ffebee;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 14px;
}

.message {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.message.success {
    background-color: #e8f5e9;
    color: var(--success-color);
}

.message.error {
    background-color: #ffebee;
    color: var(--error-color);
}

/* ===== Navigation ===== */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-title h1 {
    font-size: 20px;
    margin-bottom: 4px;
}

.version-small {
    font-size: 12px;
    opacity: 0.9;
}

.navbar-actions {
    display: flex;
    gap: 16px;
}

/* ===== User Menu ===== */
.user-menu {
    position: relative;
}

.user-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    margin-top: 8px;
    overflow: hidden;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-primary);
    border: none;
    width: 100%;
    text-align: left;
    background: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
}

.dropdown-item.profile {
    font-weight: 500;
    color: var(--primary-color);
}

.dropdown-item.logout {
    color: var(--error-color);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
}

/* ===== Main Content ===== */
.home-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    width: 100%;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
}

/* ===== Sections ===== */
.broadcast-section,
.filter-section,
.table-section {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    width: 100%;
}

.broadcast-section button {
    min-height: 50px;
    font-size: 16px;
}

.filter-section h2,
.table-section h2 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 13px;
}

.filter-group input,
.filter-group select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    font-size: 14px;
}

/* ===== Loading & Empty State ===== */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loading {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.spinner-inline {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* ===== Table ===== */
.table-container {
    overflow-x: auto;
    margin-bottom: 0;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table thead {
    background-color: rgba(25, 118, 210, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

table tbody tr:hover {
    background-color: var(--bg-light);
}

table tbody tr:last-child td {
    border-bottom: none;
}

.violation-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.violation-badge.main-hp {
    background-color: #ffebee;
    color: #c62828;
}

.violation-badge.menguap {
    background-color: #fff3e0;
    color: #e65100;
}

.violation-badge.mata-tertutup {
    background-color: #f3e5f5;
    color: #6a1b9a;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-weight: 500;
    min-width: 120px;
    text-align: center;
    color: var(--text-primary);
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

#broadcast-modal .modal-content {
    display: flex;
    flex-direction: column;
}

#broadcast-modal .modal-header {
    flex-shrink: 0;
}

#broadcast-modal #broadcast-form {
    flex: 1;
    overflow-y: auto;
}

#broadcast-modal .form-actions {
    flex-shrink: 0;
    margin-top: 0;
    border-top: 2px solid var(--border-color);
}

#close-pelanggaran-modal .modal-content {
    display: flex;
    flex-direction: column;
}

#close-pelanggaran-modal .modal-header {
    flex-shrink: 0;
}

#close-pelanggaran-modal #close-pelanggaran-form {
    flex: 1;
    overflow-y: auto;
    padding: 24px !important;
    display: flex;
    flex-direction: column;
}

#close-pelanggaran-modal #close-pelanggaran-form .form-actions {
    flex-shrink: 0;
    margin-top: 16px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -24px;
    padding: 20px 24px;
    border-top: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

#broadcast-form {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
}

#broadcast-form .form-section {
    padding: 20px 24px;
    margin: 0;
    border-bottom: 2px solid var(--border-color);
}

#broadcast-form .form-section:first-of-type {
    padding-top: 20px;
}

#broadcast-form .form-section:nth-child(2),
#broadcast-form .form-section:nth-child(3) {
    flex-shrink: 0;
}

/* Pengawas section - scrollable - OVERRIDE to flex: 1 */
#broadcast-form .form-section:has(.section-header) {
    flex: 1;
    flex-shrink: 1;  /* Override the flex-shrink: 0 from nth-child rule */
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    padding-bottom: 0;
    border-bottom: none;
}

#broadcast-form .form-section:has(.section-header) .section-header {
    flex-shrink: 0;
}

#broadcast-form .form-section:has(.section-header) .form-group {
    flex-shrink: 0;
    margin-bottom: 8px;
}

#broadcast-form .form-section:has(.section-header) .search-field {
    flex-shrink: 0;
    margin-bottom: 12px;
}

#broadcast-form .form-section:has(.section-header) .pengawas-list {
    flex: 1;
    min-height: 200px;
    overflow-y: auto;
}

/* ===== Form Sections ===== */
.form-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section:has(.section-header) {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.form-section:has(.section-header) .search-field {
    margin-bottom: 12px;
}

.form-section:has(.section-header) .pengawas-list {
    flex: 1;
    overflow-y: auto;
    min-height: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===== Violation Options ===== */
.violation-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.violation-radio {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.violation-radio:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
}

.violation-radio input[type="radio"] {
    width: auto;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
}

.violation-radio input[type="radio"]:checked + .violation-label {
    color: var(--primary-color);
    font-weight: 600;
}

.violation-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Section Header ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.select-actions {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.select-actions label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.select-actions input[type="radio"] {
    width: auto;
    cursor: pointer;
}

/* ===== Search Field ===== */
.search-field {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

/* ===== Supervisors List ===== */
.supervisors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-light);
}

.pengawas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-light);
}

.supervisor-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 80px;
}

.supervisor-item:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.supervisor-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.supervisor-item input[type="checkbox"]:checked + .supervisor-info {
    color: var(--primary-color);
}

.supervisor-item input[type="checkbox"]:checked {
    accent-color: var(--primary-color);
}

.supervisor-info {
    flex: 1;
    font-size: 13px;
    min-width: 0;
}

.supervisor-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.supervisor-phone {
    color: var(--text-secondary);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#broadcast-supervisors {
    width: 100%;
    padding: 10px;
    min-height: 120px;
}

#broadcast-message {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    margin-top: 0;
    border-top: 2px solid var(--border-color);
    justify-content: flex-end;
    flex-shrink: 0;
    background: white;
}

#broadcast-message-status {
    flex-shrink: 0;
}

small {
    color: var(--text-secondary);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px;
    }

    .modal-content {
        width: 90%;
        margin: 20px;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* ===== Detail Aksi Modal Styling ===== */
.detail-item {
    margin-bottom: 12px;
}

.detail-item label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

#detail-aksi-modal .modal-content {
    background: white;
}

#detail-aksi-modal .modal-header {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
}

#detail-aksi-modal .modal-header h2 {
    color: white;
}

#detail-aksi-modal .modal-header button {
    color: white;
}

/* Evidence image styling */
#detail-evidence-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Timeline styling */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#detail-aksi-modal .detail-item {
    animation: slideIn 0.3s ease-out;
}

/* Pengawas item styling */
.pengawas-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
    min-height: 55px;
}

.pengawas-item:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.15);
}

.pengawas-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.pengawas-item input[type="checkbox"]:checked {
    accent-color: var(--primary-color);
}

.pengawas-item input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.pengawas-info {
    flex: 1;
    min-width: 0;
}

.pengawas-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pengawas-phone {
    color: var(--text-secondary);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-section .pengawas-list {
    display: flex;
    flex-direction: column;
    max-height: 130px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-light);
    gap: 0;
    width: 100%;
}

.select-actions {
    display: flex;
    gap: 16px;
}

.select-actions label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    margin: 0;
}

.select-actions input[type="radio"] {
    cursor: pointer;
    margin: 0;
}

/* Scrollable recipients container */
#close-pel-pengawas-recipients {
    scrollbar-width: thin;
    scrollbar-color: #bbb #f5f5f5;
}

#close-pel-pengawas-recipients::-webkit-scrollbar {
    width: 8px;
}

#close-pel-pengawas-recipients::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

#close-pel-pengawas-recipients::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

#close-pel-pengawas-recipients::-webkit-scrollbar-thumb:hover {
    background: #999;
}




