/*
 * Guardify Styles
 * Version: 1.0.7
 */

/* Guardify styles */
.guardify-wrap { max-width: 1200px; margin: 20px 0; }
.guardify-tabs .nav-tabs { list-style: none; margin: 0; padding: 0; display: flex; border-bottom: 2px solid #34C759; }
.guardify-tabs .nav-tabs li { margin-right: 10px; }
.guardify-tabs .nav-tabs a { display: block; padding: 10px 20px; background: #f1f1f1; color: #333; text-decoration: none; }
.guardify-tabs .nav-tabs a:hover, .guardify-tabs .nav-tabs .active a { background: #34C759; color: #fff; }
.guardify-tabs .tab-pane { display: none; padding: 20px; background: #fff; border: 1px solid #ddd; }
.guardify-tabs .tab-pane.active { display: block; }
.guardify-wrap h2 { color: #0073aa; }
.guardify-wrap p.description { font-size: 12px; color: #666; }
#activityChart { max-width: 800px; margin: 20px 0; }
#statsPeriod { margin-bottom: 20px; }
.guardify-header { background: #34C759; color: #fff; padding: 15px; border-radius: 5px; margin-bottom: 20px; margin-top: 10px;}
.guardify-header h2 { color: #fff; margin: 0; }
.guardify-stats table { margin-bottom: 20px; }
.guardify-textarea { width: 100%; height: 150px; resize: vertical; border: 1px solid #ddd; border-radius: 4px; padding: 10px; font-family: monospace; }

/* IP Rules styles */
.guardify-ip-rules { display: flex; gap: 20px; }
.guardify-add-rule { flex: 1; background: #f9f9f9; padding: 15px; border: 1px solid #ddd; border-radius: 4px; }
.guardify-add-rule label { display: block; margin-bottom: 5px; font-weight: bold; }
.guardify-add-rule input[type="text"], .guardify-add-rule input[type="date"], .guardify-add-rule select, .guardify-add-rule textarea { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.guardify-add-rule textarea { height: 80px; resize: vertical; }
.guardify-rule-list { flex: 2; }
.guardify-filter-buttons { margin-bottom: 15px; }
.guardify-filter-buttons .button { margin-right: 10px; }
.guardify-filter-buttons .button.active { background: #0073aa; color: #fff; }
.guardify-ip-table { margin-top: 10px; }
.guardify-ip-table .ip-allow td:first-child { color: #28a745; font-weight: bold; }
.guardify-ip-table .ip-block td:first-child { color: #dc3545; font-weight: bold; }
.button-danger { background: #dc3545; color: #fff; border-color: #dc3545; }
.button-danger:hover { background: #c82333; border-color: #bd2130; }

/* Country list styles */
.guardify-country-list { max-height: 300px; overflow-y: auto; border: 1px solid #ddd; padding: 10px; margin-top: 10px; }
.guardify-country-item { display: block; margin-bottom: 5px; }
#country-search { margin-bottom: 10px; }


/* Warning block for ByteDefense */
.guardify-warning {
    background: #fff3cd;
    border-left: 4px solid #ffcc00;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.guardify-warning h3 {
    margin-top: 0;
    color: #856404;
}
.guardify-warning p {
    margin-bottom: 15px;
    color: #856404;
}

/* AJAX loader */
.guardify-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #34C759;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}