
.inventory-wrapper{

  /*background-color:whitesmoke;*/
  background-color:whitesmoke;

  padding-top: 50px;
  padding-bottom: 50px;
  overflow-x: auto;
}


.container-table {

  max-width: 1200px;
  margin: 0px auto;
  background: white;
  padding: 50px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}


/* Header Section */
.container-table h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #801b1b;
}

.container-table p {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

.container-table .lol{
  padding-bottom: 40px;
}
/* Form Section */
.container-table form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.container-table form label {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}





select {
  width: 150px;
  height: 40px;
  margin-top: -10px;
}




/* Table Section */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

thead {
  background-color: #8b0000;
  color: #fff;

}

thead th {
  padding: 10px;
  font-size: 0.9rem;
  text-align: center;
}

tbody tr {
  border-bottom: 1px solid #ccc;
}

tbody tr:hover {
  background-color: #f2f2f2;
}

tbody td {
  padding: 10px;
  font-size: 0.9rem;
  text-align: center;
}

/* Search Filters */
.search-filters {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.dropdown {
  position: relative;
  margin-bottom: 15px;
}

/* Add an arrow using the ::after pseudo-element */
.dropdown::after {
  content: "▾"; /* Unicode for the downward arrow */
  position: absolute;
  top: 50%;
  right: 10px; /* Adjust position */
  transform: translateY(-50%);
  font-size: 16px;
  color: #999; /* Arrow color */
  pointer-events: none; /* Prevent interaction with the arrow */
}

input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}



/* Dropdown Content */
.dropdown-content {
  visibility: hidden; /* Hidden initially */
  opacity: 0; /* Fully transparent initially */
  position: absolute;
  background-color: #fff;
  min-width: 100%;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  border-radius: 4px;
  overflow: hidden;
  max-height: 150px; /* Limit dropdown height */
  overflow-y: auto; /* Add scroll for long dropdowns */
  transition: visibility 0.2s, opacity 0.2s ease-in-out; /* Smooth transition */
}

.dropdown-content.show {
  visibility: visible; /* Make it visible */
  display: block;
  opacity: 1; /* Fully opaque */
}


.dropdown-content div {
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

.dropdown-content div:hover {
  background-color: #f0f0f0;
}

.section-numbers {
  margin-top: 30px;
  display: flex; /* Arrange buttons in a row */
  justify-content: left; /* Center them horizontally */
  gap: 0; /* Remove space between buttons */
}

.section-button {
  height: 25px;
  width: 25px;
  margin-right: 0px;
  font-size: 12px;
  padding: 0px;
  border: 1px solid #ccc; /* Add a border for each button */
  border-radius: 0px; /* Slightly rounded corners */
  background-color: #f4f4f4; /* Light background color */
  color: #333; /* Text color */
  cursor: pointer; /* Change cursor to pointer on hover */
  transition: background-color 0.2s, color 0.2s; /* Smooth hover effect */
}

.section-button:hover {
  background-color: #ddd; /* Slightly darker background on hover */
  color: #000; /* Darker text color on hover */
}

.section-button.active {
  background-color: #007bff; /* Active button background color (e.g., blue) */
  color: white; /* White text for the active button */
  border-color: #007bff; /* Match border with background color */
}


.edit-button,
.delete-button {
  padding: 5px 10px; /* Adjust padding as needed */
  margin: 0 5px; /* Add space between buttons */
  border-radius: 3px; /* Rounded corners */
  cursor: pointer;
  display: inline-block; /* Ensures both buttons are on the same line */
}

footer {
  padding: 8px;
  text-align: center;
  background-color: #801b1b;
  color: white;
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  font-size: small;
  z-index: 13;
  }
  





  @media (max-width: 550px) {
    .table-wrapper {
      overflow-x: auto; /* Allow horizontal scrolling for overflow */
      max-width: 100%; /* Ensure the table doesn't exceed the screen */
    }
  
    table {
      font-size: 12px; /* Reduce font size */
      width: 100%; /* Ensure the table spans the container */
    }
  
    thead th, tbody td {
      padding: 6px; /* Reduce padding */
      font-size: 11px; /* Adjust font size for readability */
    }
  
    thead th {
      font-size: 12px; /* Slightly larger font for table headers */
    }
  
    .dropdown input {
      padding: 6px; /* Reduce input padding */
      font-size: 12px; /* Adjust input font size */
    }
    .file-input-button {
      padding: 8px 12px; /* Adjust button padding */
      font-size: 12px; /* Adjust button font size */
    }
  
    .section-button {
      width: 22px; /* Reduce button size */
      height: 22px;
      font-size: 10px; /* Adjust font size */
      padding: 2px;
    }
  
    .container-table h1 {
      font-size: 1.5rem; /* Adjust header font size */
      margin-bottom: 8px; /* Reduce bottom margin */
    }
  
    .container-table {
      padding: 20px; /* Reduce container padding */
    }


    .modal-content {

      padding: 0px;

      
    }
    
    
  }
  

  @media (max-width: 440px) {
    .table-wrapper {
      overflow-x: auto; /* Allow horizontal scrolling for overflow */
      max-width: 100%; /* Ensure the table doesn't exceed the screen */
    }
  
    table {
      font-size: 10px; /* Further reduce font size */
      width: 100%; /* Ensure the table spans the container */
    }
  
    thead th, tbody td {
      padding: 4px; /* Reduce padding further */
      font-size: 9px; /* Adjust font size for readability */
    }
  
    thead th {
      font-size: 10px; /* Slightly larger font for table headers */
    }
  

  
  
    .container-table h1 {
      font-size: 1.3rem; /* Further reduce header font size */
      margin-bottom: 6px; /* Reduce bottom margin */
    }
  
    .container-table {
      padding: 15px; /* Reduce container padding further */
    }

    /* Reduce view-button padding for smaller screens */
    .view-button {
      font-size: 8px !important;
      padding: 2px 4px !important;
    }
}


@media (max-width: 350px) {
  th:nth-child(5),  /* Targets the "Damage" column header */
  td:nth-child(5) {  /* Targets the "Damage" column cells */
    display: none;
  }
}

  


  @media (max-width: 500px) {
    .container-table h1 {
      font-size: 1.5rem; /* Adjust header font size */
      margin-bottom: 28px; /* Reduce bottom margin */
    }
    


  }


  
  .modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  }



  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 40px;
    border: 1px solid #333;
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 85vh;
  }

#modal-details h2, #modal-details h3 {
  text-align: left;
  margin-bottom: 30px;
  margin-left: 25px;
}

#modal-details h3 {
  text-align: center;
  margin-bottom: 30px;
  margin-left: 0px;
  margin-top: 30px;
}


#modal-details p {
  margin-left: 25px;
  font-size: 16px;
  color: #333;
  text-align: left;
  margin-bottom: 15px; /* Adds vertical spacing */
}

@media(max-width:500px){

  #modal-details h2 {
    text-align: left;
    margin-bottom: 30px;
    margin-left: 10px;
  }

  #modal-details p {
    margin-left: 10px;
    font-size: 14px;
    color: #333;
    text-align: left;
    margin-bottom: 5px; /* Adds vertical spacing */
  }
  .modal-content{
    padding: 30px;
  }
}

@media(max-width:400px){

  #modal-details h2 {
    text-align: left;
    margin-bottom: 30px;
    margin-left: 0px;
  }

  #modal-details p {
    margin-left: 0px;
    font-size: 13px;
    color: #333;
    text-align: left;
    margin-bottom: 5px; /* Adds vertical spacing */
  }

  .modal-content{
    padding: 20px;
  }
}

.modal-content img {
  width: 100%; /* Make image width responsive */
  height: auto; /* Maintain aspect ratio */
  display: block;
  border-radius: 5px; /* Optional for rounded corners */
}

#modal-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center align for responsiveness */
  gap: 20px; /* Adjust gap for smaller screens */
  padding: 10px; /* Adjust padding for better spacing */
}

#modal-photos img {
  width: 100%; /* Default to 100% of container */
  max-width: 550px; /* Limit maximum width */
  height: auto; /* Maintain aspect ratio */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  #modal-photos {
    gap: 10px; /* Reduce gap for smaller screens */
    padding: 5px; /* Less padding on smaller screens */
  }

  #modal-photos img {
    max-width: 100%; /* Scale images for smaller screens */
  }
}

@media (max-width: 480px) {
  #modal-photos {
    flex-direction: column; /* Stack items vertically on very small screens */
    align-items: center; /* Center align images */
  }

  #modal-photos img {
    width: 90%; /* Shrink images further on small devices */
  }
}


.close-button {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover {
  color: #000;
}


@media (max-width: 650px) {
  .view-button{
    font-size: 12px !important; /* Adjust font size */
    padding: 2px 10px !important; /* Padding for a button-like appearance */
  }
}

@media (max-width: 550px) {
  .view-button{
    font-size: 12px !important; /* Adjust font size */
    padding: 7px 10px !important;
  }
}

@media (max-width: 450px) {
  .view-button{
    font-size: 10px !important; /* Adjust font size */
    padding: 5px 7px !important;
  }
}





.view-button {
  background-color: #801b1b; /* Vibrant red color */
  color: white; /* Text color */
  border: none; /* Remove default border */
  border-radius: 5px; /* Rounded corners */
  padding: 10px 16px; /* Padding for a button-like appearance */
  font-size: 14px; /* Adjust font size */
  cursor: pointer; /* Show pointer cursor on hover */
  margin-top: 0px;
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

.view-button:hover {
  background-color: #ab2424; /* Darker red on hover */
}
