/*Autors: Ralfs Riters; Galvenās lapas noformējumu CSS datne; 
Veidots: 2024. gadā, Jaunākā versija*/


/*Fonta iestatīšana*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}


/*Lapas galvenais noformējums*/
body {

  color: #dadada;
  padding: 20px;
  margin: 0;
  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;
  
}


/*"subkonta" sekcija*/
#account-section {
  display: flex;
  align-items: center;
  margin: 0 15%; 
  margin-top: 50px;
  margin-bottom: 15px;
}

/*Izrakstīšanās elements*/
#logout-link {
  left:0;
  height: 50px;
  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; 
  font-weight: 500;
  text-decoration: none;
}


#logout-link:hover {
  background: #f59402;
}

/*"Subkonta" konteineris*/
#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;

}

/*Poga uz iepriekšējo lapu*/
#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;
}


/*Galvenā nosaukuma konteineris*/
.header-container {
  display: flex; 
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 15%;
  height: 50px;
  position: relative;
  margin-left: 15%;
  margin-right: 15%;
}

/*sadaļa virs nosaukuma*/
.above-button-container {
  position: absolute;
  right: 0;
  display: flex;
}

/*nosaukuma noformejums*/
h2{
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 30px;
  font-weight: 600;
}

/*filtrēšanas konteineris*/
#filtering-container{
  margin: 20px 25px 25px;
  margin-bottom: 0px;
}

/*filtrēšanas rindas noformejums*/
.filter-row {
  display: grid;
  grid-template-columns: 1fr 0fr;
  gap: 10px; 
  align-items: center;

}

/*filtrēšanas atlases ievadlauku noformejums*/
.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;
}

/*filtra notirīšanas pogas noformejums*/
.clear-filter {
  height: 50px;
  width: 50px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  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;
}


.info-caption {
  margin-top: 10px;
  font-size: 18px;
}

/*vispārīgs pogas noformejums lapā*/
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;
}


/*modālais logs*/
.modal{
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  
}

/*modālā loga saturs*/
.modal-content {
  background-color: #242733;
  margin: 170px auto;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

/*informācijas modālā loga saturs*/
.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;
}

/*info loga nosaukums*/
#info-title {
  height: 90px;
  width: 100%;
  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;
  padding: 0;
  box-sizing: border-box;
}

/*tabulas nosaukums*/
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;
}

/*tabulas galva*/
th {
  background-color: #f7a600;
  color: #fff;
  padding: 15px;
  font-size: 20px;
  text-align: center;
  font-weight: 600;
  border: none;
}

/*tabulas konkrēta lauciņa noformējums*/
td {
  padding: 15px;
  text-align: center;
  font-size: 20px;
  color: #3c3b42;
  border: none;
  vertical-align: middle;
}

/*tabulas rindas  noformējums (nepāra)*/
tbody tr:nth-child(odd) td {
  background-color: #f9f9f9;
  color: #3c3b42;
}

/*tabulas rindas  noformējums (pāra)*/
tbody tr:nth-child(even) td {
  background-color: #ffffff;
  color: #3c3b42;
}

tbody tr:hover td {
  background-color: #e6e6e6;
}

thead {
  border-bottom: none;
}

/*darījuma virziens long*/
.long {
  color: #1ec124;
}

/*darījuma virziens short*/
.short {
  color: #f9321c;
}

/*tabulas pārsķiršanas noformējums*/
#pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 20px;
}

#prev-page{
width:110px;
}
#next-page{
  width:110px;
  }

button[disabled] {
  background-color: #f7a600;
  cursor: not-allowed;
}

/*dzēšanas pogas noformejums*/
.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;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/*kājenes noformējums*/
footer {
  margin-top: auto;
  text-align: center;
  padding: 10px 0;
  font-size: 16px;
  color: #dedede; 
  width: 100%;
}

/*uzlecošā loga atvēršanas poga*/
#open-form-button {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 20px;
font-weight: 900;
width:100px;
}
 /*filtrēšanas loga atvēršanas poga*/
#filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  width:100px;
  margin-right: 10px;
  }

  /*galvenais nosaukums*/
.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;
}

  /*ievadlauka nosaukums*/
label {
  display: block;
  font-size: 18px;

  margin-top: 10px;
}

  /*filtrācijas konteineris*/
.filter-container {
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 30px;
}

  /*aizvēršanas konteineris*/
.close-container {
  display: flex;
  justify-content: center;
  margin-bottom:25px;
}
  /*pogu konteineris*/
.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; 
}

  /*informācijas poga*/
#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;
}


  /*filtrācijas apstiprināšanas poga*/
#apply-filter-button {

  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

  /*filtrācijas aizvēršanas pogas konteineris*/
#close-info-button-container{
display:flex;
justify-content: center;
margin-bottom: 25px;
margin-top: 15px;
}


  /*informācijas aizvēršanas poga*/
#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;
}

  /*filtrācijas aizvēršanas poga*/
#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;
}
  /*visas filtrācijas atcelšanas poga*/
#clear-all-filters-button {
  width:  100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#trade-info-content {
  width : 100%;

}

  /*informācijas konteineris*/
#info-container{
  width: 100%;
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 20px;
}

  /*informācijas rindas noformejums*/
#info-container-rows{
  display: flex;
  font-size: 18;
  justify-content: center; 
  gap: 20px;
  justify-content: center;
}

  /*informācijas noformejums*/
.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;
  margin-bottom: 10px;
}

  /*procentu lauka noformejums*/
.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;
  margin-bottom: 10px;
}

  /*informācijas 1 kolonas noformejums*/
#info-column-1{
  width: 100%;
}
  /*informācijas 2 kolonas noformejums*/
#info-column-2{
  width: 100%;
}

  /*informācijas attēla noformejums*/
#photo{
  max-width: 100%;
  border-radius: 8px;
}

  /*informācijas rediģēšanas poga*/
#edit-trade-button {
  width: 100%;
  display: block;

}

  /*informācijas saglabāšanas poga*/
#save-trade-button {
  width: 100%;
  display: block;

}

#page-info{
  margin-left: 10px;
  margin-right:10px;
}