/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 8pt;
    background-color: #f6f8fb;
}

body {
    min-height: 100vh;
    display: flex;
    background-color: #f6f8fb;
    color: #1f2937;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

button,
input {
    font-family: inherit;
}

.mobileMenuButton {
    display: none;
}


/* LEFT SIDEBAR */

.leftSidebar {
    width: 250px;
    min-width: 250px;
    height: 100vh;
    padding: 30px 22px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    border-right: 1px solid #e6eaf0;
}


/* PAGE INFO */

.leftSidebar .pageInfo {
    display: flex;
    align-items: center;
    gap: 13px;
    color: inherit;
    text-decoration: none;
}

.leftSidebar .pageInfo .pageIcon {
    width: 70px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background-color: #eef5ff;
}

.leftSidebar .pageInfo .pageIcon img {
    width: 34px;
}

.leftSidebar .pageInfo .pageText h1 {
    color: #172033;
    font-size: 2rem;
    font-weight: 700;
}

.leftSidebar .pageInfo .pageText h2 {
    margin-top: 3px;
    color: #8a94a6;
    font-size: 0.85rem;
    font-weight: 400;
}


/* NAVIGATION */

.navigation {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 45px;
    font-size: 1.6rem;
}

.navigation .button {
    height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    color: #70798a;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.navigation .button img {
    width: 21px;
    height: 21px;
    margin-right: 13px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.navigation .button:hover {
    background-color: #f3f7fc;
    color: #2b83fe;
}

.navigation .button:hover img {
    opacity: 1;
}

.navigation .button.active {
    background-color: #eef5ff;
    color: #2b83fe;
}

.navigation .button.active img {
    opacity: 1;
}


/* SIDEBAR QUOTE */

.leftSidebar .quotes {
    width: 100%;
    min-height: 170px;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    background-color: #f1f6fb;
    border-radius: 16px;
}

.leftSidebar .quotes img {
    width: 58px;
    margin-bottom: 12px;
    filter: none !important;
}

.leftSidebar .quotes span {
    color: #2b83fe;
    font-weight: 700;
}

p.quotesForLeftSidebar {
    display: flex;
    flex-direction: column;
    color: #566174;
    font-size: 1.2rem;
    line-height: 1.5;
}


/* MAIN AREA */

.bigContainer {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}


/* ACCOUNT ACTIONS */

.accountActionsContainer {
    min-height: 82px;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
}


/* SEARCH */

.searchForm {
    position: relative;
    width: 42px;
    height: 42px;
    transition: width 0.4s ease;
}

.searchForm input {
    width: 42px;
    height: 42px;
    padding: 0;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    outline: none;
    color: #263142;
    font-size: 1rem;
    transition:
        width 0.4s ease,
        border-color 0.3s ease,
        border-radius 0.4s ease,
        padding 0.2s ease,
        background-color 0.2s ease;
}

.searchForm input::placeholder {
    color: #9aa4b2;
}

.searchForm.active {
    width: 280px;
}

.searchForm.active input {
    width: 100%;
    padding: 0 48px 0 15px;
    background-color: #ffffff;
    border-color: #2b83fe;
    border-radius: 22px;
    box-shadow: 0 4px 14px rgba(43, 131, 254, 0.12);
}

.searchButton {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

.searchButton::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    top: 10px;
    left: 10px;
    border: 3px solid #687386;
    border-radius: 50%;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.searchButton::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 3px;
    top: 27px;
    left: 25px;
    background-color: #687386;
    border-radius: 3px;
    transform: rotate(45deg);
    transform-origin: left center;
    transition:
        transform 0.3s ease,
        background-color 0.2s ease;
}

.searchForm.active .searchButton::before {
    width: 23px;
    height: 3px;
    top: 20px;
    left: 10px;
    border: none;
    border-radius: 3px;
    background-color: #687386;
    transform: rotate(45deg);
}

.searchForm.active .searchButton::after {
    width: 23px;
    height: 3px;
    left: 13px;
    top: 28px;
    background-color: #687386;
    transform: rotate(-45deg);
}


/* ACCOUNT ICONS */

.accountActionsContainer .accountIcon {
    width: 23px;
    height: 23px;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.accountActionsContainer .accountIcon:hover {
    opacity: 1;
}

.accountActionsContainer .profilePicture {
    width: 36px;
    height: 36px;
    opacity: 1;
    cursor: pointer;
}


/* MAIN CONTAINER */

.mainContainer {
    padding: 5px 40px 40px;
    display: flex;
    gap: 30px;
}

.mainContentContainer {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}


/* PAGE SECTIONS */

.pageSection {
    width: 100%;
}

.pageHeading {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e9ef;
}

.pageHeading h2 {
    color: #172033;
    font-size: 2rem;
}

.pageHeading p {
    margin-top: 6px;
    color: #8a94a6;
    font-size: 1rem;
}

.emptyPage {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    color: #8a94a6;
}


/* BANNER */

.banner {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 18px;
}

.banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
}

.bannerText {
    position: absolute;
    top: 50%;
    left: 32px;
    max-width: 520px;
    transform: translateY(-50%);
    z-index: 1;
    color: #000000;
}

.bannerText span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.bannerText h1 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.15;
    font-weight: 700;
}

.bannerText p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}


/* SECTION HEADER */

.action {
    width: 100%;
    margin: 30px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action p {
    color: #172033;
    font-size: 2rem;
    font-weight: 700;
}

.addNewGoal {
    height: 42px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #2b83fe;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(43, 131, 254, 0.18);
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.addNewGoal:hover {
    background-color: #176fe8;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(43, 131, 254, 0.25);
}

.addNewGoal span {
    font-size: 20px;
}


/* GOALS GRID */

.goals {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}


/* NO GOALS */

.noGoals {
    grid-column: 1 / -1;
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    color: #8a94a6;
}


/* GOAL CARD */

.card {
    width: 100%;
    min-width: 0;
    min-height: 235px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(31, 41, 55, 0.05);
}


/* COMPLETION ANIMATION */

.card.goalCompleting {
    overflow: hidden;
    pointer-events: none;
    animation: completeGoalCard 0.8s ease forwards;
}

.card.goalCompleting .progressInfo,
.card.goalCompleting .progressBarContainer,
.card.goalCompleting .buttons {
    animation: hideCompletedGoalInfo 0.4s ease forwards;
}

@keyframes completeGoalCard {

    0% {
        opacity: 1;
        transform: scale(1);
        max-height: 500px;
    }

    60% {
        opacity: 1;
        transform: scale(0.98);
        max-height: 500px;
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
        margin: 0;
    }
}

@keyframes hideCompletedGoalInfo {

    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        height: 0;
        margin: 0;
        transform: translateY(10px);
    }
}


/* GOAL HEADER */

.goalInfo {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.goalPicture {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f5f6f8;
}

.goalPicture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.goalDetails {
    flex: 1;
    min-width: 0;
}

.titleAndSubtitleAndIcon,
.titleAndSubtitle {
    min-width: 0;
}

.goalTitle {
    margin: 0;
    overflow: hidden;
    color: #1f2937;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.goalSubtitle {
    margin: 4px 0 0;
    overflow: hidden;
    color: #8a94a6;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* GOAL OPTIONS */

.goal-options {
    position: relative;
    flex-shrink: 0;
}

.goal-options > p {
    width: 32px;
    height: 32px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #8a94a6;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.goal-options > p:hover {
    background-color: #f6f7f9;
    color: #4b5563;
}

.goal-options-menu {
    position: absolute;
    top: 38px;
    right: 0;
    z-index: 20;
    min-width: 145px;
    padding: 5px;
    background-color: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.08);
}

.goal-options-menu button {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 7px;
    background-color: transparent;
    color: #4b5563;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.goal-options-menu button:hover {
    background-color: #f6f7f9;
}

.goal-options-menu button[data-action="delete"] {
    color: #b85c63;
}


/* GOAL DATES */

.dates {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.startDate,
.endDate {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.startDate img,
.endDate img {
    width: 13px;
    height: 13px;
    opacity: 0.55;
}

.startDate p,
.endDate p {
    margin: 0;
    overflow: hidden;
    color: #a0a8b5;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* GOAL PROGRESS */

.progressInfo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
}

.progressInfo p {
    margin: 0;
    color: #8a94a6;
    font-size: 11px;
    font-weight: 600;
}

.progressInfo .currentSavings {
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
}

.progressInfo .percentage {
    color: #4b82e8;
    font-size: 11px;
    font-weight: 700;
}


/* PROGRESS BAR */

.progressBarContainer {
    width: 100%;
    height: 7px;
    margin-top: 8px;
    overflow: hidden;
    background-color: #edf0f4;
    border-radius: 999px;
}

.progressBar {
    height: 100%;
    background-color: #4b82e8;
    border-radius: inherit;
    transition: width 0.3s ease;
}


/* GOAL BUTTONS */

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 17px;
}

.buttons button {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 9px;
    color: #566174;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.buttons button:hover {
    background-color: #f8fafc;
    border-color: #cfd6df;
    color: #344054;
}

.buttons button span {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.buttons .addMoney {
    background-color: #ebf8f0;
    border-color: #cfd9e5;
    color: #3f6fae;
}

.buttons .addMoney:hover {
    background-color: #c0ffd8;
    border-color: #b9c8da;
    color: #315e96;
}

.buttons .removeMoney {
    background-color: #fff8f8;
    border-color: #dfe4ea;
    color: #6f7784;
}

.buttons .removeMoney:hover {
    background-color: #ffe6e6;
    border-color: #d1d6dc;
    color: #4b5563;
}


/* COMPLETED GOALS */

.completedGoalsSection {
    margin-top: 35px;
}

.completedGoalsHeader {
    margin-bottom: 15px;
}

.completedGoalsHeader h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
}

.completedGoals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.completedGoal {
    width: 100%;
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #e1e9e3;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
    animation: completedGoalEnter 0.5s ease forwards;
}

.completedGoalInfo {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.completedGoal .goalPicture {
    width: 55px;
    height: 55px;
}

.completedGoalDetails {
    flex: 1;
    min-width: 0;
}

.completedGoalDetails .goalTitle {
    font-size: 15px;
}

.completedGoalDetails .goalSubtitle {
    margin-top: 3px;
}

.completedGoalTarget {
    margin: 9px 0 0;
    color: #4d8a67;
    font-size: 12px;
    font-weight: 700;
}

.completedGoalDates {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-top: 6px;
}

.completedGoalDates p {
    margin: 0;
    color: #8a94a6;
    font-size: 10px;
}

@keyframes completedGoalEnter {

    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* RIGHT SIDEBAR */

.rightSidebar {
    width: 290px;
    min-width: 290px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rightSidebar > div {
    background-color: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(31, 41, 55, 0.04);
}


/* TOTAL SAVINGS */

.totalSavingsContainer {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.infoContainer {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.infoContainer img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.mainSide .title {
    color: #8a94a6;
    font-size: 1.1rem;
}

.mainSide .currentSavings {
    margin-top: 2px;
    color: #172033;
    font-size: 2.6rem;
    font-weight: 700;
}

.mainSide .totalGoalSavings {
    margin-top: 3px;
    color: #8a94a6;
    font-size: 1rem;
}

.totalSavingsContainer .progressBarContainer {
    margin: 20px 0 0;
}


/* TRANSACTIONS */

.transactionsList {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.transaction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    background-color: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
}

.transaction:last-child {
    border-bottom: none;
}

.transactionInfo {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transactionInfo strong {
    overflow: hidden;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transactionInfo small {
    color: #8a94a6;
    font-size: 11px;
}

.transactionAmount {
    flex-shrink: 0;
    font-weight: 700;
}

.transactionAmount.add {
    color: #3f6fae;
}

.transactionAmount.remove {
    color: #b85c63;
}

.noTransactions {
    padding: 40px 20px;
    text-align: center;
    color: #8a94a6;
}


/* TRANSACTION FILTERS */

.transactionFilters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.transactionTypeFilters {
    display: flex;
    gap: 6px;
    padding: 4px;
    background-color: #f0f3f7;
    border-radius: 10px;
}

.transactionFilter {
    padding: 9px 16px;
    border: none;
    border-radius: 7px;
    background-color: transparent;
    color: #667085;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.transactionFilter:hover {
    color: #2b83fe;
}

.transactionFilter.active {
    background-color: #ffffff;
    color: #2b83fe;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.transactionGoalFilter {
    min-width: 180px;
    padding: 10px 36px 10px 12px;
    border: 1px solid #d9dee7;
    border-radius: 9px;
    background-color: #ffffff;
    color: #344054;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}


/* TRANSACTION SUMMARY */

.transactionSummary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 22px 0;
}

.transactionSummaryCard {
    padding: 18px 20px;
    background-color: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
}

.transactionSummaryCard span {
    display: block;
    margin-bottom: 7px;
    color: #8a94a6;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.transactionSummaryCard strong {
    display: block;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
}


/* REPORTS */

.reportSummary {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 22px;
}

.reportGroup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reportGroupHeader h3 {
    margin: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
}

.reportGroupCards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.reportCard {
    min-width: 0;
    padding: 18px 20px;
    background-color: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
}

.reportCardInfo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reportCardInfo span {
    color: #8a94a6;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.reportCardInfo strong {
    overflow: hidden;
    color: #1f2937;
    font-size: 19px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reportCardInfo small {
    margin-top: -2px;
    color: #8a94a6;
    font-size: 11px;
}

.reportSection {
    margin-bottom: 24px;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.05);
}

.reportSectionHeader {
    margin-bottom: 22px;
}

.reportSectionHeader h3 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 1.1rem;
}

.reportSectionHeader p {
    margin: 0;
    color: #667085;
    font-size: 0.85rem;
}


/* REPORT GOAL PROGRESS */

.reportGoalProgress {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reportGoal {
    padding: 10px 20px;
    background-color: #f9f9f9;
    border: 1px solid #d6d9dc;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
}

.reportGoalHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reportGoalName {
    overflow: hidden;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reportGoalPercentage {
    flex-shrink: 0;
    color: #3f6fae;
    font-size: 14px;
    font-weight: 700;
}

.reportGoalAmounts {
    margin-top: 6px;
    color: #8a94a6;
    font-size: 11px;
}

.reportGoalBar {
    width: 100%;
    height: 7px;
    margin-top: 10px;
    overflow: hidden;
    background-color: #edf1f5;
    border-radius: 999px;
}

.reportGoalBarFill {
    height: 100%;
    background-color: #4b82e8;
    border-radius: 999px;
}

.reportGoalFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 5px;
    color: #8a94a6;
    font-size: 11px;
}

.reportGoalCompleted {
    border-color: #dcebe2;
}

.reportGoalCompleted .reportGoalPercentage {
    color: #4d8a67;
}

.reportGoalCompleted .reportGoalBarFill {
    background-color: #6fae86;
}


/* MONEY OVER TIME */

.reportMoneyOverTime {
    width: 100%;
    min-height: 380px;
    padding: 18px 20px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
}

.reportMoneyOverTime svg {
    width: 100%;
    height: 380px;
    display: block;
}

.reportChartGrid {
    stroke: #edf1f5;
    stroke-width: 1;
}

.reportChartLine {
    fill: none;
    stroke: #4b82e8;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reportChartPoint {
    fill: #ffffff;
    stroke: #4b82e8;
    stroke-width: 2;
    transition: transform 0.15s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.reportChartPoint:hover {
    transform: scale(1.5);
}

.reportChartLabel,
.reportChartDate {
    fill: #8a94a6;
}

.reportChartLabel {
    font-size: 11px;
}

.reportChartDate {
    font-size: 10px;
}


/* SETTINGS */

.settingsContent {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 22px;
}

.settingsSection {
    width: 100%;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
}

.settingsSectionHeader {
    margin-bottom: 18px;
}

.settingsSectionHeader h2,
.settingsSection h2 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
}

.settingsSectionHeader p,
.settingsSection > p {
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.settingsSection > p {
    margin-bottom: 20px;
}


/* SETTINGS BUTTONS */

.settingsButtons {
    display: flex;
    gap: 12px;
}

.settingsButtons button {
    height: 40px;
    padding: 0 18px;
    border: 1px solid #cfd9e5;
    border-radius: 9px;
    background-color: #ffffff;
    color: #3f6fae;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.settingsButtons button:hover {
    background-color: #f7faff;
    border-color: #b9c8da;
    color: #315e96;
    transform: translateY(-1px);
}


/* DANGER ZONE */

.dangerSection {
    border-color: #eadfe1;
}

.dangerSection .settingsSectionHeader {
    margin-bottom: 16px;
}

.deleteAllDataButton {
    height: 40px;
    padding: 0 16px;
    background-color: #ffffff;
    border: 1px solid #e1c9cc;
    border-radius: 9px;
    color: #b85c63;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.deleteAllDataButton:hover {
    background-color: #fff8f8;
    border-color: #d7b5b9;
    color: #a84f57;
}


/* LEGAL LINKS */

.settingsLinks {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.settingsLinks a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.settingsLinks a:hover {
    color: #315e96;
    text-decoration: underline;
}


/* SIDEBAR QUOTE */

.sidebarQuote {
    position: relative;
    padding: 32px 24px 22px;
    overflow: hidden;
    background-color: #eef6fe;
    border-radius: 14px;
}

.quoteSymbol {
    position: absolute;
    top: -8px;
    left: 14px;
    padding-top: 15px;
    color: #c8dff5;
    font-family: Georgia, serif;
    font-size: 50px;
    line-height: 1;
    pointer-events: none;
}

#sidebarQuoteText {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    margin-bottom: 14px;
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
}

#sidebarQuoteAuthor {
    position: relative;
    z-index: 1;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}


/* ADVERTISEMENT */

.adContainer,
.mobileAdContainer {
    width: 100%;
    min-height: 100px;
    aspect-ratio: 4 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    overflow: hidden;
}

.adContainer {
    max-height: 280px;
    margin: 20px 0;
}

.mobileAdContainer {
    display: none;
    margin: 20px 0;
}

.adContainer span,
.mobileAdContainer span {
    color: #94a3b8;
    font-size: 11px;
}


/* POPUP OVERLAY */

#darkOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1000;
}

#darkOverlay.darkOverlay {
    display: block;
}


/* POPUP */

.popupWindow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(560px, calc(100vw - 40px));
    max-height: 90vh;
    padding: 28px;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    animation: popupAppear 0.15s ease-out;
}

@keyframes popupAppear {

    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* MONEY FEEDBACK */

#moneyFeedback {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2000;
}

.moneyFeedbackBackground {
    position: absolute;
    inset: 0;
    animation: moneyFeedbackBackground 1.1s ease-out forwards;
}

.moneyFeedbackBackground.add {
    background-color: rgba(70, 170, 130, 0.12);
}

.moneyFeedbackBackground.remove {
    background-color: rgba(246, 120, 125, 0.12);
}

.moneyParticle {
    position: absolute;
    top: 55%;
    left: 50%;
    font-size: 30px;
    line-height: 1;
    user-select: none;
    animation: moneyParticleFly 1.1s ease-out forwards;
}

@keyframes moneyFeedbackBackground {

    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes moneyParticleFly {

    0% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            scale(0.5)
            rotate(0deg);
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translate(
                calc(-50% + var(--moveX)),
                calc(-50% + var(--moveY))
            )
            scale(var(--scale))
            rotate(var(--rotation));
    }
}


/* POPUP HEADER */

.windowHeader {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.windowHeader h2 {
    color: #172033;
    font-size: 1.7rem;
}

.closeWindow {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: #f1f5f9;
    border: none;
    border-radius: 50%;
    color: #566174;
    font-size: 20px;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.closeWindow:hover {
    background-color: #e2e8f0;
    color: #172033;
}


/* POPUP FORMS */

.popupWindow form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.popupWindow label {
    margin-top: 8px;
    color: #566174;
    font-size: 0.88rem;
    font-weight: 600;
}

.formRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.formField {
    min-width: 0;
}

.formField label {
    display: block;
}

.formError {
    margin: 2px 0 0;
    color: #d94b55;
    font-size: 0.85rem;
    font-weight: 600;
}

.formError.hidden {
    display: none;
}


/* IMAGE PREVIEW */

.imagePreviewContainer {
    width: 100%;
    height: 170px;
    margin-bottom: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f5f8fc;
    border: 1px solid #e9edf3;
    border-radius: 14px;
}

#newGoalImagePreview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

#selectAnImageBtn {
    width: 100%;
    padding: 10px 12px;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #566174;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

#selectAnImageBtn:hover {
    background-color: #f3f7fd;
    border-color: #2b83fe;
}


/* POPUP INPUTS */

.popupWindow input[type="text"],
.popupWindow input[type="date"],
.popupWindow input[type="file"],
.popupWindow input[type="number"] {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    background-color: #f8fafc;
    border: 1px solid #dce2ea;
    border-radius: 10px;
    color: #263142;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.popupWindow input:focus {
    border-color: #2b83fe;
    box-shadow: 0 0 0 3px rgba(43, 131, 254, 0.12);
}

.popupWindow input[type="button"] {
    width: 100%;
    min-height: 42px;
    margin-top: 18px;
    padding: 10px 16px;
    background-color: #2b83fe;
    border: none;
    border-radius: 9px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

.popupWindow input[type="button"]:hover {
    background-color: #1875f2;
    transform: translateY(-1px);
}

.popupWindow input[type="button"]:active {
    transform: translateY(1px);
}


/* EDITING GOAL NAME */

.editingGoalName {
    margin-bottom: 5px;
    padding: 10px 12px;
    background-color: #eef5ff;
    border-radius: 8px;
    color: #2b83fe;
    font-size: 0.9rem;
    font-weight: 600;
}


/* VALIDATION */

.popupWindow input.invalid {
    background-color: #fff8f8 !important;
    border-color: #f6787d !important;
    box-shadow: 0 0 0 3px rgba(246, 120, 125, 0.10) !important;
}


/* MONEY WINDOWS */

#addMoneyWindow,
#removeMoneyWindow {
    width: min(380px, calc(100vw - 30px));
    padding: 28px;
    border-radius: 18px;
}

#addMoneyWindow .goalTitle,
#removeMoneyWindow .goalTitle {
    margin-bottom: 12px;
    overflow: hidden;
    color: #172033;
    font-size: 1.6rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#addMoneyWindow .displayAddMoney,
#addMoneyWindow .displayTotalMoney,
#removeMoneyWindow .displayAddMoney,
#removeMoneyWindow .displayTotalMoney {
    min-height: 18px;
    margin-top: -2px;
    color: #8a94a6;
    font-size: 0.85rem;
}

#addMoneyWindow input[type="text"]:focus {
    border-color: #46aa82;
    box-shadow: 0 0 0 3px rgba(70, 170, 130, 0.12);
}

#removeMoneyWindow input[type="text"]:focus {
    border-color: #f6787d;
    box-shadow: 0 0 0 3px rgba(246, 120, 125, 0.12);
}

#addMoneyWindow input[type="button"] {
    background-color: #46aa82;
}

#addMoneyWindow input[type="button"]:hover {
    background-color: #39936f;
}

#removeMoneyWindow input[type="button"] {
    background-color: #f6787d;
}

#removeMoneyWindow input[type="button"]:hover {
    background-color: #e9656b;
}


/* DISABLED */

button:disabled,
input[type="button"]:disabled {
    background-color: #9ca3af !important;
    color: #e5e7eb !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}


/* HIDDEN */

.hidden {
    display: none !important;
}


.pageWithAdSidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: 24px;
    align-items: start;
}

.pageMainContent {
    min-width: 0;
}

.pageAdSidebar {
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .pageWithAdSidebar {
        display: flex;
        flex-direction: column;
    }

    .pageMainContent {
        width: 100%;
    }

    .pageAdSidebar {
        width: 100%;
        order: -1;
    }
}

/* TABLET / SMALL DESKTOP */
@media (max-width: 1100px) {
    .rightSidebar {
        display: none;
    }

    .mainContainer {
        padding-right: 30px;
    }

    .mobileAdContainer {
        display: flex;
    }
}

/* MOBILE */
@media (max-width: 750px) {
    /* MOBILE NAVIGATION */
    .mobileMenuButton {
        position: fixed;
        top: 22px;
        left: 14px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e9edf3;
        border-radius: 14px;
        background-color: #ffffff;
        color: #172033;
        box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
        font-size: 22px;
        cursor: pointer;
        z-index: 200;
    }

    .mobileMenuButton.mobileMenuOpen {
        border-color: #ffffff;
        box-shadow: none;
    }

    .leftSidebar {
        width: calc(100vw - 24px);
        max-width: 320px;
        height: auto;
        min-width: 0;
        max-height: calc(100vh - 40px);
        padding: 18px;
        display: none;
        position: fixed;
        top: 20px;
        left: 12px;
        transform: translateY(-10px);
        opacity: 0;
        overflow-y: auto;
        border: 1px solid #e9edf3;
        border-radius: 18px;
        background-color: #ffffff;
        box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
        z-index: 150;
    }

    .leftSidebar.mobileMenuOpen {
        display: flex;
        animation: mobileMenuOpen 0.2s ease forwards;
    }

    .leftSidebar .quotes {
        display: none;
    }

    .leftSidebar .pageInfo {
        justify-content: center;
        margin-bottom: 18px;
    }

    .leftSidebar .pageInfo .pageIcon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .leftSidebar .pageInfo .pageIcon img {
        width: 31px;
    }

    @keyframes mobileMenuOpen {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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


    /* MAIN LAYOUT */
    .mainContainer {
        padding: 75px 20px 30px;
    }

    .accountActionsContainer {
        padding: 15px 20px;
    }

    /* NAVIGATION */
    .navigation {
        gap: 8px;
        margin-top: 0;
    }

    .navigation .button {
        justify-content: flex-start;
        padding: 0 12px;
    }

    .navigation .button img {
        margin-right: 10px;
    }

    /* BANNER */
    .banner {
        height: 150px;
    }

    .bannerText {
        left: 24px;
        max-width: 430px;
    }

    .bannerText h1 {
        font-size: 23px;
    }

    .bannerText p {
        font-size: 12px;
    }

    /* SEARCH */
    .searchForm.active {
        width: 230px;
    }

    /* GOALS */
    .goals {
        grid-template-columns: minmax(0, 1fr);
    }

    .goalPicture {
        width: 60px;
        height: 60px;
    }

    .goalTitle {
        font-size: 16px;
    }

    .dates {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons button {
        flex: none;
        width: 100%;
    }

    /* COMPLETED GOALS */
    .completedGoals {
        grid-template-columns: minmax(0, 1fr);
    }

    .completedGoalInfo {
        align-items: flex-start;
    }

    .completedGoalDates {
        flex-direction: column;
        gap: 4px;
    }

    /* TRANSACTIONS */
    .transactionSummary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .transactionFilters {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .transactionTypeFilters {
        width: 100%;
    }

    .transactionFilter {
        flex: 1;
        padding: 9px 10px;
    }

    .transactionGoalFilter {
        width: 100%;
        min-width: 0;
    }

    .transaction {
        padding: 14px;
        gap: 12px;
    }

    .transactionInfo strong {
        max-width: 180px;
    }

    .transactionAmount {
        font-size: 12px;
    }

    /* REPORTS */
    .reportGroupCards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reportMoneyOverTime {
        padding: 14px;
    }

    .reportMoneyOverTime svg {
        height: 320px;
    }

    /* SETTINGS */
    .settingsSection {
        padding: 18px;
        border-radius: 14px;
    }

    .settingsButtons {
        flex-direction: column;
    }

    .settingsButtons button,
    .deleteAllDataButton {
        width: 100%;
    }

    .settingsLinks {
        flex-direction: column;
        gap: 12px;
    }

    /* FORMS */
    .formRow {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .popupWindow {
        width: calc(100vw - 30px);
        padding: 22px;
    }

    /* ACTIONS */
    .action {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .addNewGoal {
        width: 100%;
    }

    /* ADVERTISEMENTS */
    .adContainer,
    .mobileAdContainer {
        aspect-ratio: 3 / 1;
    }

}


/* SMALL MOBILE */
@media (max-width: 500px) {
    .mainContainer {
        padding: 75px 12px 25px;
    }

    .accountActionsContainer {
        padding-left: 70px;
        padding-right: 12px;
        gap: 12px;
    }

    /* SEARCH */
    .searchForm.active {
        width: 200px;
    }

    /* GOALS */
    .goalInfo {
        gap: 10px;
    }

    .goalPicture {
        width: 54px;
        height: 54px;
    }

    .completedGoal .goalPicture {
        width: 50px;
        height: 50px;
    }

    .goalTitle {
        font-size: 15px;
    }

    .goalSubtitle {
        font-size: 11px;
    }

    .completedGoal {
        padding: 12px;
    }

    .completedGoalInfo {
        gap: 10px;
    }

    .completedGoalTarget {
        font-size: 11px;
    }

    /* REPORTS */
    .reportGroupCards {
        grid-template-columns: 1fr;
    }

    .reportCard {
        padding: 16px;
    }

    .reportCardInfo strong {
        font-size: 1.05rem;
    }

    .reportSection {
        padding: 18px;
    }

    .reportMoneyOverTime {
        padding: 14px;
    }

    .reportMoneyOverTime svg {
        height: 300px;
    }

    /* TRANSACTIONS */
    .transaction {
        padding: 12px;
    }

    .transactionInfo strong {
        max-width: 140px;
    }

    /* POPUPS */
    .popupWindow {
        width: calc(100vw - 20px);
        padding: 18px;
    }

}

.pageAdContainer {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6f8;
    border-radius: 12px;
    color: #9a9da3;
    font-size: 12px;
}