.header{
  display:flex;
  align-items: center;
  background-color: #2C3E50;
  justify-content: space-between;
  color:white;
  font-weight: bold;
  padding:10px 30px;
  position:sticky;
  top:0;
  z-index:100;
}
.home_ul{
  list-style: none;
  display:flex;
  gap: 70px;
 /* margin: 0;*/
  padding: 0;
}
.home_ul li{
  font-size:16px;
  cursor:pointer;
   transition: color 0.3s ease;
}
.title{
  font-size:24px;
}
.title p {
  margin: 0;
}
.home_ul li:hover{
  color: #1abc9c;
}

.dropdown-filter {
  margin-bottom: 10px;
  font-size: 18px;
  color: #00796B;
  font-weight: bold;
}

#filterSelect {
  padding: 8px 14px;
  border: 2px solid #00796B;
  border-radius: 8px;
  font-size: 16px;
  background-color: #e0f7fa;
  color: #00796B;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
}

.sub_heading1,.sub_heading2{
  display: flex;
  justify-content: space-between;  
  align-items: center;            
  padding: 25px 80px 0 80px;      
  margin: 0;
  color: #00796B;                  
  font-weight: bold;
  font-size: 24px;
}

.cards {
  display: flex;
  padding: 10px 80px;  
  justify-content: space-between;           
  gap: 50px;                     
  flex-wrap: wrap;               
  margin: 0;
}

.card {
  background-color: #E0F7FA;
  width: 300px;
  height: 150px;
  border-radius: 12px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  display: flex;                  
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.table_{
   width:90%;
   border-collapse: collapse;
   margin:0 auto;
   text-align:center;  
}
.table_ thead{
   background-color: #37474F;
   color:white;
   font-size:20px;
   font-weight:bold;
}
.table_ tbody{
   font-size:20px;
}
.table_ tr {  
   border: 1px solid #ddd;
    height:50px;

}
.table_ th, .table_ td {
   height: 50px;
   padding: 12px 16px;
   border: none; 
   white-space: normal;     
   word-break: break-word; 
}

.sub_heading3,.sub_heading4{
  padding: 25px 80px 0 80px;      
  margin: 0;
  color: #00796B;                  
  font-weight: bold;
  font-size: 24px;
}


.borrower-card {
  background-color: #FFF3E0;
  border: 2px solid #FFCC80;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}
.borrower-card b {
  font-weight: bold;
}



.section4{
  display:flex;
  align-items: center; 
  width:90%;
  gap:50px;
  margin:0 auto;
}
.section4 textarea{
  width:900px;
  height:300px;
  font-size:24px;
}

.button{
  display:flex;
  flex-direction: column;
  gap:50px;
}
.btn {
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
  padding:10px;
  font-weight: bold;
  font-size: 24px;
}
.add {
  background-color: #26a69a;
  color: white;
}

.edit {
  background-color: #64d8cb;
  color: black;
}

.delete {
  background-color: #9e9e9e;
  color: black;
}
.btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
  transition: all 0.2s ease;
}
add:hover {
  background-color: #1f8e86;
}

.edit:hover {
  background-color: #4db6ac;
}

.delete:hover {
  background-color: #7e7e7e;
}


.footer {
  text-align: center;
  padding: 20px;
  font-size: 20px;
  color: #555;
  margin-top: 50px;
  border-top: 1px solid #ccc;
  background-color: #f9f9f9;
}

.footer a {
  color: #00796B;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
a {
    color: inherit;
    text-decoration: none;
  }
tr.give {
  background-color: #ffe6e6; /* Light red for 'give' */
  color: black;
  
}

tr.receive {
  background-color: #e6ffe6; /* Light green for 'receive' */
  color: black;
 
}

tr.give:hover,
tr.receive:hover {
  filter: brightness(95%);
  cursor: default;
}

/* General Reset & Font */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #F5F5F5;
  color: #333;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  background-color: #2C3E50;
  justify-content: space-between;
  color: white;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.title {
  font-size: 26px;
}

.home_ul {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
}

.home_ul li {
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.home_ul li:hover {
  color: #1abc9c;
}

/* Section Headings */
.sub_heading1,
.sub_heading2,
.sub_heading3,
.sub_heading4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 80px 10px;
  font-size: 24px;
  color: #00796B;
  font-weight: 700;
}

/* Dropdown */
.dropdown-filter {
  margin-top: 10px;
  font-size: 18px;
}

#filterSelect {
  padding: 8px 14px;
  border: 2px solid #00796B;
  border-radius: 8px;
  font-size: 16px;
  background-color: #e0f7fa;
  color: #00796B;
  margin-left: 10px;
  transition: 0.3s ease;
}
#filterSelect:hover {
  border-color: #004d40;
}

/* Card Section */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 80px;
}

.card {
  background: linear-gradient(135deg, #E0F7FA, #B2EBF2);
  width: 280px;
  height: 140px;
  border-radius: 16px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 20px;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: scale(1.03);
}
.card p:first-child {
  font-size: 20px;
}
.card p:last-child {
  font-size: 26px;
  font-weight: bold;
  margin-top: 10px;
}

/* Table */
.table_ {
  width: 90%;
  border-collapse: collapse;
  margin: 0 auto 40px;
  text-align: center;
}

.table_ thead {
  background-color: #37474F;
  color: white;
  font-size: 18px;
}

.table_ tbody {
  font-size: 18px;
}

.table_ tr {
  height: 50px;
  transition: background-color 0.2s ease;
}

.table_ tr.give {
  background-color: #ffe6e6;
}

.table_ tr.receive {
  background-color: #e6ffe6;
}

.table_ tr:hover {
  background-color: #f1f1f1;
}

.table_ th,
.table_ td {
  padding: 12px 16px;
  word-break: break-word;
}

/* Borrower Cards */
.borrower-card {
  background-color: #FFF3E0;
  border: 2px solid #FFCC80;
  border-radius: 12px;
  padding: 20px;
  width: 280px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.borrower-card:hover {
  transform: scale(1.03);
}

/* Notes Section */
.section4 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 30px 0;
  flex-wrap: wrap;
}

.section4 textarea {
  width: 800px;
  height: 250px;
  font-size: 20px;
  padding: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  resize: vertical;
}

.button {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.btn {
  padding: 12px 24px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.add {
  background-color: #26a69a;
  color: white;
}

.edit {
  background-color: #64d8cb;
  color: black;
}

.delete {
  background-color: #9e9e9e;
  color: white;
}

.btn:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 18px;
  background-color: #f1f1f1;
  border-top: 1px solid #ccc;
  color: #555;
}

.footer a {
  color: #00796B;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .section4 {
    flex-direction: column;
    align-items: center;
  }

  .section4 textarea {
    width: 90%;
  }

  .home_ul {
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
  }
}
