/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1e1e1e;
  color: #ffffff;
}

/* Header */
header {
  background-color: #ff9800;
  padding: 20px;
  text-align: center;
}

#page-info {
  background-color: #1e1e1e;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  color: #fff;
}

.beta-tag {
  font-size: 0.6em;
  color: #ffc107;
  background-color: #222;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 1px;
}


h1 {
  margin: 0;
  font-size: 2.5rem;
}

.slogan {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Main Content */
main {
  padding: 40px 20px;
}

.dashboard-title {
  color: #003366; /* Dark Blue */
}


/* Lead Grid and Cards for Search Results */
.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  column-gap: 20px;
  row-gap: 50px;
  margin-top: 30px;
  padding: 0 20px 60px; /* ✅ Adds bottom space for pagination */
  justify-items: center;
}

.lead-card {
  background-color: #ffffff;
  color: #000000;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin-bottom: 10px; /* ✅ Adds spacing between rows */
}

.lead-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #007bff;
  font-size: 1.3rem;
}

.lead-card p {
  margin: 4px 0;
}

.credit-badge {
  text-align: right;
  font-size: 0.9em;
  color: orange;
  margin-top: 10px;
}

/* Copy Button */
.copy-button {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 0.9rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.copy-button:hover {
  background-color: #0056b3;
}

.copy-all-button {
  margin: 20px 0;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.copy-all-button:hover {
  background-color: #0056b3;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 60px; /* ✅ Separates from tiles */
  position: relative;
  z-index: 10;
}

.pagination button {
  margin: 0 10px;
  padding: 8px 14px;
  font-size: 16px;
  border-radius: 6px;
  background-color: #ff9800;
  border: none;
  cursor: pointer;
  color: black;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: default;
}

.pagination span {
  font-weight: bold;
  color: #ffffff;
}

/* Miscellaneous */
.investors-list {
  max-height: 3.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.nav-button {
  display: inline-block;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  background-color: #007bff;
  color: #fff;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: #0056b3;
}

.back-button {
  display: block;
  text-align: center;
  margin: 30px auto 0;
  padding: 12px 24px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  width: max-content;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.back-button:hover {
  background-color: #000;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000; /* fallback */
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-container {
  display: flex;
  flex-direction: column-reverse;  /* 🔄 Flip order: text will appear above spinner */
  align-items: center;
  text-align: center;
  color: white;
}


.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
  box-sizing: border-box;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-message {
  font-size: 1.1em;
  color: #ffffff;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
}

.table-responsive table {
  min-width: 700px;  /* Or adjust as needed based on column count */
}



