@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

/* Reset and global font style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {

  color: #dadada;
  font-size: 16px;
  line-height: 1.6;
  padding: 20px;
  margin: 0; /* Remove default margin */
  padding: 0;

  background: rgba(0, 0, 0, 0.7) url("../background/background7.jpg");
  background-blend-mode: darken;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  min-height: 100vh;
  
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px; /* Spacing between header and table */
  padding-right: 15%;
  padding-left: 15%;
}


.above-button-container {
  display: flex;
  gap: 0.5rem; /* Space between the buttons */
}


h2{
  display: flex;
  text-align: cenetr;
  margin:0;
  width: 100%;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
}

#filtering-container{
  margin: 20px 25px 25px;
  margin-bottom: 0px;
}
/* Two-column layout for each filter row */
.filter-row {
  display: grid;
  grid-template-columns: 1fr 0fr;
  gap: 10px; /* Spacing between columns */
  align-items: center; /* Align inputs and buttons vertically */

}

/* Ensure inputs/selects expand fully in their column */
.filter-input-container input,
.filter-input-container select {
  height: 50px;
  width: 100%;
  outline: none;
  padding-left: 10px;
  border-radius: 5px;
  border: 1px solid #f7a600;
  font-size: 18px;
  color:#3c3b42;
}

/* Style for clear buttons */
.clear-filter {
  height: 50px; /* Match input height */
  width: 50px; /* Square button */
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex; /* Center icon in button */
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 20px;
  font-weight: 500;
  background: #f7a600;
  border: 1px solid #f7a600;
  border-radius: 5px;
  color: #fff;
  margin-top:38px;
}

.filter-button-containter {
  margin: 0;
  padding:0;
}
.clear-filter:hover {
  background: #f59402;
}

/* Main headings */
p {
  margin-bottom: 10px;
  font-size: 18px;
}

/* Button styles */
button {
  height: 50px;
  width: 100px;
  background-color: #f7a600;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #f59402;
}

#back-button {
  margin-top: 25px;
  margin-bottom: 25px;
  width: 440px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}

.modal-content {
  background-color: #242733;
  margin: 50px auto;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

.info-modal-content {
  background-color: #242733;
  margin: 50px auto;
  border-radius: 8px;
  width: 80%;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

/* Table styling */
table {
  width: 70%;
  margin: 20px auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background-color: #ffffff;
  border: none;
}

th {
  background-color: #f7a600;
  color: #fff;
  padding: 15px;
  font-size: 20px;
  text-align: center;
  font-weight: 600;
  border: none;
}

td {
  padding: 15px;
  text-align: center;
  font-size: 18px;
  color: #3c3b42;
  border: none;
  vertical-align: middle;
}

tbody tr:nth-child(odd) td {
  background-color: #f9f9f9;
}

tbody tr:nth-child(even) td {
  background-color: #ffffff;
}

tbody tr:hover td {
  background-color: #e6e6e6;
}

thead {
  border-bottom: none;
}

#pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 50px;
}

button[disabled] {
  background-color: #f7a600;
  cursor: not-allowed;
}

.delete-btn {
  width: 40px;
  height: 40px;
  background: #f7a600;
  color: white;
  border: none;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.delete-btn i {
  font-size: 20px;
}

.delete-btn:hover {
  background: #f59402;
}

.title{
  height: 90px;
  background: #f7a600;
  border-radius: 5px 5px 0 0;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:0;
  font-size: 30px;
}

label {
  display: block;
  font-size: 18px;

  margin-top: 10px;
}

.filter-container {
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 30px;
}

.button-container{
  display: flex;
  align-items: center;
  justify-content: center; 
  width: 100;
  padding-left: 25px;
  padding-right: 25px;
  padding-bottom: 25px;
  padding-top: 25px;
}

#apply-filter-button {

  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#close-filter-button{
  width:  100%;
  display: block;
  margin-left: 15px;
  margin-right: 15px;
}

#clear-all-filters-button {
  width:  100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#trade-info-content {
  width : 100%;
}
#info-container{
  width: 100%;
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 30px;
}
#photo{
  max-width: 100%;
  border-radius: 8px;
}

#close-info-button{
    width: 100%;
    display: block;
    margin-right: 12.5px;
}
#edit-trade-button {
  width: 100%;
  display: block;
  margin-left: 12.5px;
}
#save-trade-button {
  width: 100%;
  display: block;
  margin-left: 12.5px;
}