/* background-image: linear-gradient(25deg, #9d9ba9, #bab4aa, #d7ceaa, #f3e9aa) */

* {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    
}

body {
    background-color: #121212;
    color: #FFFFFF;
    font-size: normal;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background: #6c5ce7; */
  background-color: #1E293B;
  padding: 2rem;
  border-radius: 12px;
  color: white;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s;
  cursor: pointer;
}

.logo span:hover{
    color: #ffeaa7;
    
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  transition: all 0.3s;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffeaa7;
  transform: scale(1.01);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sign-btn {
    padding: 10px 15px;
    color: #0F172A;
    background:  #00FFC6;
    border: 1px solid #FFFFFF;
    font-weight: 700;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    transition: all 0.3s;
    margin-right: 10px;
    transition: all 0.3s;
}

.login-btn {
    padding: 10px 15px;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-weight: 700;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    transition: all 0.3s;
    margin-right: 10px;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.login-btn:hover, .sign-btn:hover {
    background: #FFFFFF;
    color: #1E293B;
    transform: scale(1.2);
} 

.login-btn:active, .sign-btn:active {
    background-color: #F4A300;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.home-text {
    background-color: #1A1E23;
    color: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #262B32;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
    margin-top: 20px;
    width: fit-content;
    max-width: 100%;
    max-height: auto;
    padding: 10px;
    margin-left: auto;
    margin-right: auto; 
     
    transition: all 0.3s; 
}

.home-text:hover {
    transform: scale(1.08);
}

.home-text h3 {
    padding: 8px;
    max-width: 100vw;
    font-size: 2rem;
    color: #00FFFF;
    font-weight: 700;
}

.tagline {
    font-size: 1.3rem;
    font-weight: 500;
    color: #B9F5FF;

}

.home-text-p{
    display: grid;
    padding: 2rem;
    font-size: 1.2rem;
    
}

/* Responsive */
@media (max-width:1250px){
    .home-text{
        display: flex;
        align-items: center;
        height: auto;
        width: auto;
        margin: 10px;
    }

    

}



@media (max-width: 900px){
    .col {
        width: 100% !important;
    }


    #charts {
        flex-direction: column !important;
        align-items: center !important;
    }

    canvas {
        width: 450px !important;
        height: 450px !important;
        margin: auto;
    }

    .navbar {
        width: 100% !important;
    }
}

@media (min-width: 460px) and (max-width: 760px){
    canvas {
    width: 250px !important;
    height: 150px !important;
    margin: auto;
  }

  .col {
    width: 100% !important;
    max-width: 700px !important;
  }

  .navbar {
    width: 100% !important;
  }

  .transactions-class {
    flex-direction: column !important;
    align-items: center !important;
  }

  .common, .common2 {
    width: 100% !important;
  }
  
  .home-text, .header {
    display: flex;
    align-items: center !important;
    width: 100vw !important;
    text-align: center;
  }

  .login-btn {
    margin-left: 10px;
  }

  #charts {
    flex-direction: column !important;
    align-items: center !important;
  }
  
}

@media (max-width: 700px) {
   canvas {
    width: 250px !important;
    height: 150px !important;
    margin: auto;
  }

  .col {
    width: 100% !important;
    max-width: 700px !important;
  }

  .navbar {
    width: 100% !important;
  }

  .transactions-class {
    flex-direction: column !important;
    align-items: center !important;
  }

  .common, .common2 {
    width: 100% !important;
  }
  
  .home-text, .header {
    display: flex;
    align-items: center !important;
    width: 100vw !important;
    text-align: center;
  }

  .login-btn {
    margin-left: 10px;
  }

  #charts {
    flex-direction: column !important;
    align-items: center !important;
  }
  

   
}
@media (max-width: 768px) {
   

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #6c5ce7;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
  }

  .header, .col {
    width: 100% !important;
  }

  .nav-links.active {
    display: flex;
  }

  canvas {
    width: 300px !important;
    height: 300px !important;
    margin: auto;
    text-align: center;
  } 


  .transactions-class {
    flex-direction: column !important;
    align-items: center !important;
  }

  .common, .common2 {
    width: 100% !important;
  }
  
  .home-text, .header {
    display: flex;
    align-items: center !important;
    width: 100vw;
    text-align: center;
  }
  
  #charts {
    flex-direction: column !important;
    align-items: center !important;
  }



  

  
}

.col {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3,1fr);
    margin-top: 20px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #d4af37;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    padding: 1.4rem;
    color: #f5f5f5;
    transition: all 0.3s;
    font-size: 1.4rem;
}

.card:hover {
    box-shadow: 0 0 32px 0 rgba(255,255,255,0.18), 0 0 12px 2px rgba(255,255,255,0.15);
    transform: translateY(-5px);
    cursor: pointer;
}

.card p{
    font-weight: 700;
}

.card-heading #totalIncome {
    color: #23CE6B;
}

.card-heading #totalExpense {
    color: #FF6F61;
}

.card-heading #totalBalance {
    color: #6BA4FF;
}

form {
    display: flex;
    flex-direction: column;
    max-width: fit-content;
    margin-top: 20px;
    align-items: flex-start;
    justify-content: space-around;
    padding: 10px;
    text-align: left;
    width: 100%;
    max-width: 400px;
    
    
}

.form-text {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 4px;
}

.trans-div:hover {
    cursor: pointer;
    transform: translateY(-5px);
}

.transactions-class {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 auto;
    width: 100%;
}

.common, .common2 {
    flex: 0  0 28%;
    
}



.side, .common2 {
    border: 1px solid #262B32;
    padding: 1rem;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-family: 600;
    background-color: #1A1E23;     
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.side2 {
    border: 1px solid #262B32;
    padding: 1rem;
    margin-top: 1.2rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-family: 1000;
    background-color: #1A1E23;     
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.common2 h4 {
    color: #00FFC6;
    font-size: 1.5rem;
    font-weight: 600;
}

.side:hover, .side2:hover {
    transform: scale(1.05);
    cursor: pointer;
    box-shadow: 0 0 32px 0 rgba(255,255,255,0.18), 0 0 12px 2px rgba(255,255,255,0.15);
}

.common2:hover {
    transform: translateY(-5px);
    cursor: pointer;
    box-shadow: 0 0 32px 0 rgba(255,255,255,0.18), 0 0 12px 2px rgba(255,255,255,0.15);
}

.trans-div {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    margin-top: 15px;
    padding-left: 4rem;
    padding-right: 4rem;
    background-color: #1A1E23;
    border-radius: 5px;
    color: #FFFFFF;
    border: 1px solid #262B32;
    transition: all 0.3s;
    width: 100%;
    
    
}

input {
    margin: 10px;
    border-radius: 5px;
    padding: 1rem;
    background-color: #23272E;
    color: #FFFFFF;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s;
}

input::placeholder {
    color: #FFFFFF;
}

input:hover, select:hover, input:active, select:active {
    box-shadow: 0 0 32px 0 rgba(255,255,255,0.18), 0 0 12px 2px rgba(255,255,255,0.15);
    transform: scale(1.2);
}

select {
    margin: 10px;
    padding: 1rem;
    background-color: #23272E;
    color: #333333;
    border: 2px solid #121212;
    border-radius: 5px;
    color: #FFFFFF;
    width: 200px;
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
}

select option {
    padding: 1rem;
    font-size: 1rem;
    color: #FFFFFF;
}


.submit-btn-class {
    padding: 10px 15px;
    background: linear-gradient(to right, #A3D8F4, #007BFF);
    box-shadow: 0 0 5px 2px rgba(0, 123, 255, 0.6), 0 0 5px 2px rgba(163, 216, 244, 0.6);
    border-radius: 10px;
    color: #1a1a1a;
    transition: all 0.3s;
    margin-top: 10px;
    width: 100%;
    margin-left: 5px;
    transition: all 0.3s;
}

.submit-btn-class:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

#charts {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: row;
    gap: 4rem;
    margin-top: 1.2rem;
    
}


.graphs, .graphs2 {
    background-color: #1A1E23;
    padding: 1rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    width: auto;
    border-radius: 10px;
    border: 1px solid #262B32;
    transition: all 0.3s;
}



.graphs:hover, .graphs2:hover {
    box-shadow: 0 0 32px 0 rgba(255,255,255,0.18), 0 0 12px 2px rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.graphs pre h4, .graphs2 pre h4 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;  
     
}

.graphs2 pre h4{
    
    padding: 0rem;
    font-size: 1.6rem;

}





form span {
    color: #121212;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

footer{
    background-color: #1E293B;
    max-width: 101vw;
    color: white;
    font-weight: bold;
    padding: 2rem;
    text-align: center;
    margin-top: 12px;
}

.side .highlight {
    color: #088E3C;
}

.highlight a {
    color: #FFD700;
    text-decoration: none;
}

.money-div{
    display: flex;
    align-items: center;
    justify-content: center;
}
.money h3{
    text-align: center;
}

canvas {
    border: 1px solid #d4af37;
    margin: 0 auto;
    padding: 1rem;
    
}

canvas::placeholder {
    color: #FFFFFF;
}

#money-list {
    
    list-style: upper-roman;
}

li {
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid #1E293B;
    border-radius: 5px;
    padding: 1.1rem;
    margin-bottom: 8px;
    transition: all 0.3s;
} 

li:hover {
    transform: scale(1.05);
    cursor: pointer;
}

#totalExpense, #totalIncome, #totalBalance {
    color: #f2f2f2;
    font-family: 700;
}

button:hover, input:hover, button:active, input:active, select:hover, select:active {
    cursor: pointer;

}
