.chatasbot-admin .nav-tab-wrapper {
  margin-top: 15px;
}

.chatasbot-tab-content {
  display: none;
  margin-top: 20px;
}

.chatasbot-tab-content.is-active {
  display: block;
}

.chatasbot-result {
  margin-top: 10px;
  font-weight: 500;
}

.chatasbot-result.success {
  color: #008000;
}

.chatasbot-result.error {
  color: #b22222;
}

.chatasbot-schedule-list {
  margin-top: 10px;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 4px;
  max-height: 400px;
  overflow: auto;
  font-family: Menlo, Monaco, monospace;
  font-size: 12px;
}

/* Manual numbers layout */
.chatasbot-manual-numbers .chatasbot-number-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.chatasbot-manual-numbers .chatasbot-manual-input {
  flex: 1;
}

/* Select2 styling to match modern multiselect */
.select2-container--default .select2-selection--multiple {
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  background: #fff;
  min-height: 40px;
  padding: 3px;
  box-shadow: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 2px 10px;
  font-size: 12px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #fff;
  margin-right: 5px;
  font-weight: bold;
}

.select2-dropdown {
  border-radius: 6px;
  border: 1px solid #ccd0d4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.select2-results__option {
  padding: 6px 10px;
  font-size: 13px;
}

.select2-results__option--highlighted {
  background-color: #0073aa !important;
  color: #fff !important;
}

#chatasbot_schedule_list table.widefat {
  margin-top: 10px;
  width: 100%;
}
#chatasbot_schedule_list td, 
#chatasbot_schedule_list th {
  padding: 8px 10px;
}

#chatasbot_schedule_list table.widefat {
  margin-top: 10px;
  width: 100%;
  background: #fff;
}

#chatasbot_schedule_list td, 
#chatasbot_schedule_list th {
  padding: 8px 10px;
  font-size: 13px;
}

#chatasbot_last_updated {
  text-align: right;
  font-style: italic;
}

.chatasbot-notice {
  display: none;
  padding: 12px 15px;
  border-left: 4px solid #00a32a;
  background: #ecfdf5;
  color: #0f5132;
  margin: 15px 0;
  border-radius: 4px;
  font-weight: 500;
  animation: fadeInDown 0.3s ease;
}
.chatasbot-notice.error {
  border-left-color: #d63638;
  background: #fef2f2;
  color: #611a15;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==== ChatasBot Modern Popup ==== */
.chatasbot-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}

.chatasbot-modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 420px;
  max-width: 90%;
  padding: 60px 30px 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Icon Circle */
.chatasbot-modal-icon {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  font-weight: bold;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
}

.chatasbot-modal.success .chatasbot-modal-icon {
  background: #00b96b;
  box-shadow: 0 0 35px rgba(0, 185, 107, 0.6);
}

.chatasbot-modal.error .chatasbot-modal-icon {
  background: #d93025;
  box-shadow: 0 0 35px rgba(217, 48, 37, 0.6);
}

/* Title + Message */
.chatasbot-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

.chatasbot-modal-message {
  font-size: 15px;
  color: #555;
  margin-bottom: 24px;
}

/* Bottom bar effect */
.chatasbot-modal-footer {
  height: 8px;
  width: 60%;
  margin: 0 auto;
  border-radius: 8px;
}

.chatasbot-modal.success .chatasbot-modal-footer {
  background: #00b96b;
}

.chatasbot-modal.error .chatasbot-modal-footer {
  background: #d93025;
}

/* Button */
.chatasbot-modal-close {
  padding: 8px 26px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  background: #0073aa;
  color: white;
  cursor: pointer;
}
.chatasbot-modal-close:hover {
  background: #005d88;
}

#wpwrap,
#wpcontent {
  position: relative;
  z-index: 1;
}




#chatasbot_subscription_result table.widefat {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}
#chatasbot_subscription_result th {
  background: #f8f8f8;
  text-align: left;
  padding: 8px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}
#chatasbot_subscription_result td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}


/* ==== Subscription Details Styling ==== */
.chatasbot-subscription-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}

.sub-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.sub-plan-header h2 {
  margin: 0;
  font-size: 20px;
  color: #222;
}

.sub-plan-header .status {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  text-transform: capitalize;
  color: #fff;
}

.sub-plan-header .status.active { background: #28a745; }
.sub-plan-header .status.expired { background: #dc3545; }
.sub-plan-header .status.pending { background: #ffc107; color: #000; }

.sub-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.sub-usage {
  margin-bottom: 20px;
}

.usage-bar {
  width: 100%;
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin: 5px 0 10px;
}

.usage-fill {
  height: 10px;
  background: linear-gradient(90deg, #0073aa, #00b96b);
}

.sub-features {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.sub-features h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.sub-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-features li {
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
}


.chatasbot-inline-result {
  background: #f0f6fc;
  border-left: 4px solid #2271b1;
  padding: 8px 10px;
  border-radius: 3px;
  display: inline-block;
}

