@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;
  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;
  
}

#account-section {
  display: flex;
  align-items: center;

  margin: 0 15%; /* Keeps alignment with account-container */
  margin-top: 50px; /* Same as account-container for vertical alignment */
  margin-bottom: 15px;
}

/* Styling for the logout button */
#logout-link {
  left:0;
  height: 50px; /* Matches the height of #account-container */
  width: 100px;
  background: #f7a600;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0 10px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px; /* Adds space between the logout button and the account-container */
  font-weight: 500;
  text-decoration: none;
}


#logout-link:hover {
  background: #f59402;
}

/* Adjustments for account-container to fit nicely */
#account-container {
  left:0;
  background: #ffffff;
  color: #3c3b42;
  border: 1px solid #f7a600;
  height: 50px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 25px;
  padding-right: 75px;
  width: fit-content;
  font-size: 20px;

}

#back-button {
  padding:0;
  position: absolute;
  right: 0;
  width: 50px;
  height: 50px;
  background: #f7a600;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

#back-button:hover {
  background: #f59402;
}

.header-container {
  display: flex; /* Align items in a row */
  justify-content: center; /* Center the heading */
  align-items: center; /* Vertically align buttons and heading */
  margin-bottom: 15px;
  padding: 0 15%; /* Adds side padding */
  height: 50px; /* Ensures consistent height */
  position: relative;
  margin-left: 15%;
  margin-right: 15%;
}

.above-button-container {
  position: absolute;
  right: 0; /* Position the buttons to the left side */
  display: flex;
}


h2{
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* Centers the heading */
  text-align: 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,
.edit-input {
  height: 50px;
  width: 100%;
  outline: none;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 5px;
  border: 1px solid #f7a600;
  font-size: 18px;
  color:#3c3b42;
}
::placeholder{
  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: 900;
  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 */
.info-caption {
  margin-top: 10px;
  font-size: 18px;
}

/* Button styles */
button {
  height: 50px;
  background-color: #f7a600;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 10px;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

button:hover {
  background-color: #f59402;
}


/* 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);
  
}

.modal-content {
  background-color: #242733;
  margin: 170px auto;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.info-modal-content {
  background-color: #242733;
  margin: 50px auto;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0; /* Ensure there's no padding causing overflow */
}

#info-title {
  height: 90px;
  width: 100%; /* Span the full width of the modal content */
  background: #f7a600;
  border-radius: 5px 5px 0 0;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0; /* Remove any default margin */
  padding: 0; /* Remove any default padding */
  box-sizing: border-box; /* Ensure padding and border are included in the width/height calculation */
}


/* 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: 20px;
  color: #3c3b42;
  border: none;
  vertical-align: middle;
}

tbody tr:nth-child(odd) td {
  background-color: #f9f9f9;
  color: #3c3b42;
}

tbody tr:nth-child(even) td {
  background-color: #ffffff;
  color: #3c3b42;
}

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;
}

#prev-page{
width:110px;
}
#next-page{
  width:110px;
  }

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;
}



#open-form-button {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 20px;
font-weight: 900;
width:100px;
}

#filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  width:100px;
  margin-right: 10px;
  }

.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;
}

.close-container {
  display: flex;
  justify-content: center; /* Centers the buttons in a row */
  margin-bottom:25px;
}

.button-container{
  display: flex;
  align-items: center;
  justify-content: center; 
  width: 100%;
  padding-left: 25px;
  padding-right: 25px;
  padding-bottom: 15px;
  padding-top: 25px;
  gap: 10px; 
}


#info-button-container{
  display: flex;
  align-items: center;
  justify-content: center; 
  width: 100%;
  padding-left: 25px;
  padding-right: 25px;
  margin-top: 20px;
  gap: 10px; 
  right: 0; /* Position the buttons to the left side */
}



#apply-filter-button {

  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#close-info-button-container{
display:flex;
justify-content: center;
margin-bottom: 25px;
margin-top: 15px;
}

#close-info-button{
  color: #f7a600;
    font-size: 20px;
    text-decoration: none;
    text-align: center;
    background: #242733;
    border: none;
    padding:0;
}
#close-info-button:hover{
    color: #f59402;
    cursor: pointer;
    text-decoration: underline;
}

#close-filter-button{
  color: #f7a600;
    font-size: 20px;
    text-decoration: none;
    text-align: center;
    background: #242733;
    border: none;
    padding:0;
}
#close-filter-button:hover{
  color: #f59402;
  text-decoration: underline;
  cursor: pointer;
}

#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: 20px;
}

#info-container-rows{
  display: flex;
  font-size: 18;
  justify-content: center; 
  gap: 20px;
  justify-content: center;
}

.info-values{
  height: 50px;
  width: 100%;
  outline: none;
  padding-left: 10px;
  border-radius: 5px;
  border: 1px solid #f7a600;
  font-size: 18px;
  color: #ffffff;
  background: #40434e;
  display: flex;
  align-items: center; /* Vertically aligns content */
  margin-bottom: 10px;
}

.info-values-percent {
  height: 50px;
  width: 100%;
  outline: none;
  padding-left: 10px;
  border-radius: 5px;
  border: 1px solid #f7a600;
  font-size: 18px;
  color: #ffffff;
  background: #40434e;
  display: flex;
  align-items: center; /* Vertically aligns content */
  margin-bottom: 10px;
}


#info-column-1{
  width: 100%;
}

#info-column-2{
  width: 100%;
}

#photo{
  max-width: 100%;
  border-radius: 8px;
}


#edit-trade-button {
  width: 100%;
  display: block;

}
#save-trade-button {
  width: 100%;
  display: block;

}

#page-info{
  margin-left: 10px;
  margin-right:10px;
}