@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");

:root {
  --theme-blue: #264796;
  --theme-blue-light: #019bdf;
  --theme-white: #fff;
  --theme-black: #000;
  --theme-gray: #727271;
  --theme-black-secondary: #292929;
  --theme-gradient: linear-gradient(180deg, #009ee1 0%, #264796 100%);
}
* {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Nunito Sans", sans-serif;
  overflow-x: hidden;
  background-image: url(../images/bidBg-1.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  background-attachment: fixed;
}

a:hover {
  color: unset;
}
/* button css */
.btnMain {
  background: linear-gradient(180deg, #009ee1 0%, #264796 100%);
  border: none;
  color: var(--theme-white);
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 30px;
  transition: all 0.4s ease;
  min-width: 120px;
}
.strokeBtn {
  border-bottom: 1px solid var(--theme-black-secondary);
  display: inline-block;
  text-decoration: none;
  color: var(--theme-black-secondary);
  font-weight: 700;
  transition: all 0.3s ease-in-out;
}
.strokeBtn:hover {
  color: var(--theme-blue-light);
  border-color: var(--theme-blue-light);
}
/* button css */
/* navbar css  */
nav {
  background: var(--theme-white);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
}

nav img {
  max-width: 300px;
}
/* navbar css  */
.btnMain:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 158, 225, 0.5);
}
/* login page css */
.login {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../../frontend/images/loginbg.jpg) no-repeat center center;
  background-size: cover;
  opacity: 0.6; /* adjust for desired fade */
  z-index: -1;
}
.loginForm {
  background: rgb(255 255 255 / 34%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 15px;
  border: 2px solid rgb(255 255 255);
  padding: 30px;
  box-shadow: 0 8px 32px 14px rgb(255 255 255 / 50%);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}
.inpWrap {
  position: relative;
  background-color: #ffffffd6 !important;
  margin-bottom: 18px;
  border-radius: 50px;
  overflow: hidden;
  backdrop-filter: blur(3px);
}
.inpWrap i {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--theme-gradient);
  color: var(--theme-white);
  border-radius: 34px;
  font-size: 13px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.inpWrap input {
  width: 100%;
  padding: 12px 12px 12px 52px;
  background-color: transparent !important;
  border: none;
}
.inpWrap input:focus-visible {
  outline: none;
}
.logoReg {
  display: flex;
  align-items: center;
  margin-bottom: 34px;
  gap: 8px;
}
.logoReg h2 {
  margin-bottom: 0;
}
.loginLogo {
  text-align: end;
  margin-bottom: 36px;
}
.logoReg img {
  max-width: 50px;
}
.loginButton {
  text-align: end;
  margin-top: 20px;
}
.strokeBtn.forgot {
  font-size: 14px;
  display: block;
  text-align: end;
  border-bottom: none;
  font-weight: 500;
}
.loginForm.register {
  max-width: 800px;
  margin: 120px auto;
}
/* login page css */
/* footer css */
footer {
    color: var(--theme-white);
    background: var(--theme-gradient);
    font-weight: 700;
    width: 100%;
    text-align: center;
    position: absolute;
    padding: 20px;
}
footer p{
  margin-bottom: 0;
}
section.login + footer{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}
/* footer css */
/* bidding page css */
.bidCardWrapper {
  background: rgb(255 255 255);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 15px;
  border: 2px solid rgb(255 255 255);
  padding: 20px;
  box-shadow: 0 8px 32px 14px rgb(255 255 255 / 50%);
  text-align: center;
  margin-bottom: 30px;
}

.bidImg > * {
  width: 60px;
  height: 60px;
  border-radius: 50px;
  background-color: var(--theme-white);
  display: inline-block;
  margin: 0 auto 12px auto;
  box-shadow: 0 0 20px 2px #d3d3d3;
}
.bidImg span {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 20px;
}
.prdDesc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: normal;
  font-size: 15px;
  margin-bottom: 6px;
}
.bidInfo h3 {
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 700;
}
.bidInfo .strokeBtn {
  font-size: 14px;
}
.bidInfo {
  display: flex;
  gap: 8px;
  text-align: left;
}
.bidh3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 700;
}
.highBid {
  text-align: left;
}

.highBid ul {
  padding-left: 0;
  list-style-type: none;
}
/* bidding page css */
.bidInputs .inpWrap {
  background-color: #ededed !important;
  display: inline-block;
  margin-bottom: 4px;
}
.bidInputs,
.timer {
  text-align: end;
}
.bidInputs .inpWrap input {
    padding-left: 20px;
    font-size: 12px;
}
.bidInputs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  align-items: center;
}
.bidInputs .btnMain {
  min-width: fit-content;
  font-size: 12px;
}

.highBid ul li {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid #eee;
  font-size: 14px;
  margin-bottom: 4px;
}
.countdown {
  font-size: 22px;
  font-weight: 700;
  color: var(--theme-blue-light);
}
.date {
  font-size: 16px;
  text-align: start;
  margin-bottom: 16px;
}
.bidInputs .inpWrap:nth-child(1) {
  max-width: 120px;
}
.filterWrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.filterWrapper .dropdown button {
  border: 1px solid #eee;
  background-color: var(--theme-white);
  border-radius: 10px;
  width: 150px;
}
.multiselect-dropdown-container {
  position: relative;
  width: 150px;
}
.multiselect-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  border-top: none;
  background-color: #fff;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 5px 0;
}

.multiselect-dropdown-content.show {
  display: block;
}

.multiselect-dropdown-content label {
  display: block;
  padding: 8px 10px;
  cursor: pointer;
}

.multiselect-dropdown-content label:hover {
  background-color: #f1f1f1;
}

.multiselect-dropdown-content input[type="checkbox"] {
  margin-right: 8px;
}

.multiselect-dropdown-button {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  font-size: 15px;
}

.multiselect-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  position: absolute;
  right: 10px;
  top: 38%;
}
.filterWrapper .nav-tabs .nav-link.active {
  background: linear-gradient(180deg, #009ee1 0%, #264796 100%);
  border: none;
  color: var(--theme-white);
  font-weight: 600;
  padding: 10px 25px;
  transition: all 0.4s ease;
  min-width: 120px;
}
.filterWrapper .nav-tabs .nav-link {
  background: transparent;
  border: none;
  color: var(--theme-white);
  font-weight: 600;
  padding: 10px 25px;
  transition: all 0.4s ease;
  min-width: 120px;
}
.filterWrapper .nav-tabs{
  border: none;
}
th,td{
  white-space: nowrap;
}


.catInput input[type="checkbox"] {
    display: block; /* hide the default checkbox */
}

.catInput label {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    border: 2px solid var(--theme-white);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, color 0.2s;
    position: relative;
    color: var(--theme-white);
}
.catInput input[type="checkbox"] {
    position: absolute;
    width: 100%;
    left: 0;
    height: 100%;
    top: 0;
    visibility: hidden;
}

/* When checkbox is checked, change label bg */
.catInput input[type="checkbox"]:checked + label,
.catInput label.active {
    background: var(--theme-gradient);
    color: white;
    border-color: var(--theme-blue);
}
.categories{
  text-align: center;
  margin-bottom: 20px;
}


#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-auctions-message {
    background-color: #f8f9fa;   /* light gray background for contrast */
    border: 2px dashed #ced4da; /* dashed border for emphasis */
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 400px;
    color: #495057;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    user-select: none;
}
.no-auctions-message svg {
    stroke-width: 1.5;
    opacity: 0.6;
}
.form-floating > input:not(:focus):placeholder-shown + label {
    opacity: 1;
    transform: translateY(-0.75rem) scale(0.85);
    top: 0.2rem;           /* Adjust positioning */
    left: 0.75rem;         /* Align with input padding */
    padding: 0 0.25rem;    /* Slight horizontal padding */
    background-color: white; /* Match form background to cover input border */
    pointer-events: auto;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-error, .toast-error.show {
    background-color: #FF0000 !important;  /* dark background */
    color: #fff !important;             /* white text for contrast */
    opacity: 1 !important;              /* ensure fully visible */
    transition: none !important;        /* disable any hover transition */
}

/* Optional: disable hover background change if exists */
.toast-error:hover {
    background-color: #FF0000 !important;
}

.bid-closed-message {
    margin-top: 15px;
    font-weight: bold;
    color: red;
}


/* Styling for remarks/status */
.bid-status {
    font-weight: 600;
    font-size: 0.9rem;
}
.bid-status.approved {
    color: #0f9d58;
}
.bid-status.partial_approved {
    color: #0f9d58;
    animation: blink 1s linear infinite;
}
.bid-status.cancel {
    color: #e53935;
    animation: blink 1s linear infinite;
}
.bid-remark {
    font-weight: 500;
    font-size: 0.9rem;
}
.bid-remark.approved {
    color: #0f9d58;
}
.bid-remark.partial_approved {
    color: #0f9d58;
    animation: blink 1s linear infinite;
}
.bid-remark.cancel {
    color: #e53935;
    animation: blink 1s linear infinite;
}
@keyframes blink {
    50% { opacity: 0.5; }
}

/* Responsive Card Layout for Mobile */
@media (max-width: 768px) {
    table.bid-table thead {
        display: none;
    }
    table.bid-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        padding: 0.75rem;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    table.bid-table tbody td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 0.35rem 0;
        font-size: 0.9rem;
    }
    table.bid-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
    }
}