/* Custom scrollbar for webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 6px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background-color: #a95bfe;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #8a3df5;
}

/* For Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #a95bfe transparent;
}

/* Dark Theme Base Styles */
:root {
  --primary: #2b8cff;
  --secondary: #d84aff;
  --surface-1: #0f0f11;
  --surface-2: #141417;
  --surface-3: #1b1b1f;
  --accent-purple: #a95bfe;
  --accent-blue: #6658eb;
  --accent-light-blue: #99bfff;
}

h1, h2, h3, h4, span, li, option {
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 1.5px !important;
  color: #a95bfe !important;
}

li, p {
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 1.5px !important;  
  color: #a95bfe !important;
}

button {
  font-family: 'Courier New', monospace;
}

p, div, small{
  font-family: 'Courier New', monospace;
  letter-spacing: 1.5px !important;
}

.post-title-content,.qualification-reason-text,.response-text,.marketing-used-text{
    color: #a95bfe !important;
}


body {
  font-family: 'Inter', -apple-system, system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--surface-1);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02", "ss03", "ss04", "pnum", "dlig", "frac", "liga", "ordn", "salt";
  overflow-x: hidden;
}

/* Color Classes */
.prpl { background-color: var(--accent-purple); }
.blu { color: var(--accent-blue) !important; }
.lblu { color: var(--accent-light-blue) !important; }
.wht { color: #fff !important; }
.red { color: red !important; }

/* Background Elements */
.page-top-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 1;
  background-repeat: no-repeat;
  z-index: -1;
  background-image: url('/static/images/page-top.jpg');
  background-position: 50%;
  background-size: 2430px 175px;
  height: 175px;
  transition: opacity 0.3s ease;
}

.page-bottom-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  background-repeat: no-repeat;
  z-index: -1;
  background-image: url('/static/images/page-bottom.jpg');
  background-position: top;
  background-size: 2430px 392px;
  height: 300px;
  transition: opacity 0.3s ease;
}

.logo{
    background-image: url('/static/images/logo_avif.avif');
}

/* Animated Logo Borders */
.home-header-logo {
  position: relative;
  width: 12rem;
  height: 12rem;
}

.home-header-logo-borders,
.home-header-logo-borders-tight {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 10;
  pointer-events: none;
}

.home-header-logo-borders div,
.home-header-logo-borders-tight div {
  position: absolute;
  background-color: var(--primary);
}

.home-header-logo-borders div:first-child,
.home-header-logo-borders div:nth-child(3),
.home-header-logo-borders-tight div:first-child,
.home-header-logo-borders-tight div:nth-child(3) {
  height: 3%;
  width: 100%;
}

.home-header-logo-borders div:nth-child(2),
.home-header-logo-borders div:nth-child(4),
.home-header-logo-borders-tight div:nth-child(2),
.home-header-logo-borders-tight div:nth-child(4) {
  width: 3%;
  height: 100%;
}

/* Logo Border Animations */
.home-header-logo-borders div:first-child,
.home-header-logo-borders-tight div:first-child {
  left: 0;
  top: 0;
  animation: animated-border-top 10s infinite;
  transform-origin: left;
  overflow: hidden;
}

.home-header-logo-borders div:first-child:after,
.home-header-logo-borders-tight div:first-child:after {
  animation: animated-border-top-gradient 10s infinite;
  content: "";
  background: linear-gradient(to right, var(--primary), var(--secondary));
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.home-header-logo-borders div:nth-child(2),
.home-header-logo-borders-tight div:nth-child(2) {
  right: 0;
  top: 0;
  animation: animated-border-right 10s infinite;
  background-color: var(--secondary);
}

.home-header-logo-borders div:nth-child(3),
.home-header-logo-borders-tight div:nth-child(3) {
  left: 0;
  bottom: 0;
  animation: animated-border-bottom 10s infinite;
  overflow: hidden;
}

.home-header-logo-borders div:nth-child(3):after,
.home-header-logo-borders-tight div:nth-child(3):after {
  animation: animated-border-bottom-gradient 10s infinite;
  content: "";
  background: linear-gradient(to right, var(--primary), var(--secondary));
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.home-header-logo-borders div:nth-child(4),
.home-header-logo-borders-tight div:nth-child(4) {
  left: 0;
  top: 0;
  animation: animated-border-left 10s infinite;
}

@keyframes animated-border-top {
  0% { transform: translateX(0); }
  50% { transform: translateX(100%); }
  50.0001% { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes animated-border-top-gradient {
  0% { transform: translateX(0); }
  50% { transform: translateX(-100%); }
  50.0001% { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes animated-border-right {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  to { transform-origin: bottom; transform: scaleY(0); }
}

@keyframes animated-border-bottom {
  0% { transform: translateX(0); }
  50% { transform: translateX(-100%); }
  50.0001% { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes animated-border-bottom-gradient {
  0% { transform: translateX(0); }
  50% { transform: translateX(100%); }
  50.0001% { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes animated-border-left {
  0% { transform: scaleY(0); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  50.01% { transform: scaleY(1); transform-origin: top; }
  to { transform-origin: top; transform: scaleY(0); }
}

/* Tight Logo Variant */
.home-header-logo-tight {
  position: relative;
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 5rem;
  justify-content: center !important;
  text-align: center;
}

.home-header-logo-tight .d-flex {
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.home-header-logo-tight h1 {
  text-align: center;
  margin-bottom: 0;
  margin-right: 0.5rem;
}

.home-header-logo-borders-tight div:first-child,
.home-header-logo-borders-tight div:nth-child(3) {
  height: 2px;
}

.home-header-logo-borders-tight div:nth-child(2),
.home-header-logo-borders-tight div:nth-child(4) {
  width: 2px;
}

/* UI Components */
.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn:hover, .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Accordion Dark Theme */
.accordion {
  --bs-accordion-bg: var(--surface-2);
  --bs-accordion-border-color: rgba(255,255,255,0.1);
  --bs-accordion-border-width: 1px;
  --bs-accordion-border-radius: 10px;
  --bs-accordion-inner-border-radius: calc(10px - 1px);
  --bs-accordion-btn-color: #fff;
  --bs-accordion-btn-bg: var(--surface-2);
  --bs-accordion-btn-focus-border-color: var(--accent-purple);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(169, 91, 254, 0.25);
}

.accordion-button {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  color: #a95bfe !important;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #764ba2 100%);
  color: white !important;
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent-purple);
}

.accordion-body {
  background: var(--surface-3);
  color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Dashboard Components */
.dashboard-header {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  padding: 1rem 0;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-blue);
}

.stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* Log Container */
.log-container {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 1rem;
  height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}

.log-entry {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  width: 100%;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  word-wrap: break-word;
  white-space: pre-wrap;
  word-break: break-word;
  padding: .5rem;
  margin-bottom: 0.5rem;
}

.log-entry.info { color: var(--accent-light-blue); }
.log-entry.success { color: #28a745; }
.log-entry.warning { color: #ffc107; }
.log-entry.error { color: #dc3545; }
.log-entry.cycle { 
  color: var(--accent-purple); 
  font-weight: bold;
}

/* Prospect Components */
.prospect-toolbar {
  padding: 1rem;
  margin: 1rem 0;
  background: var(--surface-2);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}

.prospect-card {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}

.post-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
  padding-bottom: 0.75rem;
  color: var(--accent-purple);
}

.post-content {
  text-align: left;
  line-height: 1.6;
  background: var(--surface-3);
  padding: 1rem;
  border-radius: 5px;
  border-left: 4px solid var(--accent-blue);
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
}

.current-version {
  border-left: 4px solid #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.previous-version {
  border-left: 4px solid rgba(255,255,255,0.3);
  background: var(--surface-3);
  opacity: 0.8;
}

.version-badge {
  background: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
}

.edit-response-textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 0.5rem;
  font-family: inherit;
  margin-bottom: 0.5rem;
  text-align: left;
  background: var(--surface-3);
  color: rgba(255,255,255,0.9);
}



.failure-reason {
  background: rgba(220, 53, 69, 0.1);
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  border-left: 4px solid #dc3545;
  font-family: 'Courier New', monospace;
}

/* Personality Badges */
.personality-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.personality-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
}

.personality-secondary {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}

/* Navigation Components */
#recordNav {
  padding: 1rem;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}

#recordNav .btn-group {
  flex-wrap: wrap;
}

.filter-btn {
  min-width: 100px;
  font-weight: 600;
}

.filter-btn i {
  margin-right: 0.25rem;
}

.filter-btn.active {
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background: var(--accent-purple);
}

#recordInfoSection {
  min-height: 50px;
}

#recordCounter {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

#recordCounter i {
  margin-right: 0.25rem;
}

/* Marketing Components */

.marketing-actions {
  opacity: 0;
  transition: opacity 0.3s;
}

.marketing-content {
    padding: 12px;    
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #0d6efd;
}

.active-badge {
  background-color: #28a745;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.marketing-badge {
  background: rgba(209, 236, 241, 0.1);
  border: 1px solid rgba(190, 229, 235, 0.3);
  border-radius: 4px;
  padding: 8px 12px;
  margin: 0;
  font-size: 14px;
  color: var(--accent-light-blue);
  word-wrap: break-word;
  white-space: normal;
}

/* Marketing Navigation */
#marketingNav .btn-group {
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

#marketingNav .btn-group .btn {
  flex: 1;
  min-width: 100px;
  max-width: 200px;
  margin: 0.125rem;
  font-size: 0.8rem;
  padding: 0.5rem 0.5rem;
  white-space: nowrap;
}

#marketingCounter {
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Subreddit Components */
.subreddit-label {
  margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
}

.list-group-item {
    padding: 0.75rem;
    gap: 0.5rem;
}

.list-group-item {
    padding: 12px;    
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #ffc107;
    background: var(--surface-2);
    color: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.manage_subreddits{
    padding: 12px;    
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #ffc107;
}

.inactive {
    padding: 12px;    
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid red;
    background: var(--surface-2);
    color: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.inactive .subreddit-name{
    color: red;
}

.subreddit-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.subreddit-name {
  flex: 1;
  min-width: 0;
}

.subreddit-name strong {
  word-break: break-word;
  display: block;
}

.subreddit-details {
  width: 100%;
  text-align: left;
}

.subreddit-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.btn-subreddit-action {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Control Elements */
.control-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s;
  border: none;
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.countdown-badge {
  background: #ffc107;
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0 !important;
}

.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-running { background: #198754; animation: pulse 1.5s infinite; }
.status-paused { background: #ffc107; }
.status-stopped { background: #dc3545; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Form Controls */
.form-control, .form-select {
  background-color: var(--surface-3);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

.form-control:focus, .form-select:focus {
  background-color: var(--surface-3);
  border-color: var(--accent-purple);
  color: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 0.25rem rgba(169, 91, 254, 0.25);
}

.form-control::placeholder {
  color: rgba(255,255,255,0.5);
}

/* Button Styling */
.btn-outline-primary {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-outline-primary:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  transform: translateY(-1px);
}

/* Card Styling */
.card {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}

.card-header {
  background: var(--surface-3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Modal Styling */
.modal-content {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}

.modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-close {
  filter: invert(1);
}


/* Input Group Layout */
.card-body .input-group {
  flex-direction: column;
  gap: 0.5rem;
}

.card-body .input-group .form-control {
  width: 100%;
  margin-bottom: 0.5rem;
}

.card-body .input-group .btn {
  width: 100%;
}

.card-body .row.g-2 {
  flex-wrap: wrap;
}

.card-body .row.g-2 .col-md-8 {
  flex: 1;
  min-width: 200px;
}

.card-body .row.g-2 .col-md-4 {
  flex: 0 0 auto;
}

/* Utility Classes */
.marketing-nav-visible { display: flex !important; }

/* Ensure all containers don't exceed viewport */
.container-fluid, .container, .accordion-body, .stat-card {
  max-width: 100vw;
}

/* Help Button Styles */
.help-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.help-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Ensure accordion button takes remaining space */
.accordion-header .d-flex {
    padding-right: 0.5rem;
}

.accordion-button.flex-grow-1 {
    margin-right: 0.5rem;
}

/* Message Container */
.message-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  height: 200px;
}

/* Message Display */
.message-display {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  word-wrap: break-word;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1rem;
}

/* H1 Styling */
.slide-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* H2 Styling */
.slide-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .home-header-logo {
    width: 16rem;
    height: 16rem;
  }
  
  .home-header-logo-tight h2 {
    font-size: 1.5rem;
  }
  
  .card-body .input-group {
    flex-direction: row;
  }
  
  .card-body .input-group .form-control {
    width: auto;
    flex: 1;
    margin-bottom: 0;
    margin-right: 0.5rem;
  }
  
  .card-body .input-group .btn {
    width: auto;
    flex-shrink: 0;
  }
  
  .prospect-toolbar .d-flex,
  #recordNav .d-flex {
    flex-direction: column !important;
    gap: 1rem;
  }
  
  .prospect-toolbar .d-flex > div,
  #recordNav .btn-group {
    width: 100%;
    justify-content: center;
  }
  
  .prospect-toolbar .btn,
  #recordNav .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  #recordInfoSection {
    order: 2;
    justify-content: center;
  }
  
  .home-header-logo-tight h2 {
    font-size: 1.5rem;
  }
  
  .home-header-logo-tight img {
    height: 1.5rem !important;
  }
  
  .home-header-logo-tight img[alt="red"] {
    height: 2rem !important;
    width: auto;
  }
  
  .marketing-badge {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .response-card {
    padding: 10px;
  }
  
  .response-text {
    font-size: 14px;
  }
  

  
  .subreddit-header {
    gap: 0.5rem;
  }
  
  .btn-subreddit-action,
  .list-group-item .btn-group .btn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
  
  .subreddit-name strong {
    font-size: 0.9rem;
  }
  
  .subreddit-details .small {
    font-size: 0.75rem;
  }
  
  
  .marketing-card {
    padding: 0.75rem;
  }
  
  .marketing-card h6 {
    font-size: 0.9rem;
  }
  
  .marketing-content {
    max-height: 120px;
    font-size: 0.8rem;
  }
  
  .card-body .row.g-2 .col-md-8,
  .card-body .row.g-2 .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .card-body .row.g-2 .col-md-4 {
    margin-top: 0.5rem;
  }
  
  .help-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .accordion-header .d-flex {
    padding-right: 0.25rem;
  }
  
  .slide-content {
    margin: 1rem;
    padding: 1rem 0;
  }
  
  .slide-content h1 {
    font-size: 2rem;
  }
  
  .slide-content h2 {
    font-size: 1.3rem;
  }
  
  .message-container {
    height: 300px;
    padding: 1rem !important;
  }
  
  .message-display {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .accordion-body {
    padding: 1rem 0.75rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  #recordNav .btn-group .btn {
    flex: 1;
    min-width: 70px;
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }
  
  #personalityBar .btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
  
  
  .help-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
}

@media (min-width: 768px) {
  #marketingNav .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  #marketingNav .btn-group {
    width: 100%;
    order: 1;
  }
  
  #marketingCounter {
    order: 2;
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 992px) {
  .slide-content {
    margin: 1.5rem;
    padding: 1.5rem 0;
  }
  
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  .slide-content h2 {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .btn, .badge, .control-btn {
    display: none !important;
  }
  
  .stat-card, .prospect-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

.page-top-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 1;
  background-repeat: no-repeat;
  z-index: -1;
  background-image: url('/static/images/page-top.jpg');
  background-position: 50%;
  background-size: 2430px 175px;
  height: 175px;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .home-header-logo {
    width: 16rem;
    height: 16rem;
  }
}

/* Satoshi Fonts */
@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi/Satoshi-Thin.woff2') format('woff2'),
       url('/static/fonts/Satoshi/Satoshi-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi/Satoshi-Light.woff2') format('woff2'),
       url('/static/fonts/Satoshi/Satoshi-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi/Satoshi-Regular.woff2') format('woff2'),
       url('/static/fonts/Satoshi/Satoshi-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi/Satoshi-Medium.woff2') format('woff2'),
       url('/static/fonts/Satoshi/Satoshi-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi/Satoshi-Bold.woff2') format('woff2'),
       url('/static/fonts/Satoshi/Satoshi-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi/Satoshi-Black.woff2') format('woff2'),
       url('/static/fonts/Satoshi/Satoshi-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/static/fonts/Satoshi/Satoshi-RegularItalic.woff2') format('woff2'),
       url('/static/fonts/Satoshi/Satoshi-RegularItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

.text-warning {
    color: #ffc107 !important;
}

/* Help System */
.floating-help-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.floating-help-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #0a58ca, #084298);
}

.floating-help-btn:active {
  transform: scale(0.95);
}

.floating-msg {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px; /* Optional: prevent it from getting too wide on large screens */
    z-index: 9999;
    display: none;
}

.floating-msg .badge{
    color: #fff !important;
}

.btn_background2{
    background-color: #fff;
    border-radius: 10px;
    width: 100%;
    padding:10px;
    margin-top:10px;
    color:black !important;
}

.invalid-input {
    border: 3px solid red !important;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Empty States */
.empty-state {
  text-align: center;
  color: rgba(255,255,255,0.7);
}

.empty-state i {
  color: rgba(255,255,255,0.3);
}

.wrapthis{
    word-break: break-all;
    overflow-wrap: anywhere;
}

.marketing-used {
    padding: 12px;    
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #0d6efd;    
}

.post-title-section {
    padding: 12px;    
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #0d6efd;
}

.qualification-reason {
    padding: 12px;    
    border-radius: 4px;
    border-left: 4px solid #0d6efd;
}

/* Response Components */
.subreddit-summary-card {
    padding: 12px;    
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #ffc107;
}

.response-group {
    padding: 12px;    
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #ffc107;
}

.response-group-strong {
    padding: 12px;    
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #ff070b;
}

.response-card {
  background: var(--surface-3);
  border-left: 4px solid #28a745;
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 5px;
  text-align: left;
  color: rgba(255,255,255,0.9);
  transition: all 0.3s;
  font-family: 'Courier New', monospace;
}

.response-version {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.response-text {
  text-align: left;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.9);
}

.response-actions {
  text-align: right;
  margin-top: 0.5rem;
}

.form-control:disabled {
    background-color: transparent !important;
}

.credit-status {
    border-left: 3px solid #007bff;
}

.available_credits_small {
    font-size: 1.1rem;
}

/* Credit level colors */
.bg-danger .available_credits {
    background-color: #dc3545 !important;
}

.bg-warning .available_credits {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.bg-primary .available_credits {
    background-color: #007bff !important;
}

/* Reports Styles */
.reports-section {
    margin-top: 1.5rem;
}

.report-card {
    padding: 12px;    
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #ffc107;
}


.report-content {
    min-height: 60px;
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.report-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.report-label {
    flex: 1;
}

.report-count {
    margin-right: 1rem;
    min-width: 40px;
    text-align: right;
}

.report-progress {
    flex: 2;
    min-width: 150px;
}

.report-total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.progress{
    height: 24px !important;
}

/* Growl notification responsive styles */
.growl-notification {
    max-width: 50vw;
    word-wrap: break-word;
    white-space: normal;
}

/* Mobile devices - portrait and landscape */
@media (max-width: 768px) {
    .growl-notification {
        max-width: 80vw !important;
    }
}

/* Very small devices */
@media (max-width: 480px) {
    .growl-notification {
        max-width: 80vw !important;
    }
}


/* Filter Controls Styling */
.filter-controls {
    margin-bottom: 15px;
    padding: 15px;
}

.filter-controls label {
    margin-right: 20px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-controls input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    transform: scale(1.1);
}

.filter-controls input[type="checkbox"]:checked {
    accent-color: #0d6efd;
}

#filter-stats {
    margin-left: 20px;
    font-size: 14px;
}

/* Responsive design for filter controls */
@media (max-width: 768px) {
    .filter-controls {
        text-align: center;
        padding: 12px;
    }
    
    .filter-controls label {
        margin-right: 15px;
        margin-bottom: 8px;
        display: inline-block;
    }
    
    #filter-stats {
        display: block;
        margin: 10px 0 0 0;
        text-align: center;
    }
}

/* Hover effects for better UX */
.filter-controls label:hover {
    color: #0d6efd;
}

.filter-controls input[type="checkbox"]:hover {
    transform: scale(1.15);
}

/* Focus states for accessibility */
.filter-controls input[type="checkbox"]:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Animation for filter changes */
.filter-controls {
    transition: all 0.3s ease;
}

/* Style for when filters are active */
.filter-controls.active {
    border-color: #0d6efd;
}

/* Checkbox label styling */
.filter-controls label {
    transition: all 0.2s ease;
}

.filter-controls label:has(input:checked) {
    color: #0d6efd;
    font-weight: 600;
}

/* Stats badge styling */
#filter-stats {
    transition: all 0.3s ease;
}

#filter-stats.highlight {
    background: #d1e7ff;
    color: #0a58ca;
    border-color: #0d6efd;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  z-index: 1050; /* Z-index to overlay everything */
  display: flex;
  align-items: center;
  justify-content: center;
}

#btnCheckCredit {
    border-color: #ffc107;
    color: #856404;
}

#btnCheckCredit:hover:not(:disabled) {
    background-color: #ffc107;
    color: #212529;
}

#btnCheckCredit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}