
/* ----------------------------------------------------------
   Steam Factory Portal — Quote Create Progress Styles
   Updated: 2025-10-11
   Batch #2 — “The most dangerous phrase in the language is,
   ‘We’ve always done it this way.’” — Grace Hopper
   © Steam Factory — Built with ❤️ by the awesome crew at Steam Factory
---------------------------------------------------------- */

.sf-quote-create {
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.sf-quote-create h1 {
  border-bottom: 3px solid #ffcc00;
  padding-bottom: 0.4rem;
  margin-top: 0;
  font-weight: 600;
}

.sf-quote-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem 2rem;
  margin-bottom: 1rem;
}

.sf-form-group {
  display: flex;
  flex-direction: column;
}

.sf-form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.sf-form-group input[type="text"],
.sf-form-group input[type="file"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: "Zilla Slab", sans-serif;
}

.sf-table-quotes {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.sf-table-quotes th,
.sf-table-quotes td {
  border: 1px solid #ccc;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.sf-table-quotes th {
  background: #2d2d2d;
  color: white;
  font-weight: 600;
}

.sf-form-actions {
  margin-top: 1.5rem;
  text-align: right;
}


/* quote_create.css — pulsing submit button */
/*
.sf-btn-save.submitting {
  position: relative;
  background: #007bff !important;
  color: #fff !important;
  box-shadow: 0 0 10px #007bff, 0 0 20px rgba(0,123,255,0.4);
  animation: pulseSubmit 1.2s ease-in-out infinite alternate;
  transform-origin: center;
}
*/

/* --- Steam Factory Gear Spinner --- */
.sf-btn-save.submitting {
  position: relative;
  background: #c67c36 !important;   /* Brass tone */
  color: #fff !important;
  box-shadow: 0 0 12px rgba(198, 124, 54, 0.6);
  animation: pulseGear 1.5s ease-in-out infinite alternate;
  transform-origin: center;
}



/* Keep spinner centered inside the button */

/* .sf-btn-save.submitting::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  border: 2px solid rgba(255,255,255,0.7);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
*/

.sf-btn-save.submitting::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -50px;
  width: 26px;
  height: 26px;
  margin: -13px;
  background: url("/images/spinner-gear.svg") center/contain no-repeat;
  animation: spinGear 1.6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(255, 204, 0, 0.6));
}


/*
@keyframes spin {
  to { transform: rotate(360deg); }
}
*/


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* Spinner icon */
.sf-btn-save.submitting::after {
  content: "⏳";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  animation: spin 1s linear infinite;
}


@keyframes pulseSubmit {
  from {
    transform: scale(1);
    box-shadow: 0 0 8px #007bff, 0 0 16px rgba(0,123,255,0.3);
  }
  to {
    transform: scale(1.08);
    box-shadow: 0 0 16px #007bff, 0 0 28px rgba(0,123,255,0.6);
  }
}


@keyframes pulseGear {
  from {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(198, 124, 54, 0.5);
  }
  to {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 204, 0, 0.8);
  }
}


.sf-gear-spinner {
  width: 40px;
  height: 40px;
  background: url("/images/spinner-gear.svg") center/contain no-repeat;
  animation: spinGear 1.6s linear infinite;
}
