*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: #0D1F11;
    font-family: sans-serif;
}
.side-nav {
    width: 300px;
    height: 100vh;
    background-color: #1A3D2B;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    gap: 12mm;
    z-index: 3002;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.logout-btn{
  background-color: #ff4c4c;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
.side-nav.mobile {
    transform: translateX(-100%);
    box-shadow: none;
 }
.side-nav.mobile.open {
    transform: translateX(0);
    box-shadow: 2px 0 24px 0 rgba(0,0,0,0.18);
}
.side-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 3000;
    transition: opacity 0.3s;
}
@media (max-width: 900px) {
    .side-nav {
        width: 80vw;
        min-width: 220px;
        max-width: 350px;
        padding: 18px 10px;
        font-size: 1rem;
    }
    .side-nav-logo img {
        width: 55px;
    }
    .side-nav-footer a button, .investment-plans-btn, .balance-btn button {
        font-size: 15px;
        padding: 9px 18px;
    }
}
@media (max-width: 600px) {
    .side-nav {
        width: 95vw;
        min-width: 0;
        padding: 12px 4px;
    }
    .side-nav-logo img {
        width: 40px;
    }
}
.side-nav-logo{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.side-nav-logo img {
    width: 70px;
    height: auto;
}
.side-nav-logo h1 {
    font-size: 24px;
    color: #fff; 
}
.balance-section{
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.balance{
    background-color: #4CAF50;
    display: flex;
    gap: 7px;
    flex-direction: column;
    padding: 10px 5px;
    border-radius: 10px;
    text-align: center;
}
.balance p {
    font-size: 18px;
    color: #ffffff;
}
.balance-btn {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.balance-btn button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.investment-plans-btn{
    background-color: #1d501f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}
.side-nav-footer{
    margin-top: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4mm;
    color: #fff;
}
.side-nav-footer a{
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
.side-nav-footer a button{
    background-color: #ff4c4c;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.top-nav{
    width: calc(100% - 300px);
    height: 60px;
    background-color: #124128;
    position: fixed;
    top: 0;
    left: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    z-index: 3001;
    transition: left 0.3s, width 0.3s;
}

@media (max-width: 900px) {
    .top-nav {
        left: 0;
        width: 100vw;
        padding: 0 10px;
    }
}
@media (max-width: 600px) {
    .top-nav {
        height: 52px;
        font-size: 0.98rem;
        padding: 0 4px;
    }
    .top-nav div {
        gap: 6px;
    }
}

.top-nav div{
    display: flex;
    align-items: center;
    gap: 10px;
}
@media (max-width: 450px) {
    .top-nav{
        display: none
    }
}

.dashboard-content {
  margin-left: 320px; /* adjust if sidebar width changes */
  margin-top: 70px;   /* adjust if top nav height changes */
  padding: 2rem;
  min-height: calc(100vh - 70px);
  background: #12201a;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-welcome h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.dashboard-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-card {
  background: #1A3D2B;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 140px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-actions button {
  background: #2FB574;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.dashboard-actions button:hover {
  background: #27a368;
}

@media (max-width: 900px) {
  .dashboard-content {
    margin-left: 0;
    margin-top: 65px;
    padding: 1rem;
  }
  .dashboard-stats {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .dashboard-content {
    padding: 0.5rem;
    margin-top: 55px;
    gap: 1.2rem;
  }
  .dashboard-welcome h2 {
    font-size: 1.2rem;
  }
  .stat-card {
    padding: 1rem 0.5rem;
    font-size: 0.98rem;
  }
  .dashboard-actions button {
    padding: 0.7rem 1rem;
    font-size: 0.98rem;
  }
}
@media (max-width: 425px) {
  .stat-card {
    flex: 1 1 140px;
  }
}

.dashboard-welcome h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.dashboard-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-card {
  background: #1A3D2B;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  min-width: 140px;
  flex: 1 1 100px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-actions button {
  background: #2FB574;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.dashboard-actions button:hover {
  background: #27a368;
}

@media (max-width: 900px) {
  .dashboard-content {
    margin-left: 0;
    margin-top: 65px;
    padding: 1rem;
  }
  .dashboard-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

footer {
  background: #124128;
  color: #fff;
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
}