/*!
 * BotBlocker Dashboard CSS Styles
 * 
 * This file contains the styling for the BotBlocker WordPress plugin dashboard interface,
 * including dashboard, settings, integrations, reports, rules, and other admin pages.
 *
 * @package     BotBlocker
 * @version     1.1.0
 * @author      BotBlocker Team
 * @copyright   Copyright (c) 2025 BotBlocker
 */

/* BotBlocker News Widget START */

.bbcs_botblocker-news {
  list-style-type: /*disc*/ none;
  padding-left: 0px; /*20*/
  margin-bottom: 0px;
}
.bbcs_news-item {
  margin-bottom: 10px;
}

.bbcs_news_a {
  display: inline-block;
  line-height: 1;
  white-space: normal;
  font-size: 11px;
}
.bbcs_news-date {
  display: block;
  font-size: 0.8em;
  color: #888;
  margin-top: -6px;
  line-height: 22px;
}

/* BotBlocker News Widget END */

/* BotBlocker Quick Rule Widget START */

.bbcs-form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 13px;
  color: rgb(119, 119, 119);
}

.bbcs-form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 11px;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bbcs-form-control:focus,
.bbcs-form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
.bbcs-form-select {
  display: block;
  width: 100%;
  font-size: 11px;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.bbcs-mb-3 {
  margin-bottom: 1rem;
}

.bbcs-btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
}

.bbcs-btn:focus,
.bbcs-btn:hover {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25); /* Blue focus shadow */
}

.bbcs-btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.bbcs-btn-primary:hover,
.bbcs-btn-primary:focus {
  background-color: #0069d9;
  border-color: #0062cc;
}

.bbcs-btn-primary:active {
  background-color: #0062cc;
  border-color: #0056b3;
}

.bbcs-btn:disabled,
.bbcs-btn[disabled] {
  pointer-events: none;
  opacity: 0.65;
}

.bbcs-btn-primary {
  background-color: #0088cc;
  border-color: #0088cc #0088cc #006699;
  color: #fff;
  border: none;
}

.bbcs-btn-primary:hover,
.bbcs-btn-primary.hover {
  background-color: #00a1f2;
  border-color: #00aaff #00aaff #0088cc;
  outline: none;
  box-shadow: none;
}

.bbcs-btn-primary:focus,
.bbcs-btn-primary.focus {
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.5);
  background-color: #0088cc;
  border-color: #0088cc;
}

.bbcs-btn-primary.disabled,
.bbcs-btn-primary:disabled {
  background-color: #0088cc;
  border-color: #0088cc #0088cc #006699;
}

.bbcs-btn-primary:active,
.bbcs-btn-primary.active,
.show > html .bbcs-btn-primary.dropdown-toggle {
  background-color: #006ea6 !important;
  background-image: none !important;
  border-color: #006699 #006699 #004466 !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.5) !important;
}

.bbcs-icon-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}

.bbcs-icon-button:focus {
  outline: none;
}

.bbcs-icon-button i {
  width: 25px;
  height: 25px;
  line-height: 25px;
  display: inline-block;
  color: #858585;
}
.bbcs-card-actions {
  position: absolute;
  left: 0;
}

.bbcs-btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
  box-shadow: none !important;
  border-color: #282d36;
}

.bbcs-btn-default:hover,
.bbcs-btn-default:active,
.bbcs-btn-default:focus {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.bbcs-btn.bbcs-btn-sm {
  font-size: 12.8px;
  font-size: 0.8rem;
  padding: 4.8px 10.4px;
  padding: 0.3rem 0.65rem;
}

.bbcs-upload-btns {
  display: flex;
  justify-content: space-between;
}

.bbcs-import-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.bbcs-import-group-btns {
  display: flex;
  gap: 8px;
}

.bbcs-import-label {
  font-weight: 600;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
  display: flex;
  align-items: center;
}

.bbcs-btn-success {
  background-color: #059669;
  border-color: #059669;
  color: #fff;
}

.bbcs-btn-success:hover {
  background-color: #047857;
  border-color: #047857;
}

.bbcs-btn-danger {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.bbcs-btn-danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
}

/* BotBlocker Quick Rule Widget END */

/* BotBlocker Stats Widget START */
.bbcs-counters-grid {
  display: grid;
  align-content: center;
  justify-content: center;
  align-items: center;
  justify-items: center;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 5px;
}
.bbcs-counters-grid div {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
}

.bbcs-h-today {
  font-size: 24px;
}

.bbcs-h-today-text {
  font-size: 12px;
  font-weight: 300;
}

.bbcs-h-today-block {
  font-size: 24px;
  color: #dc3545;
}

.bbcs-h-today-block-text {
  font-size: 12px;
  font-weight: 300;
}

.bbcs-h-total {
  font-size: 24px;
}

.bbcs-h-total-text {
  font-size: 12px;
  font-weight: 300;
}

.bbcs-h-total-block {
  font-size: 24px;
  color: #dc3545;
}

.bbcs-h-total-block-text {
  font-size: 12px;
  font-weight: 300;
}

.bbcs-h-se {
  font-size: 24px;
}

.bbcs-h-se-text {
  font-size: 12px;
  font-weight: 300;
}

.bbcs-h-percent-eff {
  font-size: 24px;
  color: rgb(84, 192, 77);
}

.bbcs-h-percent-eff-text {
  font-size: 12px;
  font-weight: 300;
}

.bbcs-health-wrapper {
  position: relative;
  display: flex;
}

@media (max-width: 991px) {
  .bbcs-health-wrapper {
    flex-direction: column;
  }
}

.bbcs-health-list {
  display: flex;
  margin-left: 10px;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-start;
  align-items: flex-start;
}

.bbcs-health-list-item {
  font-size: 11px;
  line-height: 15px;
}
.bbcs-health-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-start;
  align-items: flex-start;
}

.bbcs-health-list-item {
  font-size: 11px;
  line-height: 15px;
}

.bbcs-health-list-item.text-success {
  color: rgb(25, 135, 84);
}

.bbcs-health-list-item.text-danger {
  color: rgb(220, 53, 69);
}
.bbcs-health-list-item.text-muted {
  color: #999;
}

/* BotBlocker Stats Widget END */

.bbcs-quick-rule-widget {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.4;
}
.bbcs-qr-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bbcs-qr-desc {
  margin: 0 0 14px;
  color: #475569;
  font-size: 12px;
}
.bbcs-qr-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bbcs-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.bbcs-qr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bbcs-qr-field-full {
  grid-column: 1 / -1;
}
.bbcs-qr-label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bbcs-qr-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  background: #fff;
  transition: 0.15s;
}
.bbcs-qr-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}
.bbcs-qr-help {
  font-size: 10px;
  color: #64748b;
}
.bbcs-qr-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
  width: 100%;
}
.bbcs-qr-submit:hover {
  background: #1d4ed8;
}
.bbcs-qr-submit:active {
  background: #1e40af;
}
.bbcs-qr-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  color: #475569;
}
.bbcs-qr-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 10px;
}
.bbcs-upload-btns {
  position: absolute;
  top: 12px;
  right: 12px;
  gap: 8px;
}
@media (max-width: 600px) {
  .bbcs-qr-grid {
    grid-template-columns: 1fr;
  }
}

.col-lg-6 > .bbcs-health-gauge {
  padding-left: 10px;
  padding-right: 10px;
}