/* Custom styles for tables in Password Protected that aren't covered by Smart Admin Assistant design system */

.ppsas-table { width:100%; border-collapse:collapse; margin-top:20px; font-size:13px; text-align:left; }
.ppsas-table th { font-size:12px; font-weight:600; color:#475569; padding:12px 15px; border-bottom:1px solid #e2e8f0; background:#f8fafc; }
.ppsas-table td { padding:14px 15px; border-bottom:1px solid #f1f5f9; color:#1e293b; vertical-align:middle; }
.ppsas-table tr:hover td { background:#f8fafc; }

.ppsas-status { display:inline-block; padding:3px 10px; border-radius:30px; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; }
.ppsas-status-active { background:#dcfce7; color:#166534; }
.ppsas-status-inactive { background:#fee2e2; color:#991b1b; }
.ppsas-status-pending { background:#fef3c7; color:#92400e; }

.ppsas-snippets-toolbar { background:#f8fafc; padding:15px; border-radius:8px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; align-items:center; border:1px solid #e2e8f0; margin-bottom:15px; }
.ppsas-filter-select, .ppsas-search-input { height:36px; padding:0 12px; border:1px solid #cbd5e1; border-radius:4px; font-size:13px; color:#334155; }
.ppsas-search-input { flex:1; min-width:200px; }

.ppsas-checkbox-grid { display:grid; gap:10px; margin-top:10px; }
.ppsas-checkbox-label { display:flex; align-items:center; gap:8px; font-size:13px; color:#334155; cursor:pointer; }

/* Switch Toggle CSS */
.ppsas-switch { position:relative; display:inline-block; width:44px; height:24px; }
.ppsas-switch input { opacity:0; width:0; height:0; margin:0; }
.ppsas-slider { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background-color:#cbd5e1; transition:.3s; border-radius:24px; }
.ppsas-slider:before { position:absolute; content:""; height:18px; width:18px; left:3px; bottom:3px; background-color:white; transition:.3s; border-radius:50%; box-shadow:0 1px 3px rgba(0,0,0,0.1); }
.ppsas-switch input:checked + .ppsas-slider { background-color:#3b82f6; }
.ppsas-switch input:checked + .ppsas-slider:before { transform:translateX(20px); }

/* Ensure uniform input and select styling in settings forms */
.ppsas-settings-form input[type="text"],
.ppsas-settings-form input[type="password"],
.ppsas-settings-form input[type="number"],
.ppsas-settings-form input[type="datetime-local"],
.ppsas-settings-form select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    color: #334155;
    box-sizing: border-box;
    box-shadow: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ppsas-settings-form input:focus,
.ppsas-settings-form select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
    outline: none;
}

/* Select2 Alignment */
.ppsas-admin-wrap .select2-container .select2-selection--single {
    height: 36px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
}

.ppsas-admin-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    color: #334155 !important;
    padding-left: 12px !important;
}

.ppsas-admin-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
    right: 5px !important;
}

.ppsas-admin-wrap .select2-container.select2-container--open .select2-selection--single,
.ppsas-admin-wrap .select2-container.select2-container--focus .select2-selection--single {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f6 !important;
    outline: none !important;
}
