/* Login + Dashboard UI */
#login-container {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      background: #f3f4f6;
    }
    #login-box {
      background: white;
      padding: 40px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      text-align: center;
    }
    input[type="password"] {
      padding: 10px;
      font-size: 16px;
      margin-top: 10px;
      width: 200px;
    }
    button {
      margin-top: 10px;
      padding: 10px 20px;
      font-size: 16px;
      background: #2563eb;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }
    #dashboard {
      display: none;
      padding: 20px;
    }

/* Dynamic Cards Container */
 #dynamic-cards {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 24px;
      margin: 0 auto;
    }

/* Featured (first) card row */
#featured-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
  /* no gap so the single card stays centered cleanly */
}
#featured-card-container .card {
  /* Let dynamic-style sizing apply; just ensure centered margin */
  margin-left: auto;
  margin-right: auto;
}


/* Floating Buttons  */
#calculator-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2563eb;
  color: white;
  font-size: 24px;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 999;
}

#wiki-launcher {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  font-size: 24px;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 999;
}

#closers-launcher {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #f59e0b;
  color: white;
  font-size: 24px;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-decoration: none;
  z-index: 999;
}

  .floating-icon {
  display: none;
  position: fixed;
  /* existing positioning styles */
}


#calculator-popup {
  position: fixed;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: none;
  z-index: 999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#calculator-inner {
  display: flex;
  flex: 1;
  height: 100%;
  width: 100%;
}

#calc-inputs {
  flex: 0 0 300px;
  background: #f3f4f6;
  border-right: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow-y: auto;
}

#calc-form {
  flex: 1;
  overflow-y: auto;
}

#results-output {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  border-left: 1px solid #ccc;
}


  

@media (max-width: 768px) {
  #calculator-popup > div {
    flex-direction: column !important;
  }

  #calculator-popup > div > div:first-child {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #ccc;
  }
  
}

    
@media (max-width: 768px) {
  #calculator-inner {
    flex-direction: column;
  }

  #calc-inputs {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
}


#calc-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calc-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
  font-weight: bold;
}

.calc-tab.active {
  background: #2563eb;
  color: white;
}

.input-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ppa-badge {
  font-size: 0.75em;
  opacity: 0.8;
  margin-right: .25rem;
  padding: .05rem .35rem;
  border: 1px solid #cbd5e1; /* slate-300 */
  border-radius: 4px;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  visibility: hidden;
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  position: absolute;
  z-index: 1000;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip-wrapper:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.tooltip-icon {
  display: inline-block;
  margin-left: 6px;
  cursor: pointer;
  color: #2563eb;
  font-weight: bold;
  font-size: 14px;
  position: relative;
}

.tooltip-icon:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
}

.tooltip-box {
  visibility: hidden;
  opacity: 0;
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  position: absolute;
  z-index: 1000;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  white-space: normal;
  pointer-events: none;
}

    .input-area label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


 /* Edits Input Fields   */   
.input-area input[type="number"],
.input-area select ,
    .input-area input[type="text"] {
  width: 75px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
 text-align: center;
  
}

    .sort-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Edits "Sort By:" Input Field   */
.sort-container select {
  width: 220px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  text-align: center;
  margin-left: 10px;
}

.results-output {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  border-left: 1px solid #ccc;
}

.with-suffix {
  position: relative;
  display: inline-block;
}
.with-suffix input {
  padding-right: 3.2em; /* room for the suffix */
}

/* draw the suffix text */
.with-suffix::after {
  content: attr(data-suffix);
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #475569;              /* subtle */
  font-size: 0.95em;
  line-height: 1;
}

/* optional: hide number spinners so they don't collide */
.with-suffix input[type="number"]::-webkit-outer-spin-button,
.with-suffix input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.with-suffix input[type="number"] {
  -moz-appearance: textfield;
}
