/**
 * BotFend Anti-Bot Firewall - Firewall Wizard Styles

.botfend-firewall-wrap {
    max-width: 1200px;
}

/* Ensure padding doesn't blow out the width on mobile */
.botfend-firewall-wrap * {
    box-sizing: border-box;
}

.botfend-firewall-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 782px) {
    .botfend-firewall-container {
        grid-template-columns: 1fr;
    }
}

.botfend-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Prevent card from stretching past viewport */
    max-width: 100%;
    overflow: hidden; 
}

.botfend-card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.3em;
}

/* Status Badge */
.botfend-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.botfend-status-badge .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.botfend-status-green {
    background: #ecf9ec;
    color: #1e7b1e;
    border-left: 4px solid #46b450;
}

.botfend-status-orange {
    background: #fff8e5;
    color: #b85c00;
    border-left: 4px solid #f56e28;
}

.botfend-status-red {
    background: #fce9e9;
    color: #b32d2d;
    border-left: 4px solid #dc3232;
}

/* Tables */
.botfend-status-table,
.botfend-env-table,
.botfend-mode-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.botfend-status-table th,
.botfend-env-table th,
.botfend-mode-table th {
    text-align: left;
    padding: 10px 5px;
    font-weight: 600;
    width: 40%;
}

.botfend-status-table td,
.botfend-env-table td,
.botfend-mode-table td {
    padding: 10px 5px;
    word-break: break-word; /* Allows long strings to wrap */
}

.botfend-mode-table th,
.botfend-mode-table td {
    text-align: center;
    width: auto;
}

.botfend-mode-table th:first-child,
.botfend-mode-table td:first-child {
    text-align: left;
}

/* Add horizontal scrolling for the mode table on small screens */
.botfend-mode-table {
    border: 1px solid #e5e5e5;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.botfend-mode-table th {
    background: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
}

.botfend-mode-table td {
    border-bottom: 1px solid #f0f0f0;
}

.botfend-mode-table tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
#botfend-firewall-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#botfend-firewall-actions .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

#botfend-firewall-actions .description {
    margin-top: 10px;
    color: #666;
}

/* Message Area */
#botfend-firewall-message {
    margin-top: 20px;
}

#botfend-firewall-message p {
    margin: 0;
    padding: 10px;
}

/* Code Blocks */
.botfend-card pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid #ddd;
    font-family: monospace;
    font-size: 13px;
    white-space: pre-wrap; /* Forces long code block lines to wrap */
    word-break: break-all;
}

.botfend-card code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    word-break: break-all; /* CRITICAL: Breaks long file paths */
    white-space: normal;
}

/* Details/Summary */
.botfend-card details {
    margin-top: 15px;
}

.botfend-card summary {
    cursor: pointer;
    color: #2271b1;
    font-weight: 500;
}

.botfend-card summary:hover {
    color: #135e96;
}

/* Environment Info Icons */
.botfend-env-table .dashicons,
.botfend-status-table .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

/* Responsive specific to mobile phones */
@media (max-width: 600px) {
    /* Stack table rows into a cleaner key/value format instead of a squished table */
    .botfend-status-table th,
    .botfend-env-table th,
    .botfend-status-table td,
    .botfend-env-table td {
        display: block;
        width: 100%;
    }
    
    .botfend-status-table tr,
    .botfend-env-table tr {
        display: block;
        margin-bottom: 15px;
        border-bottom: 1px dashed #eee;
        padding-bottom: 10px;
    }

    .botfend-status-table tr:last-child,
    .botfend-env-table tr:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .botfend-status-table th,
    .botfend-env-table th {
        padding-bottom: 0;
        color: #555;
    }

    .botfend-card pre {
        font-size: 11px;
        padding: 10px;
    }

    .botfend-status-badge {
        font-size: 14px;
        padding: 8px 12px;
    }

	/* Pro upgrade notice styles */
.botfend-pro-notice {
    background: linear-gradient(135deg, #f0f6fc 0%, #fff 100%);
    border-left-color: #f05a28;
}
.botfend-pro-icon {
    font-size: 48px;
}
.botfend-pro-content h2 {
    margin-top: 0;
    color: #f05a28;
}
.botfend-pro-badge span {
    background: #f05a28;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}
@media (max-width: 768px) {
    .botfend-pro-container {
        flex-direction: column;
        text-align: center;
    }
    .botfend-pro-content ul {
        text-align: left;
    }
    .botfend-pro-buttons {
        justify-content: center;
    }
}
}