@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* home */
body {
    background: linear-gradient(90deg, #3b3b3b 0%, #414141 0%, #262626 100%, #181818 100%);
}
.hero {
    width: 100%;
    height: 30vh;
    color: #fff;
    position: relative;
    
}

.image {
    /* background-image: url(images/SAF_Atock_image.webp); */
}

.emissions {
    font-family: 'Gill Sans';
    font-style: italic;
    color: rgb(134, 185, 135);
}

.popUp {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    z-index: 1000;
}

.popupForm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  z-index: 1000;
}

.close {
  font-family: 'poppins', sans-serif;
  font-weight: 700;
  position: absolute;
  border-radius: 5px;
  background: none;
  color: #fff;
  cursor: pointer;
  top: 0;
  right: 0;
  width: 25px;
  height: 25px;
}

.close:hover {
    background-color: #59595940;
}

.img {
    border: 4px solid #ffffff;
    border-radius: 40px;
    size: 65%;
    width: 95%;
    display: flex;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.img_text {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.image p {
    text-align: center;
    color: #ffffff;
    font-size: 300%;
}

/* refinery old */

#added-cart {
    margin-top: -150px;
    margin-bottom: 50px;
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
    background-color: #256330;
    border-radius: 10px;
    width: 125px;
    padding: 1px 3px;
    color: #ffffff;
    text-align: center;
}

#added-cart img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: text-bottom;
}

#enter-cart {
    font-size: 20px;
    margin-top: 100;
    margin-bottom: 50px;
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
    background-color: #0b0921;
    border-radius: 10px;
    width: 300px;
    padding: 1px 3px;
    color: #b6b6b6;
    text-align: center;
}

#enter-cart img {
    width: 30px;
    height: 30px;
    margin-right: 5px;
    vertical-align: text-bottom;
}

#enter-cart h4 {
    color: rgb(255, 255, 255);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* forms (provider/refinery) */

#signupForm {
    width: 450px;
    margin: -3em auto;
    text-align: left;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    border: 1.5px inset #ffffff;
    padding: 2em;
    border-radius: 10px;
}

#signupForm h1 {
    color: #ffffff;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    margin-bottom: 0px;
}

#signupForm:hover {
    box-shadow: 0 0 8px #7c7e7db8;
    transition: box-shadow 0.15s ease-in-out;
}

#signupForm label, #signupForm p {
    cursor: text;
    display: block;
    margin-top: 0.3em;
    font-size: 1.36em;
    margin-right: 10px;
    text-shadow: 1px 1px 8px rgb(135, 133, 133);
    width: fit-content;
}

#signupForm select {
    height: 40px;
    width: 101%;
    background-color: #262626;
    margin-top: 4px;
    border-radius: 9px;
    border: 0.5px ridge #a2a2a2;
    outline: 0;
    margin-top: 12px;
    padding-bottom: 5px;
    padding-top: 5px;
    color: #ffffff;
    font-family: 'poppins', sans-serif;
    font-size: 1em;
}

#signupForm select option {
    height: 47px;
    width: 101%;
    background-color: #262626;
    margin-top: 4px;
    border-radius: 9px;
    border: 0.5px ridge #a2a2a2;
    outline: 0;
    margin-top: 12px;
    padding-bottom: 5px;
    padding-top: 5px;
    color: #ffffff;
    font-family: 'poppins', sans-serif;
    font-size: 1em;
}

#signupForm select option {
    width: 50%;
}

#signupForm .form-header {
    text-shadow: 4px 4px 8px rgb(85, 85, 85);
    font-weight: 700;
    font-size: 4em;
    margin-top: -30px;

}

#signupForm input[type="text"],[type="password"],[type="email"] {
    justify-content: center;
    align-items: center;
    font-family: 'poppins', sans-serif;
    font-size: 1em;
    color: #ffffff;
    caret-color: #ffffff;
    width: 100%;
    height: 25px;
    background-color: #262626;
    margin-top: 12px;
    border-radius: 10px;
    border: 0.5px ridge #a2a2a2;
    outline: 0;
    padding-bottom: 8px;
    padding-top: 8px;
}

#signupForm select:focus, input:focus {
    box-shadow: 0 0 10px #4f8cff;
    transition: box-shadow 0.15s ease-in-out;
}

#settings {
  width: 30px;
  height: 30px;
  margin-bottom: -10px;
  cursor: pointer;
}

#location-list {
  margin: 0 auto;
  width: 400px;
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: #121212; /* matches your dark hero/nav background */
  color: #bfc7d5;      /* matches your text color */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border: 1px solid #bfc7d5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(35,41,70,0.15);
  z-index: 1000;
  padding: 0;
  list-style: none;
}

#location-list li {
  background-color: #2f2f2f;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

#location-list li:hover {
  background: #bfc7d5;
  color: #232946;
}

/* .supplying_refinery_h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  background-color: #8e8b8b;
  color: #000000;
  border-radius: 5px;
  padding-left: 5px;
} */

#refinery-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #23272f;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 12px #00000040;
    flex-wrap: wrap;
}

#refinery-form label {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0 0.25rem 0 0;
    font-weight: 500;
    color: #bfc7d5;
    white-space: nowrap;
}

#refinery-form label[for="quantity"] {
    margin-left: 20rem;
}

#refinery-form input,
#refinery-form select {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid #444a57;
    border-radius: 1.5rem;
    font-size: 1rem;
    background: #181b20;
    color: #f1f1f1;
    outline: none;
    transition: border 0.2s, background 0.2s;
}

#refinery-form input:focus,
#refinery-form select:focus {
    border: 1.5px solid #4f8cff;
    background: #23272f;
}

#refinery-form .submit {
  display: block;
  width: 120px;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  border-radius: 1.5rem;
  border: none;
  background: linear-gradient(90deg, #1768ff 0%, #2353a2 100%);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(79,140,255,0.15);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  #refinery-form {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  #refinery-form label,
  #refinery-form input,
  #refinery-form select,
  #refinery-form .submit {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  #refinery-form .submit {
    width: 100%;
  }
}

/* Fix refinery form input bar width on mobile */
@media (max-width: 900px) {
  #refinery-form input,
  #refinery-form select {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 0.5em 0 !important;
    padding-left: 0.75em;
    padding-right: 0.75em;
  }
  #refinery-form {
    padding: 0.5em !important;
  }
}

form .submit {
    font-family: 'poppins',sans-serif;
    color: #000;
    scale: 200px;
    font-weight: 500;
    margin-top: 1em;
    background: #ffffff;
    height: 40px;
    width: 100%;
    border-radius: 10px;
    border: 0;
    outline: 0;
    cursor: pointer;
}

/* menu */

.logo {
  border-radius: 10px;
  scale: 80%;
}

.logo:hover {
    box-shadow: 0 0 12px #8d8e8db8;
    transition: box-shadow 0.05s ease-in-out;
}

nav {
    display: flex;
    align-items: center;
    padding: 20px 8%;
}

nav .menu-img {
    width: 25px;
    margin-right: 20px;
    cursor: pointer;
}

nav .logo {
    width: 160px;
    cursor: pointer;
}

nav ul {
    margin-bottom: 50px;
    flex: 1;
    /* text-align: center; account banner in top right*/
    text-align: right;
}

nav ul li {
    font-family: "poppins", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    display: inline-block;
    list-style: none;
    margin: 0 20px;
}

nav ul li a {
  position: relative;
  color: #bfc7d5;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
  font-weight: 300;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.2rem;
  height: 2px;
  background: linear-gradient(90deg, #4f8cff 0%, #2353a2 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  transform-origin: left;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #4f8cff;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
  transform: scaleX(1);
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;

}

/* nav .account p {
  margin: 0.1q -50px 0 0;
  position: relative;
  color: #bfc7d5;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: large;
  font-family: "poppins", sans-serif;
  font-weight: 300;
} account banner in top right*/

/* general */

h1 {
    color: #ffffff;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}

button {
    background: #efefef;
    height: 30px;
    width: 60px;
    border-radius: 20px;
    border: 0;
    outline: 0;
    cursor: pointer;
}

/* index.html */

.signup_demo h1 {
    text-align: center;
    font-weight: 700;
    font-size: 50px;
}

.retailer h1 {
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#card {
    height: 20px;
    border: 2px solid #2c2b2b;
    background-color: #1f1f1f;
    padding: 2em 2em 17em 2em;
    margin: 1em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px;
    text-align: left;
    cursor: pointer;
}

#card h3 {
    font-size: 1.2em;
    font-family: sans-serif;
}

#card p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    line-height: 1.2em;
}

.jobs-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.job-card {
    border: 3.5px solid #ffffff;
    background-color: #1f1f1f;
    padding: 1em;
    margin: 1em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px;
    text-align: left;
    cursor: pointer;
}

.job-card h3 {
    font-size: 1.2em;
    font-family: sans-serif;
}

.job-card p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    line-height: 1.2em;
}

.card {
    display: block
}

.card-2 {
    
}

.card-3 {
    top: 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

table {
  border-radius: 10px;
  /* background: radial-gradient(circle, #3b3b3b 0%, #2c2c2c 100%, #424242 100%); */
  width: 100%;
  border-collapse: collapse;
}

th, tr {
  padding: 1rem;
  margin-right: 1em;
  text-align: left;
  border-bottom: 1px solid #5a5a5a;
  color: #fff;
  font-family: Arial, sans-serif;
}

tbody {
  border: 2px solid #5a5a5a;
  border-radius: 0.1px;
}

tr:nth-child(even) {
  background-color: #2c2929;
}

td {
  padding: 2rem;
  text-align: left;
}

/* landing */

.toggle-view-btn {
  font-family: 'poppins', sans-serif;
  cursor: pointer;
  text-align: center;
  color: #b8c3d6;
  margin: 1em 0;
  font-size: 1.1em;
  transition: color 0.2s;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.toggle-view-btn:hover {
  color: #486788;
  text-decoration: underline;
}

#tab {
  font-family: 'poppins',sans-serif;
  color: #ffffff;
  scale: 200px;
  font-weight: 500;
  margin-top: 0.5em;
  background: #7c7e7db8;
  height: 40px;
  width: 13%;
  border-radius: 10px;
  border: 0;
  outline: 0;
  cursor: pointer;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.badge.default { background-color: #22c55e; color: #fff; }
.badge.secondary { background-color: #eab308; color: #000; }
.badge.destructive { background-color: #ef4444; color: #fff; }

.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart.badge { border-radius: 0.2rem; padding: 4px 20px 8px 8px; align-items: center; justify-content: center; }
.cart.badge.destructive { background-color: #ffffff; color: #fff; cursor: pointer; color:#000; height: 20px; width: 120px; text-align: center; align-items: center; justify-content: center; }
.cart.badge.default { background-color: #848484; color: #fff; cursor:not-allowed; height: 20px; width: 120px; text-align: center; align-items: center; justify-content: center; }

.bid.badge { border-radius: 0.2rem; padding: 4px 20px 8px 8px; }
.bid.badge.destructive { 
  display: inline-block;
  background: linear-gradient(90deg, #3b85ed 0%, #5a84d3 100%);
  color: #ffffff;
  font-size: 0.9em;
  border: none;
  border-radius: .4em;
  padding: 1em 2.3em;
  box-shadow: 0 2px 12px rgba(118, 118, 118, 0.481);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  text-align: center;
  letter-spacing: 0.05em;
  outline: none;
  margin: 0.5em 0;
 }

.cart-svg {
    margin-right: 5px;
}

.pending-orders-text {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    margin-left: 250px;
}

.cart_orders-text {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    margin-left: 275px;
    justify-content: center;
    align-items: center;
}

.input-price-cart {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #ffffff;
  caret-color: #ffffff;
  width: 40%;
  background-color: #262626;
  border-radius: 5px;
  border: 0.5px dashed #a2a2a2;
  padding-bottom: 8px;
  padding-top: 8px;
  font-size: 1em;
  font-weight: bold;
}

.input-date-cart {
  text-align: center;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #ffffff;
  caret-color: #ffffff;
  width: 80%;
  background-color: #262626;
  border-radius: 5px;
  border: 0.5px dashed #a2a2a2;
  padding-bottom: 8px;
  padding-top: 8px;
  font-size: 1em;
  font-weight: bold;
}

.bid-svg {
    margin-right: 5px;
    
}

.refinery_h1 {
    margin-top: -30px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #00bfa5;
}

/* Search bar */
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #333;
    background-color: #1e1e1e;
    color: #f5f5f5;
    border-radius: 5px;
}

.search-btn {
    padding: 10px 20px;
    background-color: #00c2a8;
    border: none;
    color: #121212;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #00897b;
}

/* Flight results */
.flight-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flight-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.flight-info h2 {
    color: #00bfa5;
}

.saf_emissions {
    color: #90caf9;
}

.saf-note {
    font-size: 0.8rem;
    color: #00c853;
    font-weight: bold;
}

/* Flight price and dropdown button */
.flight-price {
    text-align: right;
    position: relative;
}

.flight-price p {
    font-size: 1.5rem;
    font-weight: bold;
}

.dropdown-btn {
    padding: 10px;
    background-color: transparent;
    border: none;
    color: #f5f5f5;
    font-size: 1.5rem;
    cursor: pointer;
}

.dropdown-btn:hover {
    color: #00bfa5;
}

/* Flight details (hidden by default) */
.flight-details {
    display: none;
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

/* Show details */
.flight-card.active .flight-details {
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .flight-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .flight-price {
        text-align: left;
        margin-top: 10px;
    }
}

/* header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #00bfa5;
}

.book-btn {
    height: fit-content;
    width: auto;
}

.search-btn {
    height: fit-content;
    width: auto;
}

.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #333;
    background-color: #1e1e1e;
    color: #f5f5f5;
    border-radius: 5px;
}

.search-btn {
    padding: 10px 20px;
    background-color: #00bfa5;
    border: none;
    color: #121212;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #00897b;
}

.flight-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flight-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.flight-info h2 {
    color: #00bfa5;
}

.flight-price {
    text-align: right;
}

.flight-price p {
    font-size: 1.5rem;
    font-weight: bold;
}

.book-btn {
    padding: 10px 20px;
    background-color: #00bfa5;
    border: none;
    color: #121212;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.book-btn:hover {
    background-color: #00897b;
}

@media (max-width: 768px) {
    .flight-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .flight-price {
        text-align: left;
        margin-top: 10px;
    }
} */

/* --- MOBILE-ONLY OVERRIDES --- */
@media (max-width: 900px) {
  body {
    padding: 0 4vw;
    font-size: 1.1em;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 2vw;
  }
  nav .logo {
    width: 120px;
    margin-bottom: 10px;
  }
  nav ul {
    text-align: left;
    margin-bottom: 10px;
    padding: 0;
  }
  nav ul li {
    display: block;
    margin: 10px 0;
  }

  .hero {
    height: auto;
    padding: 20px 0;
    text-align: center;
  }

  .img {
    width: 100%;
    border-width: 4px;
    border-radius: 20px;
  }
  .image p {
    font-size: 1.5em;
  }

  .title-header,
  .signup_demo h1,
  .retailer h1,
  h1 {
    font-size: 2em !important;
    margin-top: 0 !important;
  }

  #signupForm,
  #refinery-form {
    width: 100% !important;
    min-width: 0;
    padding: 1em !important;
    box-sizing: border-box;
  }
  #signupForm label,
  #refinery-form label {
    font-size: 1.1em;
  }
  #refinery-form label[for="quantity"] {
    margin-left: 0;
  }
  #refinery-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5em;
  }
  #refinery-form input,
  #refinery-form select,
  #refinery-form .submit {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 0.5em !important;
    font-size: 1.1em;
  }

  .card-container,
  .jobs-card-container {
    flex-direction: column;
    align-items: stretch;
  }
  #card,
  .job-card {
    width: 100% !important;
    margin: 0.5em 0 !important;
    padding: 1em !important;
  }

  .container {
    padding: 10px 0;
  }

  table,
  th,
  td {
    font-size: 1em;
    padding: 0.5em;
  }

  .search-bar {
    flex-direction: column;
    gap: 10px;
  }
  .search-input,
  .search-btn {
    width: 100%;
    font-size: 1em;
  }

  .flight-card {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .flight-price {
    text-align: left;
    margin-top: 10px;
  }
}

/* iPad-specific tweaks (optional, for larger tablets) */
@media (min-width: 601px) and (max-width: 1024px) {
  body {
    font-size: 1.2em;
  }
  nav .logo {
    width: 140px;
  }
  #signupForm,
  #refinery-form {
    width: 90% !important;
  }
}

/* Center nav bar, logo, and menu on mobile */
@media (max-width: 900px) {
  nav {
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 2vw;
  }
  nav .logo {
    display: block;
    margin: 0 auto 10px auto;
    float: none;
    text-align: center;
  }
  nav .menu-img {
    display: block;
    margin: 0 auto 10px auto;
    float: none;
    text-align: center;
  }
  nav ul {
    width: 100%;
    text-align: center !important;
    margin-bottom: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  nav ul li {
    display: block;
    margin: 10px 0;
    text-align: center;
  }
}