@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
body{
    min-height: 100vh;
    background: linear-gradient(135deg, #0C7779, #3BC1A8);
}
.header{
   background:  #007bff;
   color: white;
   padding: 15px;
   display: flex;
   justify-content: space-between;
   align-items: center;
}
.dark-mode{
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.dashboard{
    display: flex;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
}
.card{
    background: white;
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    min-width: 200px;
}
.main-container{
    display: flex;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}
.form-section{
    background: white;
    padding: 20px;
  border-radius: 8px;
  flex: 1;
  min-width: 250px;
}
#transactionForm input, #transactionForm select{
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
}
.add-btn{
    background-color: #007bff;
    color: white;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
.add-btn:hover{
    background-color: rgb(3, 3, 45);
    color:white;
    transform: scale(1.05);
    opacity: 0.9;
}
.list-section{
    background: white;
    padding: 20px;
    border-radius: 8px;
    flex: 2;
    min-width: 300px;
}
.list-header{
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.filter input, .filter select{
    padding: 5px;
}
.transaction-list{
    list-style: none;
}
.transaction-list li{
    background: white;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 5px;
}
#emptyMsg{
  text-align: center;
  color: gray;
  padding: 20px;
}
.chart{
    background-color: white;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
}
.footer{
      background: #333;
  color: white;
  text-align: center;
  padding: 10px;
}
.footer p{
    font-size: 14px;
}
.footer a {
  text-decoration: none;   
  color:white;         
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline; 
  opacity: 0.8;
}

.dark{
  background: #121212;
  color: white;
}

.dark .card,
.dark .form-section,
.dark .chart{
  background: #1e1e1e;
  color: white;
}
.dark h2{
    color: white;
}
.dark .list-section{
    color: #000;
    background: #1e1e1e;
}
.dark input,
.dark select{
  background: #333;
  color: white;
}
#financeChart{
  max-width: 100%;
  height: 300px !important;
}
#exportBtn{
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
    transition: 0.3s;
    margin-bottom: 5px;
}
#exportBtn:hover{
    background-color: rgb(3, 3, 45);
    color:white;
    transform: scale(1.05);
    opacity: 0.9;
}
@media (max-width:600px){
    .header{
        flex-direction: column;
    }
    .main-container{
        flex-direction: column;
    }
    .list-header{
        flex-direction: column;
        gap: 8px;
    }
}