* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body {
  display: flex;
  height: 100vh;

  background-color: #f4f6f9;
  color: #333;
}

.sidebar {
  width: 250px;
  background: #1a237e;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.sidebar h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;

  font-weight: bold;
}
.sidebar .nav-links {
  list-style: none;
}

.sidebar .nav-links li {
  margin: 10px 0;
}
.sidebar .nav-links button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #283593;
  color: white;
  text-align: left;
    font-size: 1rem;

  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sidebar .nav-links button:hover {
    background: #3949ab;
}




#main {
  flex: 1;
    padding: 20px;
  overflow-y: auto;
}


.total, .account, .income-expense, .transactions {
  background: #fff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total:hover, .account:hover, .income-expense:hover, .transactions:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}
.total h1, .account h1, .transactions h1 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #222;
  font-weight: 600;

  border-left: 4px solid #4facfe;
  padding-left: 10px;
}

.total h4, .income-expense h4, .account p {
  font-size: 1.15rem;
  color: #444;
  margin: 8px 0;
}
.total {
  text-align: center;
  background: linear-gradient(135deg, #335577 0%, #1a237e 100%);
}



.total h1 {
  color: #fff;
  border: none;

  padding-left: 0;
}
.total h4 {
  font-size: 1.6rem;
  font-weight: bold;
   margin-top: 10px;
  color: #fff;
}

.income-expense {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #f9f9f9;
}


.income-expense h4:first-child {
  color: green;
  font-weight: 600;
}

.income-expense h4:last-child {
  color: red;
  font-weight: 600;
}
.account {
  background: #fafafa;
  border-left: 5px solid #4facfe;
}

.account p {
  font-size: 1rem;
  color: #555;
}
.transactions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.transactions ul li {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.transactions ul li:last-child {
  border-bottom: none;
}

.transactions ul li:hover {
  background: #f1f9ff;
}


.total, .account, .income-expense, .transactions {
  animation: fadeIn 0.6s ease-in-out;
}

.transactions ul {
  list-style: none;
}

.transactions li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.transactions li:last-child {
  border-bottom: none;
}

.Transfer {
  margin-bottom: 20px;
}



.Transfer h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a237e;
  margin-bottom: 15px;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}
.form input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease;
}

.form input:focus {
  border-color: #3949ab;
}
.form button {
  grid-column: span 2;
  padding: 12px;
  background: #1a237e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form button:hover {
  background: #3949ab;
}
.history {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


.history table {
  width: 100%;
  border-collapse: collapse;
}
.history th, 
.history td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.history th {
  background: #f4f6f9;

  font-weight: bold;
}


.history tr:hover {
  background: #f9f9f9;
}


.transaction {
  padding: 20px;
}

.transaction table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.transaction th,
.transaction td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.transaction th {
  background: #2c3e50;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.transaction tr:nth-child(even) {
  background-color: #f9f9f9;
}

.transaction tr:hover {
  background-color: #eef6ff;
  transition: background 0.2s ease-in-out;
}

.transaction td {
  font-size: 14px;
  color: #333;
}

.transaction td:first-child {
  font-weight: bold;
  color: #2c3e50;
}

.transaction td[colspan="6"] {
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: #666;
}
.profile {
  max-width: 400px;
  margin: 30px auto;
  padding: 20px 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  animation: fadeIn 0.4s ease-in-out;
}

.profile p {
  margin: 12px 0;
  font-size: 15px;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.profile p:last-child {
  border-bottom: none;
}

.profile p span {
  font-weight: bold;
  color: #1a73e8;
}
.account {
  max-width: 500px;
  margin: 30px auto;
  padding: 20px 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  animation: fadeIn 0.4s ease-in-out;
}

.account h1 {
  font-size: 18px;
  margin: 12px 0;
  font-weight: 500;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.account h1 span {
  font-weight: bold;
  color: #1a73e8;
}

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

  min-height: 70vh;
  background: linear-gradient(135deg, #426e9a 0%, #1a237e 100%);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);

  text-align: center;
  padding: 40px;
  animation: fadeIn 1s ease-in-out;
}

.welcome h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  letter-spacing: 1px;
}

.welcome p {
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.5;
  opacity: 0.9;
}

.login-box {
  max-width: 420px;
  margin: 50px auto;
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
}
