/* Condoleance Anti-Spam Admin Styles */

/* Statistics Cards Grid */
.cas-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cas-stats-card {
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.cas-stats-card h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 18px;
}

.cas-stats-card .dashicons {
    margin-right: 8px;
}

.cas-stats-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.cas-stats-label {
    color: #646970;
    font-size: 13px;
}

.cas-stats-value.blue {
    color: #2271b1;
}

.cas-stats-value.green {
    color: #00a32a;
}

.cas-stats-value.orange {
    color: #f56e28;
}

.cas-stats-value.red {
    color: #d63638;
}

.cas-stats-card .dashicons.blue {
    color: #2271b1;
}

.cas-stats-card .dashicons.green {
    color: #00a32a;
}

.cas-stats-card .dashicons.orange {
    color: #f56e28;
}

/* Postbox Styles */
.cas-postbox {
    margin-bottom: 20px;
}

.cas-postbox-header {
    padding: 12px 20px;
    border-bottom: 1px solid #c3c4c7;
    background: #f6f7f7;
}

.cas-postbox-header h2 {
    margin: 0;
    font-size: 16px;
}

.cas-postbox-header .dashicons {
    margin-right: 8px;
}

.cas-postbox-header .dashicons.red {
    color: #d63638;
}

.cas-postbox-header .dashicons.orange {
    color: #f56e28;
}

.cas-postbox-content {
    padding: 20px;
    background: #fff;
}

/* Settings Grid */
.cas-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cas-setting-item label {
    color: #646970;
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
}

.cas-setting-item .value {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.cas-setting-item .value.red {
    color: #d63638;
}

.cas-settings-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dcdcde;
}

.cas-settings-actions .dashicons {
    margin-right: 5px;
    vertical-align: middle;
}

/* Settings Page Styles */
.cas-settings-form {
    width: 100%;
    margin: 20px 0;
}

.cas-settings-form .form-table {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cas-settings-form .form-table th {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    font-weight: 600;
    color: #2c3e50;
    vertical-align: top;
    width: 250px;
}

.cas-settings-form .form-table td {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: top;
}

.cas-settings-form .form-table tr:last-child th,
.cas-settings-form .form-table tr:last-child td {
    border-bottom: none;
}

.cas-settings-form .regular-text {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.cas-settings-form .regular-text:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.cas-settings-form .description {
    color: #646970;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #2271b1;
}

.cas-settings-form .description strong {
    color: #2c3e50;
}

.cas-submit-section {
    margin-top: 20px;
}

/* Info Box Styling */
.cas-info-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #2271b1;
}

.cas-info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

.cas-info-box p {
    margin-bottom: 0;
    color: #2c3e50;
    line-height: 1.6;
}

.cas-info-box .cas-config-highlight {
    font-weight: 600;
    color: #2271b1;
}

/* Examples Table Styling */
.cas-examples-section {
    margin: 30px 0;
}

.cas-examples-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.cas-examples-table {
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cas-examples-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.cas-examples-table td {
    padding: 15px;
    border-bottom: 1px solid #e1e5e9;
    color: #555;
}

.cas-examples-table tr:last-child td {
    border-bottom: none;
}

.cas-examples-table tr:hover {
    background: #f8f9fa;
}

/* Warning Box */
.cas-warning-box {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-left: 4px solid #f57c00;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.cas-warning-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #e65100;
    font-size: 16px;
}

.cas-warning-box ul {
    margin-bottom: 0;
    color: #bf360c;
}

.cas-warning-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Empty State */
.cas-empty-state {
    padding: 20px;
    text-align: center;
    color: #646970;
}

.cas-empty-state .dashicons {
    font-size: 48px;
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
}

.cas-empty-state p {
    margin: 0;
    font-size: 16px;
}

.cas-empty-state small {
    display: block;
    margin-top: 5px;
}

/* Table Styles */
.cas-table-container {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.cas-table-container table {
    border: none !important;
    box-shadow: none !important;
}

.cas-table-container table th {
    background: #f6f7f7 !important;
    border-bottom: 1px solid #c3c4c7 !important;
    color: #1d2327 !important;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.cas-table-container table th.center {
    text-align: center;
}

.cas-table-container table td {
    border-bottom: 1px solid #dcdcde !important;
    padding: 12px 16px;
    vertical-align: middle;
}

.cas-table-container table td.center {
    text-align: center;
}

.cas-table-container table tr:last-child td {
    border-bottom: none !important;
}

.cas-table-responsive {
    overflow-x: auto;
}

.cas-table-responsive table {
    min-width: 800px;
    margin: 0;
}

/* Status Badges */
.cas-status-badge {
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 90px;
    text-align: center;
    border: 1px solid;
}

.cas-status-blocked {
    background: #d63638;
    color: white;
    border-color: #d63638;
}

.cas-status-allowed {
    background: #00a32a;
    color: white;
    border-color: #00a32a;
}

.cas-status-expired {
    background: #00a32a;
    color: white;
    border-color: #00a32a;
}

/* IP Code Styles */
.cas-ip-code {
    background: #f6f7f7;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #dcdcde;
    color: #50575e;
    display: inline-block;
}

.cas-ip-highlight {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Time and Count Styling */
.cas-count-main {
    color: #d63638;
    font-weight: bold;
    font-size: 16px;
}

.cas-count-sub {
    color: #646970;
    font-size: 13px;
}

.cas-date-main {
    font-weight: bold;
}

.cas-date-time {
    color: #646970;
}

.cas-time-remaining {
    margin-top: 4px;
    font-size: 11px;
    color: #646970;
}

.cas-time-ago {
    color: #646970;
    font-style: italic;
    font-size: 13px;
}

/* Status Text */
.cas-status-text {
    color: #00a32a;
}

.cas-status-text.blocked {
    color: #d63638;
}

.cas-opmerking-sub {
    color: #646970;
    font-size: 13px;
}

/* Blocked Message Styles */
.cas-blocked-message {
    padding: 20px;
    background: #fff2cd;
    border: 1px solid #dba617;
    border-radius: 4px;
    margin: 20px 0;
}

.cas-blocked-message h3 {
    color: #8a6d3b;
    margin-top: 0;
    margin-bottom: 15px;
}

/* AVG Privacy informatie styling */
.cas-privacy-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-top: 10px;
}

.cas-privacy-info h4 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 16px;
}

.cas-privacy-info ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.cas-privacy-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.cas-privacy-info li strong {
    color: #495057;
}

.cas-privacy-info .description {
    margin-bottom: 0;
    font-style: italic;
    color: #6c757d;
}

/* Privacy Notice */
.cas-privacy-notice {
    margin: 30px 0 20px 0;
    padding: 20px;
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
}

.cas-privacy-notice h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 16px;
}

.cas-privacy-notice .cas-info-box {
    background: #fff;
    padding: 15px;
    border: 1px solid #dcdcde;
    margin-top: 10px;
}

.cas-privacy-notice .cas-technical-note {
    background: #f6f7f7;
    border-left: 4px solid #00a32a;
}

.cas-privacy-notice .cas-technical-note h4 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 14px;
}

/* Database Management Styles */
.cas-manual-cleanup {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dcdcde;
}

.cas-manual-cleanup h4 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 14px;
}

.cas-manual-cleanup form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cas-manual-cleanup label {
    font-weight: 600;
    color: #1d2327;
}

.cas-manual-cleanup select {
    padding: 4px 8px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background: #fff;
}

.cas-manual-cleanup .button {
    margin-left: 5px;
}

/* Database info styling */
.cas-info-section .cas-info-box {
    margin-bottom: 20px;
}

.cas-info-section .cas-info-box:last-child {
    margin-bottom: 0;
}

/* Status indicators */
.cas-info-section span[style*="color: #00a32a"] {
    font-weight: 600;
}

.cas-info-section span[style*="color: #d63384"] {
    font-weight: 600;
}

/* Responsive adjustments for cleanup form */
@media (max-width: 600px) {
    .cas-manual-cleanup form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cas-manual-cleanup select,
    .cas-manual-cleanup .button {
        margin-left: 0;
        width: 100%;
        max-width: 200px;
    }
}

/* Tab Interface Styles */
.nav-tab-wrapper {
    margin-bottom: 20px;
    border-bottom: 1px solid #c3c4c7;
}

.nav-tab {
    text-decoration: none;
    border: 1px solid transparent;
    margin-bottom: -1px;
    padding: 8px 12px;
    color: #646970;
    background: transparent;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: #2271b1;
    background: #f6f7f7;
}

.nav-tab-active {
    color: #1d2327;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-bottom: 1px solid #fff;
    font-weight: 600;
}

.cas-tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-top: none;
    margin-top: -1px;
}

.cas-tab-content.cas-tab-active {
    display: block;
}

/* Help section specific styling */
.cas-help-section h3 {
    margin: 30px 0 15px 0;
    color: #1d2327;
    font-size: 16px;
}

.cas-help-section h3:first-child {
    margin-top: 0;
}

/* Privacy section specific styling */
.cas-privacy-section h3 {
    margin: 30px 0 15px 0;
    color: #1d2327;
    font-size: 16px;
}

.cas-privacy-section h3:first-child {
    margin-top: 0;
}

.cas-privacy-section h4 {
    margin: 15px 0 10px 0;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
}

.cas-privacy-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.cas-privacy-section li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.cas-privacy-section code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
}

.cas-privacy-section em {
    color: #646970;
    font-style: italic;
}

/* Material Icons styling */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    vertical-align: middle;
    margin-right: 8px;
}

/* Material Icons in stats cards */
.cas-stats-card h3 .material-icons {
    font-size: 24px;
    margin-right: 10px;
}

.cas-stats-card h3 .material-icons.blue {
    color: #2271b1;
}

.cas-stats-card h3 .material-icons.green {
    color: #00a32a;
}

.cas-stats-card h3 .material-icons.orange {
    color: #f56e28;
}

.cas-stats-card h3 .material-icons.red {
    color: #d63384;
}

/* Material Icons in postbox headers */
.cas-postbox-header h2 .material-icons {
    font-size: 22px;
    margin-right: 10px;
    vertical-align: text-bottom;
}

.cas-postbox-header h2 .material-icons.red {
    color: #d63384;
}

.cas-postbox-header h2 .material-icons.orange {
    color: #f56e28;
}

/* Material Icons in buttons */
.button .material-icons {
    font-size: 18px;
    margin-right: 6px;
    vertical-align: text-top;
}

/* Material Icons in empty states */
.cas-empty-state .material-icons {
    font-size: 48px;
    color: #8c8f94;
    margin-bottom: 10px;
    display: block;
}

/* Material Icons in section headers only */
.cas-privacy-section h3 .material-icons,
.cas-help-section h3 .material-icons {
    color: #2271b1;
    font-size: 22px;
    vertical-align: text-bottom;
    margin-right: 8px;
}

/* Material Icons in warning boxes headers only */
.cas-warning-box h4 .material-icons {
    color: #f56e28;
    font-size: 18px;
    vertical-align: text-bottom;
}

/* Condoleance List Styling */
.cas-condoleance-list {
    font-size: 12px;
    line-height: 1.3;
}

.cas-condoleance-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.cas-condoleance-item a {
    color: #d63638;
    text-decoration: none;
    font-weight: 500;
}

.cas-condoleance-item a:hover {
    text-decoration: underline;
}

.cas-condoleance-count {
    display: block;
    margin-top: 4px;
    color: #646970;
    font-style: italic;
}

.cas-no-data {
    color: #8c8f94;
    font-style: italic;
    font-size: 12px;
}

/* Condoleance Title Styling */
.cas-condoleance-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.cas-condoleance-title a {
    color: #2271b1;
    text-decoration: none;
}

.cas-condoleance-title a:hover {
    text-decoration: underline;
}

.cas-condoleance-id {
    color: #646970;
    font-size: 11px;
}

/* E-mail Blacklist Styles */
.cas-blocked-by {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #646970;
}

.button-small {
    padding: 4px 8px !important;
    font-size: 12px !important;
    height: auto !important;
    line-height: 1.2 !important;
}
