:root {
  --bg-dark: #0b0e11;
  --card-bg: #151a21;
  --gold: #f3ba2f;
  --green: #0ecb81;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #222d3d;
}

body {
  background-color: var(--bg-dark) !important;
  color: var(--text-main) !important;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Navbar & Mobile Left Alignment / Hover Styling */
.navbar {
  background-color: var(--card-bg) !important;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold) !important;
}

.nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  transition: all 0.25s ease-in-out;
  border-radius: 4px;
  padding: 8px 12px !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold) !important;
  background-color: rgba(243, 186, 47, 0.08);
  transform: translateX(4px);
}

@media (min-width: 992px) {
  .nav-link:hover, .nav-link.active {
    transform: none;
    background-color: transparent;
  }
}

/* Hero Section */
.hero-section {
  text-align: center;
  background: radial-gradient(circle at center, #1e293b 0%, var(--bg-dark) 75%) !important;
}

/* Text Utilities Override */
.text-muted, .text-secondary {
  color: var(--text-muted) !important;
}

.text-light-muted {
  color: #cbd5e1 !important;
}

.text-light {
  color: #f8fafc !important;
}

/* Cards & Hover Polish */
.card, .bg-dark {
  background-color: var(--card-bg) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold) !important;
}

.border-secondary {
  border-color: var(--border-color) !important;
}

/* Footer & Links */
.footer-section {
  background-color: #0d1117 !important;
  border-top: 1px solid var(--border-color) !important;
}

.footer-section a.text-muted {
  color: var(--text-muted) !important;
  transition: color 0.2s ease;
}

.footer-section a.text-muted:hover {
  color: var(--gold) !important;
  padding-left: 4px;
}

/* Custom Buttons */
.btn-warning {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #000 !important;
  font-weight: 600;
}

.btn-warning:hover {
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
}

.btn-success {
  background-color: var(--green) !important;
  border-color: var(--green) !important;
  font-weight: 600;
}

.btn-success:hover {
  background-color: #0ab572 !important;
  border-color: #0ab572 !important;
}

/* Scroll-to-Top Button Style */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 45px;
  height: 45px;
  background-color: var(--gold);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background-color: #ffd15c;
  transform: translateY(-3px);
}





/* Ensure mobile navbar links align left and have smooth hover feedback */
.mlm-tree {
	display: flex;
	flex-direction: column;
	align-items: center; /* Center-aligns all generation blocks */
	gap: 2rem;
	position: relative;
}
.mlm-generation-block {
	background: #0d1117;
	border: 1px solid #30363d;
	border-radius: 10px;
	padding: 1.25rem;
	width: 100%;
	max-width: 800px;
	position: relative;
}
/* Centered vertical connecting line running from top to bottom through the tree */
.mlm-tree::before {
	content: '';
	position: absolute;
	top: 60px;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background: #30363d;
	z-index: 0;
}
.mlm-root-node, .mlm-generation-block {
	z-index: 1; /* Ensures boxes sit cleanly above the background connector line */
}
.mlm-node-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}
.mlm-node-card {
	background: #161b22;
	border: 1px solid #30363d;
	border-radius: 8px;
	padding: 0.85rem 1rem;
	transition: all 0.2s ease;
}
.mlm-node-card:hover {
	border-color: #ffc107;
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}



/* Base desktop styles */
.responsiveTable table {
  width: 100%;
  border-collapse: collapse;
}
.responsiveTable th, .responsiveTable td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #666 !important;
}

/* Mobile responsive styles */
@media screen and (max-width: 600px) {
  /* Hide the actual header row but keep it accessible */
  .responsiveTable table thead {
    display: none;
  }
  
  /* Force table structural elements to behave like block cards */
  .responsiveTable table, .responsiveTable table tbody, .responsiveTable table tr, .responsiveTable table td {
    display: block;
    width: 100%;
  }
  
  /* Style each row like an isolated card block */
  .responsiveTable table tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 0px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  /* Align text and prepare spatial padding for labels */
  .responsiveTable table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border-bottom: 1px dashed #eee;
  }
  
  .responsiveTable table td:last-child {
    border-bottom: 0;
  }
  
  /* Pull the HTML data-label values in as inline headers */
  .responsiveTable table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    text-align: left;
    font-weight: bold;
    color: #999;
  }
}






.user-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.5rem;
}
.admin-user-card {
	background-color: #161b22;
	border: 1px solid #30363d;
	border-radius: 12px;
	transition: all 0.2s ease-in-out;
}
.admin-user-card:hover {
	border-color: #ffc107;
	box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.collapse-details {
	background-color: #0d1117;
	border-top: 1px dashed #30363d;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
}






/* WebKit (Chrome, Safari, newer Edge) */
input::-webkit-input-placeholder {
  color: #555 !important;
  opacity: 1;
}

/* Firefox 19+ */
input::-moz-placeholder {
  color: #555 !important;
  opacity: 1;
}

/* Firefox 4-18 */
input:-moz-placeholder {
  color: #555 !important;
  opacity: 1;
}

/* Internet Explorer 10-11 & Old Edge 12-18 */
input:-ms-input-placeholder {
  color: #555 !important;
}

/* Standard Modern Browser Rule */
input::placeholder {
  color: #555 !important;
  opacity: 1;
}