/* Admin styles */
.botfirewall-wrap { max-width: 1200px; margin: 20px 0; }

/* Tabs */
.nav-tab-wrapper {
    border-bottom: 2px solid #34C759!important;
    margin-bottom: 20px;
}
.nav-tab {
    background: #f5f5f5;
    color: #3c434a;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    padding: 10px 20px;
    border-radius: 0; /* Removed rounded corners */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.nav-tab:hover {
    background: #e5e5e5;
}
.nav-tab-active {
    background: #34C759;
    color: #fff;
    border-color: #34C759;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Tab content */
.botfirewall-tab-content {
    background: #fff;
    padding: 25px;
    border-radius: 0; /* Removed rounded corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e5e5e5;
}

/* Info and tip */
.botfirewall-info {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}
.botfirewall-tip {
    color: #34C759;
    font-size: 14px;
    margin-top: 10px;
}

/* Toggle button */
.botfirewall-toggle {
    padding: 10px 20px;
    border-radius: 0; /* Removed rounded corners */
    font-weight: 500;
    transition: all 0.3s ease;
}
.botfirewall-toggle.button-primary {
    background: #34C759;
    border-color: #005a87;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.botfirewall-toggle.button-secondary {
    background: #d63638;
    border-color: #b32d2e;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.botfirewall-toggle:hover {
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Stats */
.botfirewall-stats {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 0; /* Removed rounded corners */
    border: 1px solid #e5e5e5;
}
.botfirewall-stats h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}
.botfirewall-stats p {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
}
.botfirewall-stats .dashicons {
    color: #34C759;
    vertical-align: middle;
    margin-right: 5px;
}


/* Switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: #34C759;
}
input:checked + .slider:before {
    transform: translateX(20px);
}
.slider.round {
    border-radius: 20px;
}
.slider.round:before {
    border-radius: 50%;
}

/* Table styles */
.wp-list-table th, .wp-list-table td {
    vertical-align: middle;
}


/* Quick Filter styles */
.botfirewall-quick-filter {
    background: #e6f4ea;
    border: 1px solid #28a745;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
.botfirewall-quick-filter h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #28a745;
}
.botfirewall-quick-filter-button {
    background: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    margin: 0 5px 5px 0 !important;
    height: auto !important;
    line-height: 1.5 !important;
}
.botfirewall-quick-filter-button:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}



/* Upgrade to Premium Section */
.botfirewall-upgrade-premium {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 6px 12px rgba(52, 199, 89, 0.1);
    border: 1px solid #e6f3ff;
    position: relative;
    overflow: hidden;
}

.botfirewall-upgrade-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #34C759, #2eb34f);
}

.botfirewall-premium-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.botfirewall-premium-header h4 {
    font-size: 20px;
    color: #1d2327;
    margin: 0;
    font-weight: 600;
}

.botfirewall-premium-header .dashicons {
    font-size: 24px;
    color: #34C759;
    margin-right: 10px;
    animation: icon-pulse 2s infinite;
}

.botfirewall-upgrade-premium h5 {
    font-size: 16px;
    color: #1d2327;
    margin: 20px 0 15px 0;
    font-weight: 600;
}

.botfirewall-upgrade-premium p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.botfirewall-upgrade-premium ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.botfirewall-upgrade-premium ul li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.botfirewall-upgrade-premium ul li:hover {
    transform: translateX(5px);
}

.botfirewall-upgrade-premium ul li .dashicons {
    color: #34C759;
    margin-right: 10px;
    font-size: 18px;
    animation: icon-bounce 1.5s infinite;
}

.botfirewall-green-button {
    background: linear-gradient(135deg, #34C759 0%, #2eb34f 100%) !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 8px rgba(52, 199, 89, 0.3) !important;
    display: inline-block;
}

.botfirewall-green-button:hover {
    background: linear-gradient(135deg, #2eb34f 0%, #34C759 100%) !important;
    box-shadow: 0 6px 12px rgba(52, 199, 89, 0.4) !important;
    transform: translateY(-2px) !important;
}

.botfirewall-trans-button {
    background: none;
    border: none !important;
    padding: 18px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    display: inline-block;
}

.botfirewall-trans-button:hover {
    transform: translateY(-2px) !important;
}

.botfirewall-btn-pulse {
    animation: btn-pulse 2s infinite;
}

/* Animations */
@keyframes icon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes icon-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}


/* Recent Activity styles */
.botfirewall-recent-activity {
    margin-top: 30px;
}
.botfirewall-recent-activity h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}
.status-allowed {
    color: #28a745;
    font-weight: bold;
}
.status-blocked {
    color: #dc3545;
    font-weight: bold;
}

/* Stats filter styles */
.botfirewall-stats-filter {
    margin-bottom: 15px;
    position: relative;
}
.botfirewall-stats-filter button.active {
    background: #218838 !important;
    border-color: #218838 !important;
}

.botfirewall-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #218838;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Notice styles */
.botfirewall-notice {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 0 0 20px 0;
    border-radius: 6px;
    background: #f8f9fa;
    border-left: 4px solid;
}

.botfirewall-notice-info {
    border-left-color: #34C759; /* Green color for info */
}

.botfirewall-notice .dashicons {
    font-size: 24px;
    margin-right: 20px;
    color: #34C759;
}

.botfirewall-notice p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
