/**
 * Sentinel Admin Styles
 * 
 * CSS for the admin interface.
 */

/* Admin styles will go here */
.tablenav-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0 16px 0 !important;
  font-size: 1.2em;
  font-weight: 600;
  background: #f6f7f7;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 12px 0;

  a, span {
    margin: 0 8px;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    color: #2271b1;

    &.current, &:hover {
      background: #2271b1;
      color: #fff;
    }
  }
}

/* Sentinel Dashboard Styles */
.sentinel-dashboard .sentinel-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 18px;
}
.sentinel-dashboard .sentinel-logo-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 24px 36px 18px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1.5px solid #f1f3f6;
}
.sentinel-dashboard .sentinel-logo-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px) scale(1.025);
}
.sentinel-dashboard .sentinel-logo img {
    max-height: 72px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
    margin-bottom: 0;
    background: transparent;
    border-radius: 12px;
    transition: filter 0.2s;
}
.sentinel-dashboard .sentinel-dashboard-title {
    text-align: center;
    font-size: 2.3em;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 38px;
    letter-spacing: 0.5px;
    color: #23282d;
}
.sentinel-dashboard .sentinel-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.sentinel-dashboard .sentinel-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 20px 20px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 120px;
    position: relative;
    transition: box-shadow 0.2s;
}
.sentinel-dashboard .sentinel-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 2;
}
.sentinel-dashboard .sentinel-stat-icon {
    font-size: 2.2em;
    color: #0073aa;
    margin-right: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sentinel-dashboard .sentinel-stat-content {
    flex: 1;
}
.sentinel-dashboard .sentinel-stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #23282d;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.sentinel-dashboard .sentinel-stat-label {
    color: #666;
    font-size: 1em;
    font-weight: 500;
}
.sentinel-dashboard .sentinel-card--premium {
    position: relative;
    overflow: hidden;
    opacity: 0.7;
    filter: blur(0.5px) grayscale(0.2);
}
.sentinel-dashboard .sentinel-premium-blur {
    filter: blur(2px);
    user-select: none;
}
.sentinel-dashboard .sentinel-premium-label {
    background: #ffd700;
    color: #333;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 6px;
    font-weight: bold;
}
.sentinel-dashboard .sentinel-premium-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.7);
    pointer-events: none;
    font-size: 2.2em;
    color: #bbb;
}
@media (max-width: 900px) {
    .sentinel-dashboard .sentinel-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .sentinel-dashboard .sentinel-stats-grid {
        grid-template-columns: 1fr;
    }
    .sentinel-dashboard .sentinel-dashboard-title {
        font-size: 1.3em;
    }
    .sentinel-dashboard .sentinel-stat-card {
        padding: 18px 10px 14px 10px;
    }
    .sentinel-dashboard .sentinel-logo img {
        max-height: 48px;
    }
    .sentinel-dashboard .sentinel-logo-card {
        padding: 14px 10px 10px 10px;
    }
}

/* Dashboard Charts Section */
.sentinel-dashboard .sentinel-charts-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.sentinel-dashboard .sentinel-chart-container {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sentinel-dashboard .sentinel-chart-container:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

.sentinel-dashboard .sentinel-chart-container h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 12px;
  color: #23282d;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.sentinel-dashboard .sentinel-chart-container canvas {
  width: 100% !important;
  height: 180px !important;
  max-width: 100%;
}

/* Custom Heatmap Styles */
.sentinel-dashboard .sentinel-heatmap {
    width: 100%;
    height: 180px;
    display: grid;
    grid-template-columns: 40px repeat(24, 1fr);
    grid-template-rows: 20px repeat(7, 1fr);
    gap: 1px;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sentinel-dashboard .sentinel-heatmap-cell {
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}

.sentinel-dashboard .sentinel-heatmap-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-color: rgba(0,0,0,0.2);
}

.sentinel-dashboard .sentinel-heatmap-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.sentinel-dashboard .sentinel-heatmap-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #0073aa;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sentinel-dashboard .sentinel-heatmap-tooltip.show {
    opacity: 1;
}

.sentinel-dashboard .sentinel-heatmap-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 1200px) {
    .sentinel-dashboard .sentinel-heatmap {
        height: 160px;
        grid-template-columns: 35px repeat(24, 1fr);
        grid-template-rows: 18px repeat(7, 1fr);
        padding: 10px;
    }
    
    .sentinel-dashboard .sentinel-heatmap-label {
        font-size: 9px;
    }
}

@media (max-width: 768px) {
    .sentinel-dashboard .sentinel-heatmap {
        height: 140px;
        grid-template-columns: 30px repeat(24, 1fr);
        grid-template-rows: 16px repeat(7, 1fr);
        padding: 8px;
        gap: 0.5px;
    }
    
    .sentinel-dashboard .sentinel-heatmap-label {
        font-size: 8px;
    }
}

/* Activity Feed */
.sentinel-dashboard .sentinel-activity-feed {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px 24px 18px 24px;
  margin-bottom: 32px;
}
.sentinel-dashboard .sentinel-activity-feed h3 {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 18px;
  color: #23282d;
}
.sentinel-dashboard .sentinel-activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sentinel-dashboard .sentinel-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f6;
  font-size: 1em;
}
.sentinel-dashboard .sentinel-activity-item:last-child {
  border-bottom: none;
}
.sentinel-dashboard .sentinel-activity-icon {
  font-size: 1.6em;
  color: #0073aa;
  background: #f1f3f6;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.sentinel-dashboard .sentinel-activity-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sentinel-dashboard .sentinel-activity-text {
  font-weight: 500;
  color: #23282d;
  margin-bottom: 4px;
}
.sentinel-dashboard .sentinel-activity-meta {
  display: flex;
  gap: 12px;
  font-size: 0.95em;
  color: #666;
}
.sentinel-dashboard .sentinel-activity-time {
  color: #0073aa;
  font-weight: 500;
}
.sentinel-dashboard .sentinel-activity-user {
  color: #888;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .sentinel-dashboard .sentinel-charts-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .sentinel-dashboard .sentinel-chart-container {
    min-height: 200px;
    padding: 14px;
  }
  .sentinel-dashboard .sentinel-chart-container canvas {
    height: 140px !important;
  }
}

@media (max-width: 768px) {
  .sentinel-dashboard .sentinel-charts-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sentinel-dashboard .sentinel-chart-container {
    min-height: 180px;
    padding: 12px;
  }
  .sentinel-dashboard .sentinel-chart-container h3 {
    font-size: 1em;
    margin-bottom: 8px;
  }
  .sentinel-dashboard .sentinel-chart-container canvas {
    height: 120px !important;
  }
}

/* Sentinel Logs Page Styles */
.sentinel-filters {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sentinel-filter-row {
    display: flex;
    gap: 20px;
    align-items: end;
    margin-bottom: 15px;
}

.sentinel-filter-row:last-child {
    margin-bottom: 0;
}

.sentinel-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sentinel-filter-group label {
    font-weight: 500;
    color: #333;
}

.sentinel-filter-group select,
.sentinel-filter-group input {
    min-width: 150px;
}

.sentinel-filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.sentinel-results-summary {
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.sentinel-priority {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.sentinel-priority-info {
    background: #e3f2fd;
    color: #1976d2;
}

.sentinel-priority-warning {
    background: #fff3e0;
    color: #f57c00;
}

.sentinel-priority-error {
    background: #ffebee;
    color: #d32f2f;
}

.sentinel-priority-critical {
    background: #fce4ec;
    color: #c2185b;
}

.sentinel-event-message {
    font-weight: 500;
    color: #23282d;
    line-height: 1.4;
    margin-bottom: 4px;
}

.sentinel-event-key {
    color: #666;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sentinel-event-key .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.sentinel-log-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.sentinel-detail-row {
    margin-bottom: 10px;
}

.sentinel-detail-row:last-child {
    margin-bottom: 0;
}

.sentinel-detail-row pre {
    background: white;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 5px 0 0 0;
}

.sentinel-pagination {
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .sentinel-filter-row {
        flex-direction: column;
        gap: 15px;
    }

    .sentinel-filter-group select,
    .sentinel-filter-group input {
        min-width: auto;
    }
}

/* Event Registry Page Styles */
.sentinel-event-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sentinel-summary-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sentinel-summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sentinel-summary-stat .count {
    font-size: 2.5em;
    font-weight: 700;
    color: #0073aa;
    line-height: 1;
    margin-bottom: 5px;
}

.sentinel-summary-stat .label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.sentinel-events-table {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sentinel-events-table .wp-list-table {
    border: none;
    box-shadow: none;
}

.sentinel-event-key {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    color: #d73502;
    border: 1px solid #e1e5e9;
}

.sentinel-category,
.sentinel-priority {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category colors */
.sentinel-category-authentication {
    background: #e3f2fd;
    color: #1976d2;
}

.sentinel-category-content {
    background: #f3e5f5;
    color: #7b1fa2;
}

.sentinel-category-system {
    background: #e8f5e8;
    color: #388e3c;
}

.sentinel-category-errors {
    background: #ffebee;
    color: #d32f2f;
}

.sentinel-category-security {
    background: #fce4ec;
    color: #c2185b;
}

.sentinel-category-user {
    background: #e8f5e8;
    color: #388e3c;
}

.sentinel-category-error {
    background: #ffebee;
    color: #d32f2f;
}

/* Dynamic category colors for custom events */
.sentinel-category-social {
    background: #fff3e0;
    color: #f57c00;
}

.sentinel-category-bounty {
    background: #fce4ec;
    color: #c2185b;
}

.sentinel-category-collection {
    background: #e0f2f1;
    color: #00695c;
}

.sentinel-category-rating {
    background: #fff8e1;
    color: #f9a825;
}

.sentinel-category-custom {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Priority colors */
.sentinel-priority-info {
    background: #e3f2fd;
    color: #1976d2;
}

.sentinel-priority-warning {
    background: #fff3e0;
    color: #f57c00;
}

.sentinel-priority-error {
    background: #ffebee;
    color: #d32f2f;
}

.sentinel-priority-critical {
    background: #ffebee;
    color: #b71c1c;
    font-weight: 700;
}

.sentinel-usage-count {
    color: #0073aa;
    font-weight: 600;
    font-size: 1.1em;
}

.sentinel-no-usage {
    color: #666;
    font-style: italic;
}

.sentinel-last-triggered {
    color: #666;
    font-size: 0.9em;
}

.sentinel-never-triggered {
    color: #999;
    font-style: italic;
}

.sentinel-event-disabled {
    opacity: 0.6;
    background: #f8f9fa;
}

.sentinel-event-disabled .sentinel-event-key {
    background: #e9ecef;
    color: #6c757d;
}

/* Toggle Switch Styles */
.sentinel-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}

.sentinel-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sentinel-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.sentinel-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .sentinel-toggle-slider {
    background-color: #0073aa;
}

input:checked + .sentinel-toggle-slider:before {
    transform: translateX(20px);
}

.sentinel-toggle-slider:hover {
    background-color: #999;
}

input:checked + .sentinel-toggle-slider:hover {
    background-color: #005a87;
}

/* Privacy Request Action Buttons */
.sentinel-btn-approve {
    background-color: #28a745 !important;
    color: white !important;
}

.sentinel-btn-approve:hover {
    background-color: #218838 !important;
}

.sentinel-btn-deny {
    background-color: #dc3545 !important;
    color: white !important;
}

.sentinel-btn-deny:hover {
    background-color: #c82333 !important;
}

/* Status Badges */
.sentinel-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sentinel-status-pending {
    background-color: #ffc107;
    color: #212529;
}

.sentinel-status-approved {
    background-color: #28a745;
    color: white;
}

.sentinel-status-denied {
    background-color: #dc3545;
    color: white;
}

/* Event Details */
.sentinel-event-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 10px 0;
}

.sentinel-event-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
    font-size: 1.1em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.sentinel-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.sentinel-detail-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sentinel-detail-row {
    margin-bottom: 8px;
    line-height: 1.5;
}

.sentinel-detail-row strong {
    color: #23282d;
    min-width: 120px;
    display: inline-block;
}

.sentinel-status-enabled {
    color: #0073aa;
    font-weight: 600;
}

.sentinel-status-disabled {
    color: #d63638;
    font-weight: 600;
}

/* Responsive Design for Event Registry */
@media (max-width: 1200px) {
    .sentinel-detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .sentinel-summary-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .sentinel-summary-stat .count {
        font-size: 2em;
    }
    
    .sentinel-events-table {
        font-size: 0.9em;
    }
    
    .sentinel-toggle-switch {
        width: 36px;
        height: 20px;
    }
    
    .sentinel-toggle-slider:before {
        height: 14px;
        width: 14px;
    }
    
    input:checked + .sentinel-toggle-slider:before {
        transform: translateX(16px);
    }
    
    .sentinel-event-details {
        padding: 15px;
    }
    
    .sentinel-detail-row strong {
        min-width: auto;
        display: block;
        margin-bottom: 2px;
    }
} 

/* Database Status Section */
.hndle {
  padding-left: 0.75rem !important;
}

.sentinel-db-status-success,
.sentinel-db-status-error {
  padding-left: 20px;
  font-weight: 600;
}

.sentinel-db-status-success {
  color: green;
}

.sentinel-db-status-error {
  color: red;
}

.sentinel-db-status-message {
  margin-top: 15px;
  padding: 10px;
  border-left: 4px solid;
}

.sentinel-db-status-message p {
  margin-left: 8px;
}

.sentinel-db-status-message--success {
  background: #d4edda;
  border-color: #28a745;
}

.sentinel-db-status-message--warning {
  background: #ffeaa7;
  border-color: #fdcb6e;
} 

/* Settings Page - Custom Tab Navigation */
.sentinel-tab-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.sentinel-tab {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
}

.sentinel-tab:hover {
    color: #2271b1;
    background: #f8fafc;
    border-color: #2271b1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.sentinel-tab.sentinel-tab-active {
    color: #2271b1;
    background: #f0f9ff;
    border-color: #2271b1;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.15);
    transform: translateY(-2px);
}

.sentinel-tab i {
    font-size: 20px;
    flex-shrink: 0;
}

.sentinel-tab span {
    font-weight: 600;
    font-size: 14px;
}

/* Settings Tab Content */
.sentinel-tab-content {
    padding: 0;
    margin-bottom: 32px;
}

.sentinel-settings-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.2s;
    margin-bottom: 1rem;
}

.sentinel-settings-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.sentinel-settings-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px;
}

.sentinel-settings-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sentinel-settings-card-title i {
    font-size: 24px;
    color: #2271b1;
}

.sentinel-settings-card-content {
    padding: 24px;
}

.sentinel-settings-card-content .form-table {
    margin-top: 0;
}

.sentinel-settings-card-content .form-table th {
    font-weight: 600;
    color: #374151;
    padding: 16px 0;
    vertical-align: top;
    width: 200px;
}

.sentinel-settings-card-content .form-table td {
    padding: 16px 0;
    vertical-align: top;
}

.sentinel-settings-card-content .form-table input[type="text"],
.sentinel-settings-card-content .form-table input[type="number"],
.sentinel-settings-card-content .form-table input[type="date"],
.sentinel-settings-card-content .form-table select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.2s;
    min-width: 200px;
}

.sentinel-settings-card-content .form-table select {
    min-width: 250px;
}

.sentinel-settings-card-content .form-table input[type="text"]:focus,
.sentinel-settings-card-content .form-table input[type="number"]:focus,
.sentinel-settings-card-content .form-table input[type="date"]:focus,
.sentinel-settings-card-content .form-table select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.sentinel-settings-card-content .description {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
}

/* Feature Preview Cards (for coming soon tabs) */
.sentinel-feature-preview {
    text-align: center;
    padding: 40px 20px;
}

.sentinel-feature-preview-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.sentinel-feature-preview h3 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 12px;
    font-weight: 600;
}

.sentinel-feature-preview > p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 24px;
}

.sentinel-feature-list {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.sentinel-feature-list h4 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
}

.sentinel-feature-list ul {
    list-style: none;
    padding: 0;
}

.sentinel-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
}

.sentinel-feature-list li i {
    color: #2271b1;
    font-size: 16px;
    flex-shrink: 0;
}

/* Status and Info Sections */
.sentinel-settings-card-content .sentinel-db-status-message,
.sentinel-settings-card-content > div[style*="border-left"] {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    border-left: 4px solid #2271b1;
}

.sentinel-settings-card-content .sentinel-db-status-message--warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.sentinel-settings-card-content .sentinel-db-status-message--success {
    background: #f0fdf4;
    border-left-color: #10b981;
}

/* Settings Page Toggle Switches */
.sentinel-settings-card-content .form-table input[type="checkbox"] {
    display: none;
}

.sentinel-settings-card-content .form-table label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

/* Special handling for checkbox labels */
.sentinel-settings-card-content .form-table td label:has(input[type="checkbox"]) {
    position: relative;
    padding-left: 56px;
    display: block;
    margin-bottom: 8px;
}

.sentinel-settings-card-content .form-table td label:has(input[type="checkbox"]) span {
    position: relative;
}

.sentinel-settings-card-content .form-table td label:has(input[type="checkbox"])::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: .3s;
}

.sentinel-settings-card-content .form-table td label:has(input[type="checkbox"])::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}

.sentinel-settings-card-content .form-table td label:has(input[type="checkbox"]:checked)::before {
    background-color: #2271b1;
}

.sentinel-settings-card-content .form-table td label:has(input[type="checkbox"]:checked)::after {
    transform: translateY(-50%) translateX(20px);
}

.sentinel-settings-card-content .form-table td label:has(input[type="checkbox"]):hover::before {
    background-color: #999;
}

.sentinel-settings-card-content .form-table td label:has(input[type="checkbox"]:checked):hover::before {
    background-color: #1a5490;
}

/* Submit Button Styling */
.sentinel-dashboard .submit {
    margin-top: 30px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 999 !important;
}

.sentinel-dashboard .submit .button-primary {
    background: #2271b1;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.sentinel-dashboard .submit .button-primary:hover {
    background: #1a5490;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.sentinel-dashboard .submit .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sentinel-dashboard .submit .button-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.3);
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .nav-tab-wrapper .nav-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .nav-tab-wrapper {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Activity Logs - Card-based Layout */
.sentinel-filters-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s;
}

.sentinel-filters-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.sentinel-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.sentinel-filter-row:last-child {
    margin-bottom: 0;
}

.sentinel-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.sentinel-filter-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.sentinel-filter-group select,
.sentinel-filter-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.sentinel-filter-group select:focus,
.sentinel-filter-group input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.sentinel-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.sentinel-filter-actions .button {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.sentinel-filter-actions .button-primary {
    background: #2271b1;
    border-color: #2271b1;
}

.sentinel-filter-actions .button-primary:hover {
    background: #1a5490;
    border-color: #1a5490;
    transform: translateY(-1px);
}

.sentinel-results-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.sentinel-summary-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px 32px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s;
}

.sentinel-summary-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.sentinel-summary-count {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 4px;
}

.sentinel-summary-label {
    font-size: 1.1em;
    color: #666;
    font-weight: 500;
}

.sentinel-logs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.sentinel-log-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    overflow: hidden;
}

.sentinel-log-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.sentinel-log-card.expanded {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #2271b1;
}

.sentinel-log-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.sentinel-log-icon {
    background: #f8fafc;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.sentinel-log-icon i {
    font-size: 20px;
    color: #2271b1;
}

.sentinel-log-meta {
    flex: 1;
    min-width: 0;
}

.sentinel-log-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.4;
}

.sentinel-log-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.sentinel-event-key {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-family: monospace;
}

.sentinel-log-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sentinel-btn {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.sentinel-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.sentinel-btn-small {
    padding: 6px 8px;
    font-size: 12px;
}

.sentinel-btn-small i {
    font-size: 16px;
}

.sentinel-log-info {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f3f4f6;
}

.sentinel-log-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.sentinel-log-info-item i {
    font-size: 14px;
    color: #9ca3af;
}

.sentinel-log-details {
    padding: 0;
    border-top: 1px solid #f3f4f6;
    background: #f8fafc;
}

.sentinel-log-details-content {
    padding: 20px;
}

.sentinel-log-details-content h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #111827;
    font-weight: 600;
}

.sentinel-detail-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.sentinel-detail-section:last-child {
    margin-bottom: 0;
}

.sentinel-detail-section > strong {
    display: block;
    margin-bottom: 12px;
    color: #111827;
    font-weight: 600;
}

.sentinel-raw-data {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #374151;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.sentinel-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.sentinel-empty-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.sentinel-empty-state h3 {
    font-size: 20px;
    color: #111827;
    margin-bottom: 8px;
}

.sentinel-empty-state p {
    color: #6b7280;
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

.sentinel-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.sentinel-pagination a,
.sentinel-pagination span {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    font-weight: 500;
}

.sentinel-pagination a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.sentinel-pagination .current {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* Responsive Design for Activity Logs */
@media (max-width: 768px) {
    .sentinel-filter-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .sentinel-filter-group {
        min-width: auto;
    }
    
    .sentinel-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sentinel-log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .sentinel-log-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .sentinel-log-info-item {
        width: 100%;
    }
    
    .sentinel-summary-count {
        font-size: 2em;
    }
    
    .sentinel-pagination {
        flex-wrap: wrap;
    }
}

/* Responsive Design for Settings Page */
@media (max-width: 1024px) {
    .sentinel-tab-navigation {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sentinel-tab-navigation {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .sentinel-tab {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .sentinel-tab span {
        font-size: 12px;
    }
    
    .sentinel-settings-card-header {
        padding: 20px;
    }
    
    .sentinel-settings-card-content {
        padding: 20px;
    }
    
    .sentinel-settings-card-title {
        font-size: 18px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .sentinel-settings-card-content .form-table th {
        display: block;
        width: auto;
        padding: 8px 0 4px 0;
    }
    
    .sentinel-settings-card-content .form-table td {
        display: block;
        padding: 4px 0 16px 0;
    }
}

@media (max-width: 480px) {
    .sentinel-tab-navigation {
        grid-template-columns: 1fr;
    }
    
    .sentinel-tab {
        padding: 12px;
    }
    
    .sentinel-feature-preview {
        padding: 30px 15px;
    }
    
    .sentinel-feature-preview-icon {
        font-size: 48px;
    }
    
    .sentinel-feature-preview h3 {
        font-size: 20px;
    }
    
    .sentinel-feature-list {
        padding: 0 10px;
    }
}

/* Performance Status Section */
.sentinel-performance-status {
    margin-top: 30px;
    margin-bottom: 30px;
}

.sentinel-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.sentinel-performance-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.sentinel-performance-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.sentinel-performance-card h4 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #23282d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sentinel-performance-card h4 .emoji {
    font-size: 1.1em;
}

.sentinel-performance-card p {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
}

.sentinel-performance-card p:last-child {
    margin-bottom: 0;
}

.sentinel-performance-card strong {
    color: #23282d;
    font-weight: 600;
}

.sentinel-progress-bar {
    background: #f0f0f1;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
    margin: 15px 0;
}

.sentinel-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.sentinel-progress-fill.good {
    background: linear-gradient(90deg, #10b981, #059669);
}

.sentinel-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.sentinel-progress-fill.critical {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.sentinel-memory-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.sentinel-memory-stat {
    text-align: center;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.sentinel-memory-stat .value {
    font-size: 1.1em;
    font-weight: 600;
    color: #23282d;
}

.sentinel-memory-stat .label {
    font-size: 0.9em;
    color: #666;
    margin-top: 4px;
}

.sentinel-batch-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.sentinel-batch-stat {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.sentinel-batch-stat .value {
    font-size: 1.3em;
    font-weight: 700;
    color: #0073aa;
}

.sentinel-batch-stat .label {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

.sentinel-batch-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.sentinel-batch-actions .button {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sentinel-batch-actions .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sentinel-batch-actions .button-primary {
    background: linear-gradient(135deg, #0073aa, #005177);
    border: none;
    color: #fff;
}

.sentinel-batch-actions .button-primary:hover {
    background: linear-gradient(135deg, #005177, #003d5a);
}

.sentinel-status-icon {
    font-size: 1.1em;
    margin-right: 6px;
}

.sentinel-status-active {
    color: #10b981;
}

.sentinel-status-inactive {
    color: #6b7280;
}

.sentinel-next-batch-time {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    text-align: center;
}

@media (max-width: 768px) {
    .sentinel-performance-grid {
        grid-template-columns: 1fr;
    }
    
    .sentinel-memory-stats {
        grid-template-columns: 1fr;
    }
    
    .sentinel-batch-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sentinel-batch-actions {
        flex-direction: column;
    }
    
    .sentinel-batch-actions .button {
        flex: none;
    }
}

/* Performance Status Cards */
.sentinel-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sentinel-performance-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sentinel-performance-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #374151;
    font-size: 16px;
}

.sentinel-performance-card p {
    margin: 8px 0;
    color: #6b7280;
}

.sentinel-performance-card strong {
    color: #1f2937;
}

/* Progress Bars */
.sentinel-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.sentinel-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.sentinel-progress-fill.good {
    background-color: #10b981;
}

.sentinel-progress-fill.warning {
    background-color: #f59e0b;
}

.sentinel-progress-fill.critical {
    background-color: #ef4444;
}

.sentinel-performance-status {
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.sentinel-performance-status h4 {
    margin-top: 0;
    color: #374151;
    font-size: 18px;
}

/* Memory Insights specific styling */
.sentinel-memory-insights {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sentinel-memory-insights h4 {
    margin-top: 0;
    color: #1e293b;
    font-size: 18px;
    padding-bottom: 10px;
}

/* Memory alert styling */
.sentinel-memory-alert {
    border-left: 4px solid #3b82f6;
    background: #f0f9ff;
}

.sentinel-memory-alert h4 {
    color: #1e40af;
    margin-bottom: 10px;
}

.sentinel-memory-alert .button {
    margin-top: 10px;
    background: #3b82f6;
    border-color: #3b82f6;
}

.sentinel-memory-alert .button:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Memory insights responsive design */
@media (max-width: 768px) {
    .sentinel-memory-insights {
        padding: 15px;
    }
}

/* Excluded User Roles Section */
.sentinel-excluded-roles-container {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 8px;
}

.sentinel-role-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 8px;
}

.sentinel-role-item input[type="checkbox"] {
    margin: 0 12px 0 0;
}

.sentinel-role-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sentinel-role-details {
    flex: 1;
}

.sentinel-role-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.sentinel-role-count {
    color: #646970;
    font-size: 13px;
}

.sentinel-excluded-badge {
    background: #dc2626;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sentinel-excluded-warning {
    margin-top: 12px;
    padding: 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.sentinel-excluded-warning strong {
    color: #856404;
}

.sentinel-excluded-warning small {
    color: #6c5700;
}

/* --- BEGIN: Notification Settings Carded Grid with Pill Toggles --- */
.sentinel-email-card-group {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px 12px 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sentinel-email-card-group h4 {
  font-size: 1.08em;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #2271b1;
  letter-spacing: 0.2px;
}
.sentinel-email-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  .sentinel-email-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .sentinel-email-card-group {
    padding: 14px 8px 8px 8px;
  }
  .sentinel-email-card-grid {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }
}
.sentinel-email-pill-toggle {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 7px 18px 7px 24px; /* Increased left padding for toggle spacing */
  font-weight: 500;
  font-size: 1em;
  color: #374151;
  cursor: pointer;
  transition: background 0.18s, border 0.18s, color 0.18s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  gap: 10px;
  position: relative;
}
.sentinel-email-pill-toggle input[type="checkbox"] {
  accent-color: #2271b1;
  margin-left: -12px; /* Pull the toggle back into the pill */
  margin-right: 12px; /* More space between toggle and label */
}
.sentinel-email-pill-toggle input[type="checkbox"]:checked + span,
.sentinel-email-pill-toggle input[type="checkbox"]:checked ~ span {
  color: #2271b1;
}
.sentinel-email-pill-toggle input[type="checkbox"]:checked ~ span {
  font-weight: 600;
}
.sentinel-email-pill-toggle input[type="checkbox"]:checked + span,
.sentinel-email-pill-toggle input[type="checkbox"]:checked ~ span {
  background: #e3f2fd;
  border-radius: 999px;
  padding: 2px 8px;
}
.sentinel-email-pill-toggle input[type="checkbox"]:disabled + span,
.sentinel-email-pill-toggle input[type="checkbox"]:disabled ~ span {
  color: #bbb;
  background: #f3f4f6;
}
.sentinel-email-pill-toggle:hover {
  border-color: #2271b1;
  background: #f0f9ff;
}
/* --- END: Notification Settings Carded Grid with Pill Toggles --- */

/* --- BEGIN: Notification Pill Toggle Pseudo-Element Spacing --- */
.sentinel-email-pill-toggle::before {
  left: 5px !important;
}
.sentinel-email-pill-toggle::after {
  left: 8px !important;
}
/* --- END: Notification Pill Toggle Pseudo-Element Spacing --- */

/* --- BEGIN: Notification Options Fade-In Animation --- */
#sentinel_email_notification_options {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
#sentinel_email_notification_options.is-visible {
  opacity: 1;
  max-height: 2000px;
  pointer-events: auto;
}
/* --- END: Notification Options Fade-In Animation --- */

/* Modal Styles for Privacy Controls */
.sentinel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Ensure modal works in WordPress admin context */
.wp-admin .sentinel-modal-overlay {
    z-index: 999999;
}

.wp-admin .sentinel-modal {
    z-index: 1000000;
}

/* Force flexbox display when modal is shown */
.sentinel-modal-overlay[style*="display: block"],
.sentinel-modal-overlay[style*="display:block"] {
    display: flex !important;
}

.sentinel-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: sentinel-modal-slide-in 0.3s ease-out;
    position: relative;
    margin: auto;
}

@keyframes sentinel-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sentinel-modal-header {
    padding: 20px 24px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.sentinel-modal-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sentinel-modal-content {
    padding: 20px 24px;
    color: #374151;
    line-height: 1.6;
}

.sentinel-modal-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
    margin-top: 0;
}

.sentinel-modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sentinel-modal-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.sentinel-modal-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

.sentinel-modal-btn-danger {
    background: #dc2626;
    color: white;
}

.sentinel-modal-btn-danger:hover {
    background: #b91c1c;
}

.sentinel-modal-btn-success {
    background: #059669;
    color: white;
}

.sentinel-modal-btn-success:hover {
    background: #047857;
}

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

.sentinel-modal-icon {
    font-size: 20px;
}

.sentinel-modal-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.sentinel-modal-warning .sentinel-modal-icon {
    color: #d97706;
}

.sentinel-modal-info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.sentinel-modal-info .sentinel-modal-icon {
    color: #2563eb;
}

.sentinel-modal-loading {
    text-align: center;
    padding: 20px;
}

.sentinel-modal-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: sentinel-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes sentinel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard Widget Styles */
.postbox .inside .sentinel-privacy-widget-empty {
    color: #666;
    font-style: italic;
    padding: 18px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.postbox .inside .sentinel-privacy-widget-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.postbox .inside .sentinel-privacy-widget-card {
    background: #f8fafc;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    padding: 18px 18px 12px 18px;
    border: 1px solid #e5e7eb;
    margin: 0;
}

.postbox .inside .sentinel-privacy-widget-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.postbox .inside .sentinel-privacy-widget-usericon {
    color: #0073aa;
    font-size: 18px;
}

.postbox .inside .sentinel-privacy-widget-username {
    font-weight: 600;
    color: #222;
    font-size: 15px;
    margin-right: auto;
}

.postbox .inside .sentinel-privacy-widget-date {
    color: #888;
    font-size: 13px;
}

.postbox .inside .sentinel-privacy-widget-reason {
    color: #444;
    font-size: 14px;
    margin-bottom: 6px;
}

.postbox .inside .sentinel-privacy-widget-details {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 2px;
    margin-left: 2px;
}

.postbox .inside .sentinel-privacy-widget-footer {
    padding: 16px 0 0 0;
    background: none;
    border: none;
    text-align: right;
    margin: 0;
}

.postbox .inside .sentinel-privacy-widget-footer .button {
    margin: 0;
    min-width: 140px;
    font-size: 14px;
    padding: 6px 18px;
} 

/* Dashboard Widget Styles - Direct Admin CSS */
#sentinel_privacy_widget .inside .sentinel-privacy-widget-empty {
    color: #666 !important;
    font-style: italic !important;
    padding: 18px 0 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px !important;
}

#sentinel_privacy_widget .inside .sentinel-privacy-widget-list {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

#sentinel_privacy_widget .inside .sentinel-privacy-widget-card {
    background: #f8fafc !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
    padding: 18px 18px 12px 18px !important;
    border: 1px solid #e5e7eb !important;
    margin: 0 !important;
}

#sentinel_privacy_widget .inside .sentinel-privacy-widget-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

#sentinel_privacy_widget .inside .sentinel-privacy-widget-usericon {
    color: #0073aa !important;
    font-size: 18px !important;
}

#sentinel_privacy_widget .inside .sentinel-privacy-widget-username {
    font-weight: 600 !important;
    color: #222 !important;
    font-size: 15px !important;
    margin-right: auto !important;
}

#sentinel_privacy_widget .inside .sentinel-privacy-widget-date {
    color: #888 !important;
    font-size: 13px !important;
}

#sentinel_privacy_widget .inside .sentinel-privacy-widget-reason {
    color: #444 !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
}

#sentinel_privacy_widget .inside .sentinel-privacy-widget-details {
    color: #666 !important;
    font-size: 13px !important;
    font-style: italic !important;
    margin-bottom: 2px !important;
    margin-left: 2px !important;
}

#sentinel_privacy_widget .inside .sentinel-privacy-widget-footer {
    padding: 16px 0 0 0 !important;
    background: none !important;
    border: none !important;
    text-align: right !important;
    margin: 0 !important;
}

#sentinel_privacy_widget .inside .sentinel-privacy-widget-footer .button {
    margin: 0 !important;
    min-width: 140px !important;
    font-size: 14px !important;
    padding: 6px 18px !important;
} 

.sentinel-export-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sentinel-export-desc {
  margin-left: 10px;
  color: #666;
  font-size: 13px;
}

.sentinel-export-source-group {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 2px;
}

/* --- BEGIN: Sentinel 3-Way Segmented Slider Toggle (Modern) --- */
.sentinel-segmented-toggle {
  display: flex;
  align-items: center;
  position: relative;
  background: #f8fafc;
  border: 2px solid #2271b1;
  border-radius: 999px;
  max-width: 420px;
  width: 100%;
  height: 44px;
  box-shadow: 0 2px 8px rgba(34,113,177,0.08);
  overflow: hidden;
  margin-left: 0;
}
.sentinel-segmented-btn {
  flex: 1 1 0;
  background: none;
  border: none;
  outline: none;
  color: #2271b1;
  font-weight: 600;
  font-size: 1em;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.18s, font-weight 0.18s;
  border-radius: 999px;
  margin: 0;
  padding: 0 0.5em;
  user-select: none;
}
.sentinel-segmented-btn.active,
.sentinel-segmented-btn:focus-visible {
  color: #fff;
  font-weight: 700;
}
.sentinel-segmented-btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}
.sentinel-segmented-toggle .slider {
  position: absolute;
  top: 3px;
  left: 3px;
  height: 38px;
  width: calc((100% - 9px) / 3);
  background: #2271b1;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(34,113,177,0.10);
  transition: left 0.25s cubic-bezier(0.4,0,0.2,1), width 0.18s, background 0.18s;
  z-index: 1;
}
.sentinel-segmented-btn[data-value="main"].active ~ .slider {
  left: 3px;
}
.sentinel-segmented-btn[data-value="both"].active ~ .slider {
  left: calc(33.333% + 3px);
}
.sentinel-segmented-btn[data-value="archive"].active ~ .slider {
  left: calc(66.666% + 3px);
}
.sentinel-segmented-desc {
  margin-top: 8px;
  color: #666;
  font-size: 13px;
}
@media (max-width: 600px) {
  .sentinel-segmented-toggle {
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.98em;
  }
  .sentinel-segmented-btn {
    font-size: 1em;
    padding: 0 0.2em;
  }
}
/* --- END: Sentinel 3-Way Segmented Slider Toggle (Modern) --- */