/* ====== Starry Background Canvas ====== */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  /* Use a CSS variable for the first color */
  background: radial-gradient(ellipse at bottom, var(--theme-color-primary, #0b0c2a) 0%, #000010 100%);
}

.list-group-item {
  color: white
}
.theme-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #0b0c2a; /* default */
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.theme-color-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.color-picker-modal {
    width: 180px;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

#color-preview {
    transition: background-color 0.3s ease;
}

/* css/style.css */

/* ====== Base Layout Structure ====== */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #f5f5f7;
  background: transparent;
}

main {
  flex: 1;
}


/* ====== Typography ====== */
h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.card-text {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0;
}


/* ====== Build Cards ====== */
.build-card-wrapper {
  display: flex;
  justify-content: center;
}

.card-content {
  position: relative; /* This contains the absolutely positioned badge */
  width: 100%;
  max-width: 300px;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.card-info {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 1rem;
}

.build-card-wrapper:hover .card-info {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.06);
}


/* ====== Buttons ====== */
.btn-glass {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}


/* ====== Frosted Glass Navbar ====== */
.glass-navbar {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1030;
}

.navbar .nav-link {
  color: #f0f0f0;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #ffffff;
  text-decoration: underline;
}


/* ====== Frosted Glass Footer ====== */
.glass-footer {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #ccc;
  font-size: 0.9rem;
}


/* ====== Glass Utility Class (Reusable) ====== */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* ====== Responsive Tweaks ====== */
@media (max-width: 768px) {
  .image-wrapper {
    width: 100%;
  }

  .btn-glass {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .navbar .nav-link {
    margin-left: 0;
  }
}

form.glass {
  max-width: 800px;
  margin: 0 auto;
}

#compatibility-msg {
  font-weight: 600;
  font-size: 1rem;
}

h4 {
  font-weight: 600;
  margin-top: 1rem;
  color: #fff;
}

/* --- Your Global Color Rules --- */
span {
  color: white
}

*, li, .text-muted {
  color: white
}

/* ============================================= */
/* ====== FINAL FORM READABILITY FIX       ====== */
/* ============================================= */

/* General rule for all text inputs, textareas, and dropdowns */
.form-control,
.form-select {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Makes placeholder text (e.g., "Enter your address...") readable */
.form-control::placeholder {
    color: #a0a0a0 !important;
    opacity: 1; /* Ensure placeholder is not faded out */
}

/* Ensures dropdown options have a dark background when opened */
.form-select option {
    background-color: #1a1a2e; /* A dark color that matches your theme */
    color: #fff;
}

/* Ensures labels for inputs are always bright white */
.form-label, 
.form-check-label {
    color: #f0f0f0 !important;
}

/* Override Bootstrap's default muted color */
.text-muted, .text-white-50 {
    color: #a0a0a0 !important;
}

/* ====== Status Badge Styles ====== */
.status-badge {
    padding: 0.25em 0.6em;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* By using "span." we make these rules more specific than your global "span" rule, fixing the color override. */
span.status-pending, span.status-new {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

span.status-completed {
    background-color: rgba(25, 135, 84, 0.2);
    border: 1px solid rgba(25, 135, 84, 0.4);
    color: #198754;
}

span.status-discussing, span.status-contacted {
    background-color: rgba(13, 202, 240, 0.2);
    border: 1px solid rgba(13, 202, 240, 0.4);
    color: #0dcaf0;
}

span.status-dismissed {
    background-color: rgba(110, 19, 19, 0.2);
    border: 1px solid rgba(184, 27, 27, 0.4);
    color: #ff4d4d; /* A lighter grey for better contrast */
}