/**
 * BotFend Anti-Bot Firewall - Threat Dashboard Styles
 */

.botfend-adaptive-wrap {
    margin: 20px 20px 0 2px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.botfend-adaptive-header {
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #c3c4c7;
}

.botfend-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.botfend-page-title {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
    color: #1d2327;
}

.botfend-version-badge {
    background: #2271b1;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.botfend-header-description {
    margin: 0;
    color: #50575e;
    font-size: 14px;
}

.botfend-adaptive-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 25px;
}

@media (max-width: 960px) {
    .botfend-adaptive-grid {
        grid-template-columns: 1fr;
    }
}

.botfend-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.botfend-card-header {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e4e7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.botfend-collapsible-header {
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.botfend-collapsible-header:hover {
    background: #f1f3f5;
}

.botfend-toggle-icon {
    color: #646970 !important;
    transition: transform 0.2s ease;
}

.botfend-card-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #2271b1;
}

.botfend-card-header h2,
.botfend-card-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.botfend-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 600px) {
    .botfend-status-grid {
        grid-template-columns: 1fr;
    }
}

.botfend-status-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.botfend-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5f0fa;
    flex-shrink: 0;
}

.botfend-status-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2271b1;
}

.botfend-status-icon.mode-learning .dashicons { color: #00a32a; }
.botfend-status-icon.mode-balanced .dashicons { color: #2271b1; }
.botfend-status-icon.mode-aggressive .dashicons { color: #f0ad4e; }
.botfend-status-icon.mode-emergency .dashicons { color: #dc3232; }

.botfend-status-info {
    flex: 1;
}

.botfend-status-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.botfend-status-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.botfend-status-value.mode-learning { color: #00a32a; }
.botfend-status-value.mode-balanced { color: #2271b1; }
.botfend-status-value.mode-aggressive { color: #f0ad4e; }
.botfend-status-value.mode-emergency { color: #dc3232; }

.botfend-status-desc {
    display: block;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.botfend-progress-wrapper {
    background: #e2e4e7;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin: 10px 0;
}

.botfend-progress-bar {
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.botfend-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.botfend-progress-value {
    font-size: 14px;
    font-weight: 600;
}

.botfend-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.botfend-badge.success {
    background: #d4edda;
    color: #46b450;
}

.botfend-badge.warning {
    background: #fff3cd;
    color: #f0ad4e;
}

.botfend-badge.danger {
    background: #f8d7da;
    color: #dc3232;
}

.botfend-settings-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e2e4e7;
}

.botfend-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e4e7;
}

.badge-label {
    font-size: 12px;
    color: #6c757d;
}

.badge-value {
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
}

.botfend-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.botfend-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    text-decoration: none;
    color: #1d2327;
    transition: all 0.2s ease;
}

.botfend-action-btn:hover {
    background: #fff;
    border-color: #2271b1;
    transform: translateX(4px);
}

.botfend-action-btn .dashicons {
    color: #2271b1;
    font-size: 18px;
    width: 18px;
    height: 18px;
}