/* BC Email Blacklist Checker Styles */
.bc-blacklist-checker {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    color: #1f2937;
}

/* Input Section */
.bc-input-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.bc-input-group label {
    display: block;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.bc-input-wrapper {
    display: flex;
    gap: 12px;
}

.bc-input-wrapper input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    color: #1f2937;
    transition: all 0.2s;
}

.bc-input-wrapper input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.bc-input-wrapper input::placeholder {
    color: #9ca3af;
}

.bc-btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bc-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}

.bc-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.bc-spinner {
    width: 18px;
    height: 18px;
    animation: bc-spin 1s linear infinite;
}

@keyframes bc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bc-input-hints {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.bc-hint {
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.bc-hint:hover {
    background: rgba(255,255,255,0.2);
    color: #e2e8f0;
}

/* Error Message */
.bc-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Results Section */
.bc-results {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Summary */
.bc-summary {
    background: #f8fafc;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.bc-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.bc-checked-info {
    font-size: 15px;
    color: #64748b;
}

.bc-checked-info .bc-label {
    margin-right: 6px;
}

.bc-checked-info .bc-value {
    font-weight: 600;
    color: #1e293b;
}

.bc-ip-info {
    color: #94a3b8;
    font-size: 13px;
    margin-left: 4px;
}

.bc-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bc-status-badge.clean {
    background: #dcfce7;
    color: #166534;
}

.bc-status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.bc-status-badge.critical {
    background: #fee2e2;
    color: #991b1b;
}

/* Stats Grid */
.bc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .bc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bc-stat {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.bc-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.bc-stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bc-stat-total .bc-stat-number { color: #3b82f6; }
.bc-stat-clean .bc-stat-number { color: #10b981; }
.bc-stat-listed .bc-stat-number { color: #ef4444; }
.bc-stat-timeout .bc-stat-number { color: #f59e0b; }

/* Progress Section */
.bc-progress-section {
    padding: 16px 24px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.bc-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.bc-progress-text {
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

/* Filter Tabs */
.bc-filter-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bc-tab {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.bc-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.bc-tab.active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: white;
}

.bc-tab span {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    font-size: 11px;
    margin-left: 4px;
}

.bc-tab.active span {
    background: rgba(255,255,255,0.2);
}

/* Results Table */
.bc-results-table-wrapper {
    overflow-x: auto;
}

.bc-results-table {
    width: 100%;
    border-collapse: collapse;
}

.bc-results-table th {
    background: #f8fafc;
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.bc-results-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
}

.bc-results-table tr:last-child td {
    border-bottom: none;
}

.bc-results-table tr:hover {
    background: #f8fafc;
}

.bc-results-table tr.listed {
    background: #fef2f2;
}

.bc-results-table tr.listed:hover {
    background: #fee2e2;
}

/* Status Icons */
.bc-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.bc-status-icon.clean {
    background: #dcfce7;
    color: #166534;
}

.bc-status-icon.listed {
    background: #fee2e2;
    color: #991b1b;
}

.bc-status-icon svg {
    width: 16px;
    height: 16px;
}

/* Blacklist Name */
.bc-blacklist-name {
    font-weight: 600;
    color: #1e293b;
}

.bc-blacklist-zone {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 2px;
}

/* Severity Badges */
.bc-severity-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bc-severity-high {
    background: #fee2e2;
    color: #991b1b;
}

.bc-severity-medium {
    background: #fef3c7;
    color: #92400e;
}

.bc-severity-low {
    background: #e0e7ff;
    color: #3730a3;
}

/* Action Links */
.bc-action-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.bc-action-link:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.bc-action-link svg {
    width: 14px;
    height: 14px;
}

/* Info Section */
.bc-info-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    margin-top: 24px;
}

.bc-info-section h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.bc-info-section h3:not(:first-child) {
    margin-top: 24px;
}

.bc-info-section p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.bc-info-section ul,
.bc-info-section ol {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.bc-info-section li {
    margin-bottom: 8px;
}

.bc-info-section strong {
    color: #1e293b;
}

/* Severity Legend */
.bc-severity-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.bc-severity-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bc-severity-item span:last-child {
    color: #64748b;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .bc-blacklist-checker {
        padding: 12px;
    }
    
    .bc-input-section {
        padding: 20px;
    }
    
    .bc-input-wrapper {
        flex-direction: column;
    }
    
    .bc-btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .bc-summary-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bc-filter-tabs {
        overflow-x: auto;
        padding: 12px 16px;
    }
    
    .bc-results-table th:nth-child(3),
    .bc-results-table td:nth-child(3) {
        display: none;
    }
}

/* Animation for results appearing */
@keyframes bc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bc-results-table tbody tr {
    animation: bc-fadeIn 0.3s ease forwards;
}

.bc-results-table tbody tr:nth-child(1) { animation-delay: 0.02s; }
.bc-results-table tbody tr:nth-child(2) { animation-delay: 0.04s; }
.bc-results-table tbody tr:nth-child(3) { animation-delay: 0.06s; }
.bc-results-table tbody tr:nth-child(4) { animation-delay: 0.08s; }
.bc-results-table tbody tr:nth-child(5) { animation-delay: 0.1s; }
.bc-results-table tbody tr:nth-child(n+6) { animation-delay: 0.12s; }
