/***************************************************
  app-home-teaser-widget.css
  Homepage Teaser Data Generator Widget
  Custom styles for teaser utility on homepage
  (Overrides/extends style.css)
****************************************************/

/* Teaser Card Container */
.teaser-utility-section .card {
  background: #fff;
  border-radius: 1.5rem;
  border: none;
  box-shadow: 0 4px 24px 0 rgba(63,106,216,0.06);
  margin-bottom: 0;
  padding: 0 !important;
}

/* Teaser Form Controls */
.teaser-utility-section .form-label {
  color: #2C323C;
  font-weight: 600;
  font-size: 1.07rem;
  margin-bottom: 0.38em;
}
.teaser-utility-section .form-control,
.teaser-utility-section .form-select {
  border-radius: 0.8rem;
  border: 1.5px solid #E2E6EE;
  box-shadow: none !important;
  font-size: 1.04rem;
  color: #2C323C;
  background: #F8F9FB;
  transition: border 0.1s;
  min-height: 44px;
}
.teaser-utility-section .form-control:focus,
.teaser-utility-section .form-select:focus {
  border-color: #3F6AD8;
  background: #fff;
  outline: none;
}

/* Generate Sample Button */
.teaser-utility-section .btn-primary-cta {
  background: #3F6AD8;
  color: #fff !important;
  border: none;
  border-radius: 999rem;
  font-family: 'Inter', 'Roboto', 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 6px 24px 0 rgba(63,106,216,0.10);
  outline: 2px solid transparent;
  transition: background 0.15s, outline 0.13s, box-shadow 0.13s;
  min-width: 140px;
  min-height: 44px;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.teaser-utility-section .btn-primary-cta:hover,
.teaser-utility-section .btn-primary-cta:focus {
  background: #254b9e;
  color: #fff !important;
  outline: 2px solid #3F6AD8;
  box-shadow: 0 4px 12px 0 rgba(63,106,216,0.13);
}

/* Results Area */
.teaser-utility-section #teaser-results-area {
  min-height: 46px;
  margin-bottom: 0.2rem;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Results Table */
.teaser-utility-section .teaser-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px 0 rgba(63,106,216,0.04);
  font-size: 1.03rem;
}
.teaser-utility-section .teaser-table th,
.teaser-utility-section .teaser-table td {
  border-bottom: 1.5px solid #E2E6EE;
  padding: 0.68em 1em;
  vertical-align: middle;
}
.teaser-utility-section .teaser-table thead th {
  background: #F3F6FA;
  color: #3F6AD8;
  font-weight: 700;
  border-bottom: 2px solid #E2E6EE;
  font-size: 1.04rem;
}
.teaser-utility-section .teaser-table tbody tr:nth-child(odd) {
  background: #F8F9FB;
}
.teaser-utility-section .teaser-table tbody tr:nth-child(even) {
  background: #fff;
}
.teaser-utility-section .teaser-table td {
  color: #2C323C;
}
.teaser-utility-section .teaser-table tr:last-child td {
  border-bottom: none;
}

/* Loader Spinner */
.teaser-utility-section .teaser-loader {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #E2E6EE;
  border-top: 3px solid #3F6AD8;
  border-radius: 50%;
  animation: teaser-spin 0.7s linear infinite;
  margin: 0 auto;
  vertical-align: middle;
}
@keyframes teaser-spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Mini tweaks for accessibility */
.teaser-utility-section input[type="number"]::-webkit-inner-spin-button, 
.teaser-utility-section input[type="number"]::-webkit-outer-spin-button { 
  -webkit-appearance: none;
  margin: 0;
}
.teaser-utility-section input[type="number"] {
  -moz-appearance: textfield;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .teaser-utility-section .card {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .teaser-utility-section .teaser-table th,
  .teaser-utility-section .teaser-table td {
    padding: 0.5em 0.5em;
    font-size: 0.98rem;
  }
}

/* "Want more options" link styling */
.teaser-utility-section .text-center a.text-decoration-underline {
  font-weight: 600;
  color: #3F6AD8;
  transition: color 0.13s;
}
.teaser-utility-section .text-center a.text-decoration-underline:hover,
.teaser-utility-section .text-center a.text-decoration-underline:focus {
  color: #254b9e;
  text-decoration: underline;
}

/* Focus outlines for all interactive elements in teaser */
.teaser-utility-section a:focus,
.teaser-utility-section button:focus,
.teaser-utility-section input:focus,
.teaser-utility-section .form-select:focus,
.teaser-utility-section .form-control:focus {
  outline: 2px solid #3F6AD8 !important;
  outline-offset: 2px;
  box-shadow: none !important;
}