/* GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

.main {
  min-height: 95vh;
}

.background-image {
  background-image: url('@/assets/mwh-background.jpeg');
}

footer {
  bottom: 0;
  width: 100%;
  height: auto;
  background: lightgrey;
  padding: 10px;
  display: flex;
  justify-content: center;
}

footer p {
    color: rgb(85, 85, 85);
}

/* TRANSITION */

a, .btn {
    transition: all 300ms ease;
}

/* DESKTOP NAV*/

nav, .nav-links {
    display: flex;
}

nav {
    position: sticky;
    justify-content: space-around;
    align-items: center;
    height: 17vh;
    background: white;
    margin-bottom: 20px;
}

.nav-links {
    gap: 2rem; /* rem is a unit of measurement */
    list-style: none; /* removes bullet points */
    font-size: 1rem;
    align-items: center;
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: #bf4a2a;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: #bf4a2a;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  transform: scaleY(1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  width: 200px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* */

.scrollable-div {
  overflow-x: auto;
}

.tabs {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.logout-button {
    background-color: #363779;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .logout-button:hover {
    background-color: #1e1f52;
    transform: scale(1.05);
  }
  
  .logout-button:active {
    transform: scale(0.95);
  }

.logo {
    height: 50px;
}


/*  LOGIN */

.form-page {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: white;
  }
  
  .form-page label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
  }
  
  .form-page input {
    width: 100%;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .form-page textarea {
    width: 100%;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
  }

  .form-page select {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  
  .error {
    color: red;
    margin-top: 10px;
  }

  .wmax {
    width: 100%;
  }

  .whalf {
    width: 50%;
  }
  
.gap-s {
  gap: 1rem;
}

 /* Shared Styles */
.container {
    width: 80%;
    margin: 0 auto;
  }

  .container-end {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  .box-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  button {
    padding: 10px;
    font-size: 16px;
    background-color: #363779;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button:hover {
    background-image: linear-gradient(rgb(0 0 0/30%) 0 0);
  }
  
  input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  label {
    font-weight: bold;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  thead {
    background-color: #363779;
    color: white;
  }
  
  th, td {
    padding: 10px;
    border-bottom: 1px solid #363779;
    text-align: left;
  }
  
  th {
    font-weight: bold;
  }
  
  /* p {
    margin-top: 20px;
    color: black;
  } */
  
  /* Home Container */
  .home-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
  }
  
  .home-container a {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .home-container a:hover {
    color: white;
    background-color: #1e1f52;
    transform: scale(1.05);
    text-decoration: none;
  }
  
  .search-bar {
    width: 100%;
    border-radius: 50px;
    height: 2.5rem;
    padding-left: 20px;
  }
  


  .products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
  }
  
  .product {
    padding: 20px;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
  }
  
  .product:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  }
  
  .product-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
  }

  .product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Maintains the aspect ratio of the image */
  }

  .product-image-s {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
  }

  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .modal {
    position: relative;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 400px;
    width: 100%;
  }

  .modal div, .modal p{
    margin-top: 5px;
  }
  
  .modal-content {
    max-width: 400px;
    margin: auto;
  }
  
  .modal button {
    margin-top: 10px;
    width: 40%;
  }

  .modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark transparent background */
  }

  .btn-green {
    background: #226D59;
  }

  .btn-red {
    background: #BC1041;
  }

  .btn-grey {
    background: lightgrey;
  }

  .btn-grey:hover {
    background: grey;
  }

  .btn-round {
    border-radius: 50%;
    padding: 5px 10px;
    height: 30px;
    width: 30px;
  }




  .container-row {
    display: flex;
    flex-direction: row;
  }


  .padding-10 {
    padding: 10px;
  }

  .padding-20 {
    padding: 20px;
  }

.h50 {
  height: 50px;
}

.h100 {
  height: 100px;
}

.h150 {
  height: 150px;
}

.w100 {
  width: 100px;
}

.w200 {
  width: 200px;
}

.w400 {
  width: 400px;
}

.w500 {
  width: 500px;
}

  .w1200 {
    width: 1200px;
  }

  .margin-l-s {
    margin-left: 10px;
  }

  .margin-r-s {
    margin-right: 10px;
  }

  .margin-t-s {
    margin-top: 10px;
  }

  .margin-b-s {
    margin-bottom: 10px;
  }

  .bg-lightgrey {
    background: rgb(245, 245, 245);
  }

  .bg-white {
    background: white;
  }


  .center-vh {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .flex-col {
    flex-direction: column;
  }

  .d-flex{
    display: flex;
  }

  .align-items-center {
    display: flex;
    align-items: center;
  }

  .checkout-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    gap: 1rem;
    background: white;
  }

  
  .status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: capitalize; /* Optional */
  }
  
  .status.delivered {
    color: #ffffff;
    background-color: #226D59 ; /* Green */
  }
  
  .status.rejected {
    color: #ffffff;
    background-color: #BC1041; /* Red */
  }
  
  .status.pending {
    color: #ffffff;
    background-color: #ffc107; /* Yellow */
  }

  .space-between {
    display: flex;
    justify-content: space-between;
  }
  
  .flex-start {
    display: flex;
    justify-content: flex-start;
    align-self: flex-start;
  }

  .flex-end {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  .header {
    display: flex;
    align-items: center;
    width: 100%; /* Adjusts the width of the header to fit its content */
    margin-left: auto;
    margin-right: auto; /* Aligns the header container with the table */
    margin-bottom: 10px; /* Optional: Adds spacing between header and table */
    margin-top: 10px;
    text-align: center;
    background: white;
    height: 50px;
    padding: 10px;
    min-width: 800px;
  }

  .header .left {
    text-align: left;
    margin-left: 10px
  }

  .content {
    height: 150px;
  }

  .content .left {
    text-align: left;
    margin-left: 10px;
  }

  .content div{
    word-wrap: break-word;
  }

  .checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Adjust spacing between the elements */
}
.checkbox-container label {
    margin-right: 8px; /* Additional spacing for the label */
}

.action-buttons {
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 5px;
}

/* Auction List Section */
.auction-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
margin-top: 20px;
}

.auction-card {
border: 1px solid #ccc;
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
background-color: white;
display: flex;
flex-direction: column;
justify-content: space-between;
height: auto;
}

.auction-image {
	height: 100%;
	width: 100%;
	object-fit: contain;
	background-color: #f4f4f4;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
	overflow: hidden;
	border-radius: 8px;
}

.auction-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.auction-info {
text-align: left;
flex: 1;
}

.auction-info h3 {
margin: 0;
font-size: 18px;
font-weight: bold;
}

.auction-details {
margin-top: 10px;
font-size: 14px;
color: #555;
}

/* Status Styling */
.status-open {
color: green;
font-weight: bold;
}

.status-closed {
color: #BC1041;
font-weight: bold;
}

.status-unknown {
color: gray;
font-style: italic;
}


.btn-disabled {
  background: none;
}

.btn-disabled {
  background-image: none;
}

@media screen and (max-width: 1200px) {
  #desktop-nav {
      display: none;
  }
  #hamburger-nav {
      display: flex;
  }

  .container {
    width: 90%;
  }
}

@media screen and (max-width: 800px) {
  .home-container {
    display: flex;
    justify-content: center;
  }

  .container {
    width: 95%;
  }
}

