* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  background-color: rgb(241, 241, 241);


}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100px;
  border-radius: 16px;
  margin-top: 10px;
  background-color: rgb(49, 49, 239);
}

.title,
.date {
  color: white;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  font-weight: bold;
  margin-left: 40px;
}

.date {
  color: rgb(213, 192, 192);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-right: 10px;
}

.icon-image {
  width: 40px;
  height: 40px;
  margin-right: 5px;
}

.titles {
  margin-left: 10px;
  font-size: 25px;
  color: white;
}

main {
  width: min(1200px, calc(100% - 32px));
  height: 100vh;
  display: flex;
  flex-direction: column;



}

.sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 20px;
  padding: 0 10px;

}


.balance,
.income,
.transaction {
  height: 100px;
  width: auto;
  background-color: rgb(247, 245, 245);
  border-radius: 16px;



}

.balance {

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;

  border-left: 10px solid blue;
  box-shadow: 1px 1px 10px 1px blue;
}

p {
  margin: 0;
  font-size: 12px;
  margin-bottom: 10px;
  margin-left: 10px;
  color: rgb(54, 47, 47);
  font-weight: bold;
}

.b {
  margin: 0;
  color: blue;
  margin-left: 10px;
}

.income {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;

  border-left: 10px solid rgb(50, 161, 50);
  box-shadow: 1px 1px 10px 1px rgb(164, 143, 24);
}

.i {
  margin: 0;
  color: rgb(50, 161, 50);
  ;
  margin-left: 10px;

}


.transaction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;

  border-left: 10px solid red;
  box-shadow: 1px 1px 10px 1px rgb(244, 13, 40);
}

.t {
  margin: 0;
  color: red;
  margin-left: 10px;
}

.container {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 6%;
  margin-top: 20px;
  padding: 0 10px;
}


.new-transaction,

.category {
  padding: 15px;
  height: 520px;
  border: none;
  border-radius: 16px;
  background-color: rgba(246, 247, 250, 0.934);
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.182);
}

.transaction-container {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  min-width: 0;
  padding: 15px;
  height: 520px;
  overflow: hidden;
  border: none;
  border-radius: 16px;
  background-color: rgba(246, 247, 250, 0.934);
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.182);
}

@media (max-width: 768px) {

  .sections,
  .container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

input {
  width: 100%;
  height: 40px;
  border: 1px solid rgb(180, 157, 157);
  border-radius: 8px;
  padding: 10px;
  background-color: rgb(243, 235, 235);
  outline: none;
}

.item>p {
  margin-bottom: 5px;
  margin-top: 10px;
  margin-left: 0;
  color: rgb(161, 139, 139);
  font-size: 13px;
}

.in-balance>p {
  margin-bottom: 5px;
  margin-top: 10px;
  margin-left: 0;
  color: rgb(161, 139, 139);
  font-size: 13px;
}

.category-option>p {
  margin-bottom: 5px;
  margin-top: 10px;
  margin-left: 0;
  color: rgb(161, 139, 139);
  font-size: 13px;
}

.date>p {
  margin-bottom: 5px;
  margin-top: 10px;
  margin-left: 0;
  color: rgb(161, 139, 139);
  font-size: 13px;
}

.type-container>p {
  margin-bottom: 5px;
  margin-top: 10px;
  margin-left: 0;
  color: rgb(161, 139, 139);
  font-size: 13px;
}

.typs {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

}

.typs>button {
  width: 160px;
  height: 40px;
  border: 1px solid rgb(180, 157, 157);
  border-radius: 8px;
  cursor: pointer;

}





.add-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;

}

.add-btn>button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background-color: rgb(70, 70, 238);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.heads-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

}

.heads-container>select {
  width: 150px;
  height: 30px;
  border: none;
  outline: none;
  border-radius: 8px;
  background-color: rgb(207, 192, 192);
}

.buttons {
  display: flex;
  justify-content: center;
  height: 30px;
  gap: 10px;

}

.buttons>button {
  border: none;
  border-radius: 8px;
  background-color: rgb(220, 207, 207);
  cursor: pointer;

}

.category-option>select {
  width: 100%;
  height: 40px;
  border: 1px solid rgb(180, 157, 157);
  border-radius: 8px;
  padding: 10px;
  background-color: rgb(243, 235, 235);
  outline: none;
}



.transaction-container {
  position: relative;
}

.category>p {
  position: absolute;
  justify-content: center;
  align-items: center;
  bottom: 50%;
  left: 48%;
  transform: translate(-50%);
  color: rgba(157, 140, 140, 0.788);
  font-weight: normal;
}

.category {
  position: relative;

}

.expense-card {
  display: flex;
  align-items: center;
  min-height: 64px;
  height: auto;
  padding: 8px 0;
  border-bottom: 1px solid rgba(142, 116, 116, 0.301);

}

.cards,
.cards2,
.cards3 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.descript {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  height: auto;
  margin-left: 10px;


}

.descript>h3 {
  margin-bottom: 0px;
  margin-left: 0px;
  margin-top: 0px;
  display: flex;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.descript>p {
  display: flex;
  justify-content: start;
  margin-left: 0px;
  margin-bottom: 0px;
}

.categor {
  display: flex;

  flex-direction: row;
  justify-content: start;
  align-items: center;
}

.categor>p {
  margin-bottom: 0;
  color: rgb(159, 143, 143);
  font-weight: normal;
  margin-left: 1px;
}

.imgs {
  width: 15px;
  height: 15px;
}

.images {
  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;





}


.amount {
  width: auto;
  flex: 0 0 auto;

}

.amaounts {
  font-size: 16px;
  margin: 0;
  color: red;
}

.cards>p {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%);
  white-space: nowrap;
  color: rgba(157, 140, 140, 0.788);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
}

.income-text {
  color: green;
}

.expense-text {
  color: red;
}

.buttons button.active {
  background-color: #3333f0;
  color: white;
}



.transac.active {
  box-shadow: inset 0px 2px 40px 5px red;
  color: white;
  font-weight: bold;
}

.incom.active {
  box-shadow: inset 0px 2px 40px 5px rgb(0, 4, 255);
  color: white;
  font-weight: bold;

}

.category-row {
  margin-bottom: 20px;
}

.category-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
}

.category-bar {
  height: 8px;
  border-radius: 8px;
  background: #e5e7eb;
  overflow: hidden;
}

.category-fill {
  height: 100%;
  border-radius: 8px;
  background: #ef4444;
}

#category-top:not(:empty) {
  padding: 14px;
  border-radius: 10px;
  background: #d1d9f3;
  color: #4f46e5;
  font-weight: bold;
}

.icon-img {
  width: 20px;
  height: 25px;
}

.btn-delete{
  border: none;
  border-radius: 4px;
  width:20px ;
  height: 20px;
  background-color: rgba(202, 184, 184, 0.345);
  margin-left: 10px;
  cursor: pointer;
}

.btn-delete{
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-img{
  width: 15px;
  height: 15px;
}