* {
    margin: 0px;
    padding: 0px;
    font-family: Poppins, Arial, Helvetica, sans-serif;
}

body {
    background-color: #e4e4e4;
}

.nav-bar-div {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80px;
    width: 100%;
    border-bottom: 1px solid #e4e4e4;
}

.name {
    font-size: 35px;
    font-weight: 900;
    font-family: cursive;
    letter-spacing: -2px;
    margin-left: 20px;
    padding-bottom: 5px;
}

.nav-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    margin-left: 40px;
    padding-top: 5px;
    color: #707070;
}

.dashboard:hover,
.incomes:hover,
.investments:hover,
.expenses:hover,
.analytics:hover {
    cursor: pointer;
    color: #000000;
}

.dashboard,
.incomes,
.investments,
.expenses,
.analytics {
    transition: font-weight 0.2s ease;
}

.welcome-message {
    display: flex;
    align-items: center;
    text-align: center;
    margin-left: 30%;
    height: 70vh;
    width: 40vw;
    font-size: 15px;
    color: #000000;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Menu */

.current-balance-container {
    display: flex;
    align-items: center;
    height: 120px;
    width: 100%;
    background-color: rgb(245, 245, 242);
    overflow: hidden;
}

.current-balance-div {
    display: flex;
    align-items: center;
    height: 60%;
    width: 30%;
    background-color: rgb(87, 192, 1);
    margin-left: 25px;
    border-radius: 7px;
    overflow: hidden;
    white-space: nowrap;
}

.current-balance-div-color {
    background-color: rgb(192, 1, 1);
}

.coins {
    font-size: 35px;
    color: white;
    margin-left: 20px;
}

.actual-amount {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.current-balance-text {
    color: #e0e0e0;
    font-size: 12px;
    margin-top: 3px;
    margin-left: 1px;
}

.current-balance {
    color: white;
    font-weight: 600;
    font-size: 20px;
    margin-top: -5px;

}

.boxes {
    display: flex;
    justify-content: space-evenly;
    margin-top: 80px;
    margin-bottom: 60px;
}

.total-income-container,
.total-expense-container,
.total-investment-container {
    width: 30vw;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.total-income-div,
.total-expense-div,
.total-investment-div {
    text-align: center;
}

.total-income-text,
.total-expense-text,
.total-investment-text {
    font-weight: 600;
    color: rgb(80, 80, 80);
}

.currency-code {
    font-size: 24px;
    text-align: center;
    word-break: break-word;
    margin-top: 30px;
}

.total-income,
.total-expense,
.total-investment {
    font-size: 40px;
    text-align: center;
    font-weight: 900;
    word-break: break-word;
    padding: 10px;
    padding-bottom: 60px;
    margin-top: -20px;
}

.hide {
    display: none !important;
}

/* Incomes, Dashboard & Analytics menu */

.container {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 30px;
}

.side-bar {
    height: 70vh;
    width: 20vw;
    background-color: white;
    margin-top: 30px;
    border: none;
    border-radius: 5px;
    overflow: hidden;
}

.side-bar-text {
    font-size: 25px;
    font-weight: 900;
    margin-top: 15px;
    margin-left: 20px;
}

.add-btn-side-bar {
    width: 80%;
    height: 35px;
    background-color: rgb(82, 180, 2);
    color: white;
    border: none;
    border-radius: 20px;
    outline: none;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.add-btn-side-bar:hover,
.save-btn:hover {
    background-color: rgb(69, 151, 1);
}

.select-currency {
    text-align: center;
    font-size: 12px;
    margin-top: 25px;
}

.currency-selecter-div {
    text-align: center;
    margin-top: 3px;
}

.currency-selecter {
    padding: 5px 5px;
    font-size: 9px;
    border: 1px solid #eeeeee;
    border-radius: 10x;
    background-color: #ffffff;
    color: #333;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: 0.2s;
    outline: none;
}

.currency-selecter:hover {
    background-color: #faf9f9;
    border: 1px solid #ffffff;
}

.slides {
    width: 75vw;
    min-height: 70vh;
    margin-top: 30px;
}

.slide {
    position: relative;
    width: 75vw;
    height: 70px;
    background-color: white;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slide:hover {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.name-of-activity {
    position: absolute;
    left: 25px;
    font-weight: 600;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 250px;
}

.amount-of-activity {
    position: absolute;
    left: 380px;
    font-size: 15px;
    white-space: nowrap;
}

.edit-del-btns {
    position: absolute;
    right: 25px;
    display: flex;
    gap: 5px;
}

.edit-btn,
.del-btn {
    width: 70px;
    height: 30px;
    text-align: center;
    background-color: transparent;
    color: rgb(69, 151, 1);
    border: 1px solid rgb(69, 151, 1);
    border-radius: 20px;
    outline: none;
    cursor: pointer;
    transition: 0.2s;
}

.del-btn {
    width: 75px;
    color: rgb(255, 0, 0);
    border: 1px solid rgb(255, 0, 0);
}

.edit-btn:hover {
    background-color: rgba(115, 255, 0, 0.5);
}

.del-btn:hover {
    background-color: rgba(255, 0, 0, 0.2);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.window {
    height: fit-content;
    width: 35vw;
    padding-bottom: 4rem;
    background-color: white;
    top: 0px;
    left: 0px;
    position: fixed;
    z-index: 9999;
    margin-left: 50%;
    transform: translateX(-50%) translateY(25%);
    border-radius: 5px;
}

.upper-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 100px;
    height: 60px;
    width: 100%;
    background-color: #f8f7f7;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #d8d8d8;
}

.upper-section-text {
    font-size: 18px;
    color: rgb(46, 46, 46);
}

.upper-section-cross {
    font-size: 18px;
    color: rgb(46, 46, 46);
    cursor: pointer;
}

.name-input {
    margin-left: 20%;
    margin-top: 50px;
}

.name-of-input {
    font-size: 12px;
    color: rgb(46, 46, 46);
}

.input-itself {
    height: 40px;
    width: 70%;
    outline: none;
    border: 1px solid #acacac;
    border-radius: 5px;
    padding-left: 10px;
    margin-top: 3px;
}

.input-itself:focus {
    border: 1px solid rgb(69, 151, 1);
}

.input-itself:hover {
    border: 1px solid rgb(69, 151, 1);
}

.save-btn {
    width: 70%;
    height: 35px;
    background-color: rgb(82, 180, 2);
    color: white;
    border: none;
    border-radius: 20px;
    outline: none;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 60px;
    cursor: pointer;
    transition: 0.2s;
}

/* Analytics menu */

.graph-section {
    width: 65vw;
    height: 70vh;
    background: white;
    border-radius: 10px;
    margin-left: 50%;
    transform: translateX(-50%) translateY(12%);
    overflow: hidden;
    position: relative;
}

.graph-title {
    font-size: 20px;
    margin-top: 30px;
    margin-left: 30px;
    color: black;
}

.graph-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 50px;
    margin-left: 50%;
    transform: translateX(-85%) translateY(13%);
}

.y-axis {
    height: 300px;
    width: 3px;
    position: relative;
}

.y-axis::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, #667eea, rgba(102, 126, 234, 0.1));
}

.bar-graph {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    gap: 50px;
}

.bar-graph::before {
    content: '';
    position: absolute;
    bottom: -15px;
    width: 650px;
    height: 1px;
    background: linear-gradient(to left, #667eea, rgba(102, 126, 234, 0.1));
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.bar-wrapper {
    height: 300px;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.bar {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100px;
    height: 0;
    color: #fff;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar:hover {
    transform: scaleX(1.05) scaleY(1.02);
    filter: brightness(1.3);
}

.bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bar:hover::before {
    opacity: 1;
}

.income-bar {
    background: linear-gradient(135deg, #2979ff 0%, #1565c0 50%, #0d47a1 100%);
}

.expense-bar {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 50%, #8e0000 100%);
}

.investment-bar {
    background: linear-gradient(135deg, #00c853 0%, #00a046 50%, #007b35 100%);
}

.current-bar {
    background: linear-gradient(135deg, #ff9800 0%, #fb8c00 50%, #ef6c00 100%);
}

.bar-label {
    font-size: 9px;
    padding: 6px 12px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    position: relative;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar:hover .bar-label {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
}

.bar-title {
    margin-top: 18px;
    text-align: center;
    color: #333;
    font-weight: 600;
    font-size: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.stats-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 5px;
    background: transparent;
    color: rgb(63, 59, 59);
    font-size: 10px;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateY(-10px);
}

.stats-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-radius: 10px;
    filter: blur(40px);
    background: linear-gradient(135deg,
            rgba(41, 121, 255, 0.6),
            rgba(211, 47, 47, 0.6),
            rgba(0, 200, 83, 0.6),
            rgba(255, 152, 0, 0.6));
}

.graph-section:hover .stats-overlay {
    opacity: 1;
    transform: translateY(0);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    gap: 20px;
}

/* (992px - 1199px) */

@media (max-width: 1199px) {
    .current-balance-div {
        width: 40%;
    }

    .select-currency {
        margin-top: 10px;
    }

    .currency-selecter-div {
        margin-top: -15px;
    }

    .currency-selecter {
        padding: 4px 4px;
        font-size: 8px;
        font-weight: 600;
    }

    .select-currency {
        padding: 15px 15px;
    }

    .amount-of-activity {
        left: 330px;
    }

    .upper-section {
        gap: 100px;
    }

    .graph-section {
        width: 80vw;
    }

    .bar-graph::before {
        width: 650px;
    }

    .window {
        width: 45vw;
    }
}

/* (768px - 991px) */
@media (max-width: 991px) {
    .nav-bar {
        font-size: 15px;
        gap: 30px;
        margin-left: 35px;
    }

    .name {
        font-size: 30px;
        margin-left: 15px;
    }

    .welcome-message {
        margin-left: 25%;
        width: 50vw;
    }

    .current-balance-div {
        width: 60%;
    }

    .boxes {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .total-income-container,
    .total-expense-container,
    .total-investment-container {
        width: 80vw;
        min-height: 36vh;
        max-height: fit-content;
    }

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

    .side-bar {
        width: 90vw;
        height: auto;
        padding-bottom: 40px;
        margin-bottom: 15px;
    }

    .slides {
        width: 90vw;
    }

    .slide {
        width: 90vw;
        height: 70px;
    }

    .name-of-activity {
        font-weight: 600;
        font-size: 15px;
    }

    .amount-of-activity {
        margin-left: -50px;
        font-size: 13px;
    }

    .edit-btn,
    .del-btn {
        width: 60px;
        height: 25px;
        font-size: 10px;
        padding-top: 1px;
    }

    .del-btn {
        width: 65px;
    }

    .window {
        width: 50vw;
    }

    .upper-section {
        gap: 100px;
    }

    .graph-section {
        width: 90vw;
        height: 70vh;
    }

    .graph-title {
        font-size: 20px;
        margin-left: 40px;
    }

    .graph-wrapper {
        transform: translateX(-80%) translateY(13%);
        gap: 40px;
    }

    .bar-graph {
        gap: 50px;
    }

    .bar-graph::before {
        width: 550px;
    }

    .bar {
        width: 80px;
    }

    .bar-title {
        margin-top: 15px;
        font-size: 10px;
    }

    .stats-overlay {
        padding: 1px;
        font-size: 8px;
    }
}

/* (600px - 767px) */
@media (max-width: 767px) {
    .nav-bar {
        gap: 15px;
        margin-left: 25px;
        font-size: 12px;
    }

    .name {
        font-size: 30px;
        margin-left: 15px;
    }

    .welcome-message {
        margin-left: 10%;
        width: 80vw;
        font-size: 12px;
    }

    .current-balance-container {
        height: 110px;
        justify-content: center;
    }

    .current-balance-div {
        width: 80%;
        margin-left: 0;
    }

    .coins {
        font-size: 25px;
        margin-left: 20px;
    }

    .current-balance {
        font-size: 16px;
    }

    .boxes {
        margin-top: 50px;
    }

    .total-income,
    .total-expense,
    .total-investment {
        font-size: 35px;
    }

    .side-bar {
        width: 85vw;
        height: auto;
        padding-bottom: 30px;
    }

    .side-bar-text {
        font-size: 18px;
    }

    .slides {
        width: 90vw;
    }

    .slide {
        width: 90vw;
        height: 100px;
        padding-top: 3px;
        padding-bottom: 9px;
        flex-direction: column;
        justify-content: center;
        position: relative;
    }

    .amount-of-activity {
        font-size: 14px;
    }

    .name-of-activity {
        position: static;
        margin-bottom: 5px;
        font-size: 12px;
    }

    .amount-of-activity {
        position: static;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .edit-del-btns {
        position: static;
        margin-left: 0;
        justify-content: center;
    }

    .window {
        width: 60vw;
    }

    .graph-section {
        width: 90vw;
        height: 55vh;
        margin-top: 35px;
    }

    .graph-title {
        font-size: 20px;
        margin-left: 30px;
        margin-top: 25px;
    }

    .graph-wrapper {
        transform: translateX(-80%) translateY(20%);
        gap: 30px;
    }

    .y-axis {
        height: 220px;
    }

    .bar-graph {
        height: 160px;
        gap: 25px;
    }

    .bar-label {
        font-size: 8px;
        font-weight: 100;
    }

    .bar-graph::before {
        width: 440px;
    }

    .bar-wrapper {
        height: 200px;
    }

    .bar {
        width: 70px;
    }

    .bar-title {
        font-size: 10px;
    }

    .stats-overlay {
        padding: 1px;
        font-size: 8px;
    }
}

/* (480px - 599px) */
@media (max-width: 599px) {
    .nav-bar-div {
        text-align: center;
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 5px;
    }

    .nav-bar {
        gap: 20px;
        font-size: 13px;
        margin-top: 5px;
        margin-right: 20px;
    }

    .name {
        font-size: 25px;
        margin-right: 10px;
    }

    .welcome-message {
        margin-left: 12%;
        width: 75vw;
        font-size: 11px;
        height: 65vh;
    }

    .coins {
        margin-left: 20px;
    }

    .current-balance-text {
        font-size: 10px;
    }

    .current-balance {
        font-size: 15px;
    }

    .currency-code {
        padding-top: 5%;
    }

    .side-bar-text {
        font-size: 16px;
    }

    .name-of-activity {
        font-size: 14px;
    }

    .edit-btn,
    .del-btn {
        width: 60px;
        height: 25px;
        font-size: 10px;
    }

    .del-btn {
        width: 65px;
    }

    .window {
        width: 75vw;
        margin-top: 30px;
    }

    .name-input {
        margin-top: 40px;
    }


    .graph-section {
        width: 90vw;
        height: 43vh;
        margin-top: 50px;
    }

    .graph-title {
        font-size: 16px;
        margin-left: 20px;
        margin-top: 20px;
    }

    .graph-wrapper {
        transform: translateX(-80%) translateY(25%);
        gap: 30px;
    }

    .y-axis {
        height: 155px;
    }

    .bar-graph {
        height: 150px;
        gap: 30px;
    }

    .bar-graph::before {
        width: 330px;
    }

    .bar-wrapper {
        height: 150px;
    }

    .bar {
        width: 35px;
    }

    .bar-title {
        font-size: 8px;
        font-weight: 100;
        margin-top: 10px;
    }

    .final-bar-title {
        margin-bottom: -10px;

    }

    .stats-overlay {
        font-size: 7px;

    }
}

/* (320px - 479px) */

/* Mobile menu toggle - hidden checkbox */
.mobile-menu-toggle {
    display: none;
}

.hamburger-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
    margin-left: auto;
}

.hamburger-icon span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

@media (max-width: 479px) {
    .nav-bar-div {
        height: 45px;
        flex-direction: column;
        align-items: flex-start;
        overflow: hidden;
        transition: height 0.3s ease;
    }

    .nav-bar-div .name {
        position: absolute;
        text-align: center;
        font-size: 30px;
    }


    .hamburger-icon {
        display: flex;
        position: absolute;
        top: 18px;
        right: 15px;
    }


    .nav-bar {
        position: absolute;
        top: 60px;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding-top: 10px;
        background-color: white;
        overflow: hidden;
        transition: height 0.3s ease;
        border-top: 1px solid #e4e4e4;
    }

    /* When checkbox is checked, expand the menu */
    .mobile-menu-toggle:checked~.nav-bar-div {
        height: 205px;
    }

    /* Animate 3 lines to X */
    .mobile-menu-toggle:checked~.nav-bar-div .hamburger-icon span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle:checked~.nav-bar-div .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle:checked~.nav-bar-div .hamburger-icon span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .current-balance-container {
        height: 80px;
    }

    .current-balance-div {
        width: 90%;
    }

    .coins {
        font-size: 20px;
        margin-left: 15px;
    }

    .actual-amount {
        margin-left: 10px;
    }

    .current-balance-text {
        font-size: 9px;
    }

    .current-balance {
        font-size: 12px;
    }

    .total-income,
    .total-expense,
    .total-investment {
        font-size: 25px;
    }

    .slides {
        width: 85vw;
    }

    .slide {
        width: 85vw;

    }

    .side-bar-text {
        font-size: 15px;
    }

    .add-btn-side-bar {
        width: 75%;
    }

    .window {
        width: 80vw;
        padding-bottom: 50px;
    }

    .upper-section {
        gap: 20px;
        height: 60px;
    }

    .upper-section-text {
        font-size: 15px;
    }

    .name-input {
        margin-top: 30px;
    }

    .save-btn {
        width: 75%;
        margin-top: 45px;
    }

    .graph-section {
        margin-top: 70px;
    }

    .graph-title {
        font-size: 16px;
        margin-left: 25px;
        margin-top: 20px;
    }

    .graph-wrapper {
        transform: translateX(-70%) translateY(30%);
        gap: 20px;
    }

    .y-axis {
        height: 150px;
    }

    .bar-graph {
        height: 120px;
        gap: 20px;
    }

    .bar-graph::before {
        width: 220px;
    }

    .bar-wrapper {
        height: 140px;
    }

    .bar {
        width: 25px;
    }

    .bar-title {
        font-size: 7px;
    }

}

/* (295px - 320px) */
@media (max-width: 319px) {
    .window {
        width: 90vw;
        margin-top: 50px;
    }

    .upper-section {
        height: 45px;
    }

    .upper-section-text {
        font-size: 13px;
    }

    .name-input {
        margin-top: 30px;
    }

    .save-btn {
        width: 70%;
    }

    .bar-graph {
        gap: 15px;
    }
}