/* JB Membership Plugin Styles */

/* Promotion Step Styles */
.jb-promotion-content {
  padding: 20px 0;
}

.jb-promotion-features {
  margin-bottom: 25px;
}

.jb-feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.jb-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #0073aa;
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 14px;
}

.jb-feature-text {
  font-size: 16px;
  color: #333;
}

.jb-promotion-action {
  margin-top: 20px;
}

.jb-form {
  max-width: 400px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.jb-form-group {
  margin-bottom: 15px;
}

.jb-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.jb-form-group input[type="text"],
.jb-form-group input[type="email"],
.jb-form-group input[type="password"],
.jb-form-group input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.jb-button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s;
}

.jb-button-primary {
  background-color: #0073aa;
  color: white;
}

.jb-button-primary:hover {
  background-color: #005a87;
}

.jb-button-secondary {
  background-color: #666;
  color: white;
}

.jb-button-secondary:hover {
  background-color: #555;
}

/* Messages */
.jb-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

.jb-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.jb-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Plans Grid */
.jb-plans-container {
  margin: 20px 0;
}

.jb-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.jb-plan-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background: white;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.jb-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.jb-plan-header h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 24px;
}

.jb-plan-pricing {
  margin: 15px 0;
}

.jb-actual-price {
  text-decoration: line-through;
  color: #999;
  font-size: 18px;
}

.jb-offer-price {
  font-size: 32px;
  font-weight: bold;
  color: #0073aa;
  margin: 5px 0;
}

/* Download QR button spacing in popup */
#jb-download-qr {
  max-width: 260px;
}

.jb-plan-validity {
  margin: 15px 0;
  color: #666;
}

.jb-plan-action {
  margin-top: 20px;
}

/* Modal Styles */
.jb-modal {
  position: fixed;
  z-index: 999999999 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.jb-modal-content {
  background-color: white;
  margin: 0;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.jb-close {
  color: #94a3b8;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  line-height: 1;
}

.jb-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

.jb-qr-image {
  max-width: 200px;
  height: auto;
  margin: 20px 0;
}

.jb-payment-details {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
}

.jb-qr-section {
  text-align: center;
  margin: 20px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.jb-qr-section h4 {
  margin: 0 0 16px 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

#jb-qr-code-container {
  position: relative;
  min-height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 16px 0;
}

#jb-transaction-id-label {
  display: none;
  text-align: center;
  font-weight: 500;
  color: #374151;
  font-size: 12px;
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
}

.jb-qr-image {
  width: 200px;
  height: 200px;
  max-width: 200px;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid white;
}

#jb-download-qr {
  max-width: 220px;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: #6b7280;
  border: none;
  border-radius: 6px;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

#jb-download-qr:hover {
  background: #4b5563;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(107, 114, 128, 0.3);
}

.jb-loader {
  display: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding-right: 30px;
}

.jb-loader::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  transform: translateY(-50%);
}

/* User Status */
.jb-user-status-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.jb-active-membership {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.25) !important;
  border-radius: 20px !important;
  padding: 24px 30px !important;
  color: white !important;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15) !important;
  position: relative;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 20px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jb-active-membership::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 180%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.jb-active-membership:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25) !important;
}

.jb-active-membership h3 {
  color: white !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding-bottom: 10px !important;
}

.jb-membership-details {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 15px 20px !important;
  border-radius: 12px !important;
  margin: 15px 0 !important;
}

.jb-membership-details p {
  margin: 8px 0 !important;
  color: white !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.jb-membership-details p strong {
  color: rgba(255, 255, 255, 0.9) !important;
}

.jb-status-active {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: inline-block !important;
}

.jb-no-membership {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.2) !important;
  border-radius: 20px !important;
  padding: 24px 30px !important;
  color: white !important;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12) !important;
  position: relative;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 20px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jb-no-membership::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 180%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.jb-no-membership:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2) !important;
}

.jb-no-membership h3 {
  color: white !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-bottom: 10px !important;
}

.jb-no-membership p {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  margin-bottom: 20px !important;
  line-height: 1.5 !important;
}

.jb-upgrade-option {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Welcome Message */
.jb-welcome-message {
  padding: 15px;
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 4px;
  margin: 15px 0;
}

.jb-active-plan {
  margin-top: 15px;
  padding: 15px;
  background: white;
  border-radius: 4px;
}

/* Premium Status Styles */
.jb-premium-status {
  text-align: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
  color: white;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
  font-weight: 600;
  font-size: 15px;
}

.jb-premium-status a {
  color: white !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.jb-premium-status a:hover {
  text-decoration: underline !important;
  opacity: 0.9;
}

.jb-premium-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.jb-premium-status p {
  margin: 8px 0;
  font-size: 16px;
}

.jb-premium-status p:first-of-type {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Admin Styles */
.jb-admin-dashboard {
  margin: 20px 0;
}

.jb-admin-card {
  background: white;
  padding: 20px;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  max-width: 100%;
}

.jb-plan-item {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* Admin Plans page polish */
.jb-plan-title {
  margin: 0 0 14px 0;
  padding: 10px 14px;
  background: #eef2ff;
  border-radius: 8px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jb-plan-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.jb-plan-fields .jb-form-group label {
  font-weight: 600;
  color: #111827;
}

/* Improve buttons in plans editor */
.jb-plan-actions .button {
  margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .jb-plans-grid {
    grid-template-columns: 1fr;
  }

  .jb-form {
    max-width: 100%;
  }

  .jb-modal-content {
    width: 95%;
    margin: 0;
  }

  .jb-auth-tabs {
    flex-direction: column;
  }

  .jb-tab-btn {
    border-bottom: 1px solid #ddd;
    border-right: none;
  }

  .jb-tab-btn.active {
    border-bottom-color: #0073aa;
  }

  .jb-premium-status {
    padding: 14px 15px;
  }
}

/* Form Footer */
.jb-form-footer {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.jb-form-footer a {
  color: #0073aa;
  text-decoration: none;
}

.jb-form-footer a:hover {
  text-decoration: underline;
}

/* Upgrade Button Styles */
.jb-upgrade-container {
  text-align: center;
  margin: 20px 0;
}

.jb-upgrade-main-btn {
  font-size: 18px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #ef4444 0%, #ef4444 85%, #ec4899 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2) !important;
}

.jb-upgrade-main-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35) !important;
  background: linear-gradient(135deg, #dc2626 0%, #dc2626 85%, #d946ef 100%) !important;
}

.jb-no-plan-upgrade-btn {
  background: linear-gradient(135deg, #ef4444 0%, #ef4444 85%, #ec4899 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2) !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.jb-no-plan-upgrade-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35) !important;
  background: linear-gradient(135deg, #dc2626 0%, #dc2626 85%, #d946ef 100%) !important;
}

/* Popup Modal Styles */
.jb-upgrade-modal-content {
  max-width: 480px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expand modal size dynamically to fit comparison layout when plans step is visible */
.jb-upgrade-modal-content:has(#jb-plans-step:not([style*="display: none"])) {
  max-width: 680px !important;
}

.jb-popup-step {
  min-height: auto;
  padding: 6px 0;
}

.jb-popup-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.jb-popup-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #0073aa;
}

.jb-popup-header h3 {
  margin: 0 0 8px 0;
  color: #1f2937;
  font-size: 24px;
  font-weight: 600;
}

.jb-popup-header p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
}

#jb-membership-status {
  margin-top: 12px;
}

.jb-current-membership {
  background: #eff6ff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  text-align: left;
  margin: 12px 0;
}

.jb-current-membership p {
  margin: 6px 0;
  color: #1e40af;
  font-weight: 500;
  font-size: 14px;
}

.jb-current-membership .jb-upgrade-note {
  color: #0073aa;
  font-weight: 600;
  margin-top: 12px;
  font-style: italic;
}

.jb-no-membership {
  color: #6b7280;
  font-style: italic;
  font-weight: 500;
  margin: 12px 0;
  font-size: 14px;
}

/* Enhanced Premium Status */
.jb-already-premium-content {
  text-align: center;
}

.jb-already-premium-content .jb-premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 20px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.jb-already-premium-content p {
  font-size: 18px;
  color: #374151;
  margin: 16px 0;
  font-weight: 500;
}

#jb-current-membership-details {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #bbf7d0;
  margin: 20px 0;
  text-align: left;
}

#jb-current-membership-details .jb-membership-info p {
  margin: 8px 0;
  color: #166534;
  font-weight: 600;
}

#jb-current-membership-details .jb-membership-info strong {
  color: #15803d;
}

/* Auth Tabs */
.jb-auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.jb-tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.jb-tab-btn.active {
  color: #0073aa;
  border-bottom-color: #0073aa;
}

.jb-tab-btn:hover {
  color: #0073aa;
}

.jb-tab-content {
  display: none;
}

.jb-tab-content.active {
  display: block;
}

/* Popup Forms */
.jb-popup-form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.jb-full-width {
  width: 100%;
  margin-bottom: 10px;
}

/* Popup Plans Grid */
.jb-popup-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.jb-popup-plan-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 14px;
  background: white;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.jb-plan-card-top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0073aa, #005a87);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.jb-popup-plan-card:hover .jb-plan-card-top-border {
  transform: scaleX(1);
}

.jb-popup-plan-card .jb-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.jb-discount-badge {
  background: #10b981;
  color: white;
  border: none;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.jb-popup-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 115, 170, 0.12);
  border-color: #0073aa;
}

.jb-popup-plan-card h5 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

.jb-popup-plan-card .jb-plan-pricing {
  margin: 6px 0;
  padding: 4px 0;
}

.jb-popup-plan-card .jb-actual-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 4px;
}

.jb-popup-plan-card .jb-offer-price {
  font-size: 24px;
  font-weight: 700;
  color: #0073aa;
  margin: 0;
  line-height: 1;
}

.jb-popup-plan-card .jb-plan-validity {
  margin: 6px 0 10px 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.jb-popup-plan-card .jb-plan-validity p {
  margin: 0;
  font-weight: 500;
}

.jb-popup-plan-card .jb-plan-action {
  margin-top: 0;
}

.jb-popup-plan-card .jb-button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.jb-popup-plan-card .jb-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 115, 170, 0.3);
}

/* Membership Status */
.jb-current-membership {
  background: #e7f3ff;
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
}

.jb-no-membership {
  color: #666;
  font-style: italic;
}

.jb-upgrade-note {
  color: #0073aa;
  font-weight: bold;
  margin-top: 10px;
}

/* Payment Details */
.jb-payment-plan-details {
  background: #f0fdf4;
  padding: 14px;
  border-radius: 8px;
  margin: 16px 0;
  text-align: left;
  border: 1px solid #bbf7d0;
}

.jb-payment-plan-details p {
  margin: 6px 0;
  color: #166534;
  font-weight: 500;
  font-size: 14px;
}

.jb-payment-plan-details p:first-child {
  margin-top: 0;
}

.jb-payment-plan-details strong {
  color: #15803d;
  font-weight: 600;
}

/* Payment Info Styles */
.jb-payment-info {
  background: #eff6ff;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  border: 1px solid #bfdbfe;
}

.jb-payment-info p:first-child {
  margin-top: 0;
  font-weight: 600;
  color: #1e40af;
  font-size: 15px;
}

.jb-payment-info ol {
  margin: 12px 0;
  padding-left: 20px;
  counter-reset: step-counter;
  list-style: none;
}

.jb-payment-info li {
  margin: 8px 0;
  color: #374151;
  font-weight: 500;
  position: relative;
  padding-left: 6px;
  counter-increment: step-counter;
  font-size: 14px;
}

.jb-payment-info li::before {
  content: counter(step-counter);
  position: absolute;
  left: -26px;
  top: 0;
  background: #3b82f6;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.jb-note {
  background: #fef3c7;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #f59e0b;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
}

.jb-note::before {
  content: '⚠️';
  margin-right: 6px;
  font-size: 14px;
}

/* Responsive Popup */
@media (max-width: 768px) {
  .jb-upgrade-modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 85vh;
    padding: 20px;
  }

  .jb-popup-plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .jb-popup-plan-card {
    padding: 12px 14px;
  }

  .jb-popup-plan-card .jb-plan-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .jb-qr-section {
    margin: 20px 0;
    padding: 16px;
  }

  #jb-qr-code-container {
    min-height: 240px;
    padding: 16px;
  }

  .jb-qr-image {
    max-width: 200px;
  }

  #jb-download-qr {
    max-width: 240px;
    font-size: 13px;
    padding: 10px 20px;
  }

  .jb-payment-info {
    padding: 16px;
  }

  .jb-payment-info ol {
    padding-left: 20px;
  }

  .jb-payment-info li::before {
    left: -28px;
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .jb-auth-tabs {
    flex-direction: column;
  }

  .jb-tab-btn {
    border-bottom: 1px solid #ddd;
    border-right: none;
  }

  .jb-tab-btn.active {
    border-bottom-color: #0073aa;
  }
}

/* Loading States */
.jb-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.jb-button:disabled::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced Admin Styles */
.jb-admin-wrap {
  background: #f1f1f1;
  margin: 20px 0 0 -20px;
  padding: 20px;
  min-height: calc(100vh - 32px);
}

.jb-admin-title {
  background: white;
  margin: 0 0 20px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 600;
  color: #23282d;
}

.jb-admin-title .dashicons {
  color: #0073aa;
  font-size: 28px;
}

/* Stats Grid */
.jb-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.jb-stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.jb-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.jb-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.jb-stat-primary .jb-stat-icon {
  background: #0073aa;
}
.jb-stat-success .jb-stat-icon {
  background: #46b450;
}
.jb-stat-info .jb-stat-icon {
  background: #00a0d2;
}
.jb-stat-warning .jb-stat-icon {
  background: #ffb900;
}
.jb-stat-danger .jb-stat-icon {
  background: #dc3232;
}
.jb-stat-revenue .jb-stat-icon {
  background: #826eb4;
}

.jb-stat-content h3 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  color: #23282d;
}

.jb-stat-content p {
  margin: 5px 0 0 0;
  color: #666;
  font-size: 14px;
}

/* Quick Actions */
.jb-quick-actions {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.jb-quick-actions h2 {
  margin: 0 0 15px 0;
  color: #23282d;
}

.jb-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.jb-action-buttons .button {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Dashboard Columns */
.jb-dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.jb-dashboard-column {
  display: flex;
  flex-direction: column;
}

.jb-admin-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.jb-admin-card h3 {
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #23282d;
  font-size: 18px;
}

.jb-admin-card h3 .dashicons {
  color: #0073aa;
}

/* Recent Activity */
.jb-recent-list,
.jb-expiring-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jb-recent-item,
.jb-expiring-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid #0073aa;
}

.jb-recent-avatar,
.jb-expiring-avatar {
  flex-shrink: 0;
}

.jb-recent-avatar img,
.jb-expiring-avatar img {
  border-radius: 50%;
}

.jb-recent-details,
.jb-expiring-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jb-recent-plan,
.jb-expiring-plan {
  color: #0073aa;
  font-size: 13px;
}

.jb-recent-date,
.jb-expiring-date {
  color: #666;
  font-size: 12px;
}

.jb-expiring-actions {
  flex-shrink: 0;
}

/* Filters */
.jb-filters {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.jb-filter-form {
  display: flex;
  gap: 15px;
  align-items: end;
  flex-wrap: wrap;
}

.jb-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.jb-filter-group label {
  font-weight: 600;
  color: #23282d;
  font-size: 13px;
}

/* Results Info */
/* Results Info Enhanced */
.jb-results-info {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.jb-results-stats {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.jb-result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.jb-result-stat strong {
  font-size: 18px;
  color: #0073aa;
  margin-bottom: 4px;
}

.jb-result-stat span {
  color: #666;
  font-size: 13px;
}

/* Amount Column */
.jb-col-amount {
  width: 120px;
}

.jb-amount {
  color: #46b450;
  font-size: 16px;
}

.jb-results-info {
  background: white;
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0;
}

.jb-results-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Table Container */
.jb-table-container {
  background: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.jb-members-table {
  margin: 0;
  border: none;
}

.jb-members-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #23282d;
  border-bottom: 2px solid #ddd;
}

.jb-member-row.jb-expired {
  background: #fff5f5;
}

.jb-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jb-user-cell img {
  border-radius: 50%;
}

.jb-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jb-user-email {
  color: #666;
  font-size: 13px;
}

.jb-user-login {
  color: #999;
  font-size: 12px;
}

.jb-dates {
  font-size: 13px;
}

.jb-dates div {
  margin-bottom: 4px;
}

.jb-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.jb-status-active {
  background: #d4edda;
  color: #155724;
}

.jb-status-expired {
  background: #f8d7da;
  color: #721c24;
}

.jb-action-buttons {
  display: flex;
  gap: 5px;
}

/* Add Member Form */
.jb-add-member-form {
  max-width: 600px;
}

.jb-form-row {
  margin-bottom: 20px;
}

.jb-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jb-form-group label {
  font-weight: 600;
  color: #23282d;
}

.jb-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

/* User Search */
.jb-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jb-search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.jb-search-result-item:hover {
  background: #f8f9fa;
}

.jb-search-result-item:last-child {
  border-bottom: none;
}

.jb-user-avatar img {
  border-radius: 50%;
}

.jb-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jb-user-info span {
  color: #666;
  font-size: 13px;
}

.jb-user-info small {
  color: #999;
  font-size: 12px;
}

.jb-selected-user-card {
  background: #e7f3ff;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #b3d9ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jb-clear-selection {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jb-clear-selection:hover {
  color: #dc3232;
}

/* Modal Styles */
.jb-modal {
  position: fixed;
  z-index: 999999999 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.jb-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.jb-close {
  color: #94a3b8;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  line-height: 1;
}

.jb-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Reports */
.jb-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.jb-report-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.jb-report-card h3 {
  background: #f8f9fa;
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #23282d;
}

.jb-report-card h3 .dashicons {
  color: #0073aa;
}

.jb-report-content {
  padding: 20px;
}

.jb-retention-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.jb-retention-item {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.jb-retention-item strong {
  display: block;
  font-size: 24px;
  color: #0073aa;
  margin-bottom: 5px;
}

.jb-retention-item span {
  color: #666;
  font-size: 13px;
}

/* Pagination */
.jb-pagination {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  text-align: center;
}

.jb-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 2px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #0073aa;
}

.jb-pagination .page-numbers:hover,
.jb-pagination .page-numbers.current {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

/* No Results */
.jb-no-results {
  background: white;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jb-no-results p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .jb-dashboard-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .jb-admin-wrap {
    margin: 10px 0 0 -10px;
    padding: 10px;
  }

  .jb-stats-grid {
    grid-template-columns: 1fr;
  }

  .jb-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .jb-action-buttons {
    flex-direction: column;
  }

  .jb-reports-grid {
    grid-template-columns: 1fr;
  }

  .jb-user-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .jb-members-table .jb-col-actions {
    text-align: left;
  }

  .jb-modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }
}

/* Loading States */
.jb-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Success/Error Messages */
.jb-admin-notice {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #46b450;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jb-admin-notice.error {
  border-left-color: #dc3232;
}

.jb-admin-notice p {
  margin: 0;
  color: #23282d;
}

/* Amount Column */
.jb-col-amount {
  width: 120px;
}

.jb-amount {
  color: #46b450;
  font-size: 16px;
}

/* Recent Activity Enhanced */
.jb-recent-amount,
.jb-expiring-amount {
  color: #46b450;
  font-weight: bold;
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .jb-results-stats {
    flex-direction: column;
    gap: 15px;
  }

  .jb-result-stat {
    min-width: auto;
    width: 100%;
  }
}

/* JB Menu Account Dropdown Styles */
.jb-menu-account {
  position: relative !important;
}

.jb-menu-account-trigger {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.jb-menu-avatar-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(239, 68, 68, 0.2);
}

.jb-menu-avatar {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.jb-menu-username {
  font-weight: 600;
}

.jb-menu-arrow {
  font-size: 9px;
  margin-left: 2px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.jb-menu-account:hover .jb-menu-arrow {
  transform: rotate(180deg);
}

/* Dropdown Sub-menu */
.jb-menu-account-dropdown {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  background: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
  border-radius: 8px !important;
  padding: 12px 0 !important;
  min-width: 230px !important;
  z-index: 99999 !important;
  margin: 8px 0 0 0 !important;
  border: 1px solid #e2e8f0 !important;
  list-style: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block !important; /* Override theme's display: none */
}

.jb-menu-account:hover .jb-menu-account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* User Info Card in Dropdown */
.jb-menu-info-card {
  padding: 6px 16px 12px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 8px !important;
}

.jb-user-info-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.jb-user-info-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 14px;
}

.jb-user-info-email {
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
}

.jb-user-info-status {
  margin-top: 6px;
  display: inline-block;
}

.jb-badge-premium-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.jb-badge-premium-status.premium {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.jb-badge-premium-status.free {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Dropdown Menu Items */
.jb-menu-account-dropdown li.menu-item {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: block !important;
}

.jb-menu-account-dropdown li.menu-item a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 16px !important;
  color: #475569 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
  background: transparent !important;
  border: none !important;
  text-align: left !important;
}

.jb-menu-account-dropdown li.menu-item a:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

.jb-menu-account-dropdown li.menu-item a .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  margin: 0;
  line-height: 1;
}

.jb-menu-account-dropdown li.menu-item a:hover .dashicons {
  color: #475569;
}

/* Login Button in Navbar */
.jb-login-nav-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f97316, #ef4444) !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15) !important;
  text-decoration: none !important;
}

.jb-login-nav-btn:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.25) !important;
  color: #ffffff !important;
}

.jb-login-nav-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #ffffff;
  margin: 0;
}

/* Date Range Picker Trigger */
.jb-daterange-picker-trigger {
    background-color: #1e2530;
    color: #edf2f7;
    border: 1px solid #2d3748;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
    min-width: 220px;
    justify-content: space-between;
}

.jb-daterange-picker-trigger:hover {
    background-color: #2d3748;
    border-color: #4a5568;
}

.jb-daterange-picker-trigger .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jb-daterange-picker-trigger .dashicons-calendar-alt {
    color: #3be888;
}

.jb-daterange-picker-trigger .dashicons-arrow-down-alt2 {
    color: #718096;
}

/* Daterangepicker Dark Theme Overrides */
body .daterangepicker {
    background-color: #1e2530 !important;
    border: 1px solid #2d3748 !important;
    color: #edf2f7 !important;
    font-family: inherit !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin-top: 8px !important;
}

/* Arrows for dropdown popover */
body .daterangepicker:before, body .daterangepicker:after {
    border-bottom-color: #1e2530 !important;
}

body .daterangepicker.drop-up:after {
    border-top-color: #1e2530 !important;
}

/* Sidebar Ranges */
body .daterangepicker .ranges {
    background-color: #171e28 !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    width: 160px !important;
}

body .daterangepicker.show-calendar .ranges {
    border-right: 1px solid #2d3748 !important;
}

body .daterangepicker .ranges ul {
    width: 100% !important;
}

body .daterangepicker .ranges li {
    background-color: transparent !important;
    color: #a0aec0 !important;
    font-size: 12px !important;
    padding: 8px 14px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: all 0.15s ease !important;
    font-weight: 500 !important;
    text-align: left !important;
}

body .daterangepicker .ranges li:hover {
    background-color: #2d3748 !important;
    color: #edf2f7 !important;
}

body .daterangepicker .ranges li.active {
    background-color: #3be888 !important;
    color: #0e1726 !important;
    font-weight: 700 !important;
}

/* Calendar Containers */
body .daterangepicker .drp-calendar {
    max-width: none !important;
    padding: 8px 12px !important;
    background-color: #1e2530 !important;
}

body .daterangepicker .calendar-table {
    background-color: #1e2530 !important;
    border: 1px solid #1e2530 !important;
}

body .daterangepicker .drp-calendar.left {
    border-right: 1px solid #2d3748 !important;
}

/* Month and Year Header */
body .daterangepicker .calendar-table th.month {
    color: #edf2f7 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Prev/Next Arrows */
body .daterangepicker .calendar-table .next span, 
body .daterangepicker .calendar-table .prev span {
    border-color: #edf2f7 !important;
}

body .daterangepicker .calendar-table th, 
body .daterangepicker .calendar-table td {
    background-color: transparent !important;
    color: #edf2f7 !important;
    border: none !important;
    border-radius: 4px !important;
}

/* Weekday names (MO, TU...) */
body .daterangepicker th.month + th,
body .daterangepicker thead tr:last-child th {
    color: #718096 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
}

/* Days */
body .daterangepicker td.day {
    color: #edf2f7 !important;
    font-size: 11px !important;
    width: 26px !important;
    height: 26px !important;
    line-height: 26px !important;
}

body .daterangepicker td.day:hover {
    background-color: #2d3748 !important;
    color: #edf2f7 !important;
}

body .daterangepicker td.off, 
body .daterangepicker td.off.in-range, 
body .daterangepicker td.off.start-date, 
body .daterangepicker td.off.end-date {
    color: #4a5568 !important;
    background-color: transparent !important;
}

/* Days in Range selection */
body .daterangepicker td.in-range {
    background-color: #263244 !important;
    color: #3be888 !important;
    border-radius: 0 !important;
}

/* Start and End date highlighted */
body .daterangepicker td.active, 
body .daterangepicker td.active:hover {
    background-color: #3be888 !important;
    color: #0e1726 !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
}

/* Footer / Action buttons container */
body .daterangepicker.show-calendar .drp-buttons {
    border-top: 1px solid #2d3748 !important;
    background-color: #1e2530 !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body .daterangepicker .drp-selected {
    color: #a0aec0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding-right: 8px !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Cancel Button */
body .daterangepicker .btn-default.cancelBtn {
    background-color: transparent !important;
    border: 1px solid #4a5568 !important;
    color: #a0aec0 !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

body .daterangepicker .btn-default.cancelBtn:hover {
    background-color: #2d3748 !important;
    color: #edf2f7 !important;
    border-color: #718096 !important;
}

/* Apply Button */
body .daterangepicker .btn-primary.applyBtn {
    background-color: #3be888 !important;
    border: none !important;
    color: #0e1726 !important;
    padding: 6px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin-left: 8px !important;
}

body .daterangepicker .btn-primary.applyBtn:hover {
    background-color: #2ae07b !important;
}

/* Export Buttons & Dropdown Menu */
.jb-export-buttons {
    position: relative;
    display: inline-block;
}

.jb-export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 1001;
    min-width: 180px;
    padding: 8px 0;
    margin-top: 4px;
}

.jb-export-menu.active {
    display: block;
}

.jb-export-menu a {
    display: block;
    padding: 8px 16px;
    color: #3c434a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    text-align: left;
}

.jb-export-menu a:hover {
    background: #f0f6fc;
    color: #2271b1;
}

.jb-export-section-title {
    padding: 6px 16px 2px;
    font-size: 11px;
    font-weight: bold;
    color: #8c8f94;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Category Badge Pill */
.jb-category-badge {
    background-color: #f0fdf4;
    color: #166534;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    border: 1px solid #dcfce7;
}