/* 1 – Base Tokens */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --cyan:   #00ffff;
  --bg:     #0f1117;
  --text:   #e5e7eb;
  --g1:     #9ca3af;

  --fs-base : 14px;
  --fs-small: 13px;
  --fs-label: 12px;
  --br: 12px;
}

/* 2 – Body Background & Animation */
body {
  background: radial-gradient(ellipse at top left, #101922, #0a0f15 70%);
  animation: shineBackground 18s ease-in-out infinite alternate;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}
@keyframes shineBackground {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* 3 – Shell / Container */
.bpc-shell {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px;
  max-width: 880px;
  margin: 50px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* 4 – Headings & Paragraphs */
.bpc-shell h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.bpc-shell p {
  font-size: var(--fs-label);
  color: var(--g1);
  margin-bottom: 18px;
}

/* 5 – Grid Layout */
.bpc-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .bpc-main {
    grid-template-columns: 1fr;
  }
}

/* 6 – Glass Left Panel */
.bpc-left {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  border-radius: var(--br);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 255, 255, 0.06);
}

/* 7 – Inputs */
.bpc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.bpc-inputs input,
.bpc-inputs select,
.bpc-actions input[type=email] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: var(--fs-small);
  padding: 10px;
  border-radius: 10px;
  transition: 0.3s ease;
}
button#bpc-pdf {
    width: 50%;
}
button#bpc-ai {
    width: 45%;
}
.bpc-inputs input:focus,
.bpc-actions input:focus,
.bpc-inputs select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.3);
}

/* 8 – Buttons */
.bpc-btn {
  background: linear-gradient(135deg, #00ffff, #00bcd4);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px !important;
  padding: 10px 16px !important;
  border: none;
  border-radius: 10px !important;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bpc-btn:hover {
  background: #00e4ff;
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* 9 – Slider */
.bpc-slider {
  margin-top: 6px;
}
.bpc-slider label {
  display: block;
  font-size: var(--fs-small);
  margin-bottom: 4px;
}
.bpc-slider input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

/* 10 – Note Text */
.bpc-note {
  font-size: var(--fs-label);
  color: var(--g1);
  margin-top: 4px;
}

/* 11 – Actions Row */
.bpc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bpc-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


/* 12 – Result Card */
.bpc-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#bpc-chart {
  width: 100%;
  max-height: 180px;
  margin-top: 12px;
}

/* 13 – Results List */
.bpc-results {
  font-size: var(--fs-small);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bpc-results div {
  display: flex;
  justify-content: space-between;
}

/* 14 – AI Output */
.bpc-ai {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--cyan);
  border-radius: var(--br);
  padding: 12px;
  font-size: var(--fs-small);
  line-height: 1.55;
}
@media (max-width: 500px) {
  /* Stack .bpc-row elements vertically on mobile */
  .bpc-row {
    flex-direction: column;
    gap: 10px;
  }

  /* Full width for buttons on small screens */
  .bpc-row .bpc-btn,
  #bpc-pdf,
  #bpc-ai {
    width: 100% !important;
  }

  /* Full width for input fields */
  .bpc-actions input[type="email"] {
    width: 100%;
  }

  /* Adjust padding inside shell for smaller screens */
  .bpc-shell {
    padding: 20px;
    margin: 20px 10px;
  }

  /* Reduce chart height slightly */
  #bpc-chart {
    max-height: 140px;
  }
}
