* { padding: 0; margin: 0; box-sizing: border-box; font-family: "Roboto", sans-serif; } :root { font-size: clamp(1rem, 1.2vmax, 1.2rem); } html, body { height: 100%; scroll-behavior: smooth; } body { --accent-color: #2672ff; --accent-color--light: rgba(38, 114, 255, 0.06); --text-color: 20, 20, 20; --foreground-color: 252, 253, 255; --background-color: 241, 243, 248; --danger-color: rgb(255, 75, 75); --green: #1cad59; --yellow: rgb(220, 165, 0); --loan-color: rgb(255, 171, 93); scrollbar-width: thin; color: rgba(var(--text-color), 1); background: rgba(var(--background-color), 1); } body[data-theme="dark"] { --accent-color: rgb(170, 190, 255); --accent-color--light: rgba(231, 239, 255, 0.06); --text-color: 200, 200, 200; --foreground-color: 27, 28, 29; --background-color: 21, 22, 22; --danger-color: rgb(255, 106, 106); --green: #00e676; --yellow: rgb(255, 213, 5); --loan-color: rgb(255, 232, 170); } p, strong { font-size: 0.9rem; max-width: 70ch; line-height: 1.7; color: rgba(var(--text-color), 0.8); &:not(:last-of-type) { margin-bottom: 1.5rem; } } a:where([class]) { color: inherit; text-decoration: none; &:focus-visible { box-shadow: 0 0 0 0.1rem rgba(var(--text-color), 1) inset; } } a { color: var(--accent-color); } button, .button { user-select: none; position: relative; display: inline-flex; border: none; background-color: transparent; overflow: hidden; color: inherit; -webkit-tap-highlight-color: transparent; align-items: center; font-size: 0.9rem; font-weight: 500; white-space: nowrap; padding: 0.8rem; border-radius: 0.3rem; justify-content: center; &:focus-visible { outline: var(--accent-color) solid medium; } &:not(:disabled) { cursor: pointer; } } .button { background-color: rgba(var(--text-color), 0.02); border: solid thin rgba(var(--text-color), 0.06); &--primary { color: rgba(var(--background-color), 1); background-color: var(--accent-color); .icon { fill: rgba(var(--background-color), 1); } } &--colored { color: var(--accent-color); .icon { fill: var(--accent-color); } } &--danger { background-color: #ff737310; color: var(--danger-color); .icon { fill: var(--danger-color); } } &--small { padding: 0.4rem 0.6rem; } &--outlined { border: solid rgba(var(--text-color), 0.3) 0.1rem; background-color: rgba(var(--foreground-color), 1); } &--transparent { background-color: transparent; } } button:disabled { opacity: 0.4; cursor: not-allowed; filter: saturate(0); } .cta { text-transform: uppercase; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; padding: 0.8rem 1rem; } a:any-link:focus-visible { outline: rgba(var(--text-color), 1) 0.1rem solid; } ul { list-style: none; } .flex { display: flex; } .grid { display: grid; } .hide { opacity: 0; pointer-events: none; } .hidden { display: none !important; } .overflow-ellipsis { width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .breakable { overflow-wrap: break-word; word-wrap: break-word; -ms-word-break: break-all; word-break: break-word; -ms-hyphens: auto; -moz-hyphens: auto; -webkit-hyphens: auto; hyphens: auto; } .full-bleed { grid-column: 1/4; } .h1 { font-size: 1.5rem; } .h2 { font-size: 1.2rem; } .h3 { font-size: 1rem; } .h4 { font-size: 0.9rem; } .h5 { font-size: 0.8rem; } .uppercase { text-transform: uppercase; } .capitalize { text-transform: capitalize; } .flex { display: flex; } .grid { display: grid; } .grid-3 { grid-template-columns: 1fr auto auto; } .flow-column { grid-auto-flow: column; } .gap-0-5 { gap: 0.5rem; } .gap-1 { gap: 1rem; } .gap-1-5 { gap: 1.5rem; } .gap-2 { gap: 2rem; } .gap-3 { gap: 3rem; } .text-align-right { text-align: right; } .align-start { align-items: flex-start; } .align-center { align-items: center; } .text-center { text-align: center; } .justify-start { justify-content: start; } .justify-center { justify-content: center; } .justify-right { margin-left: auto; } .align-self-center { align-self: center; } .justify-self-center { justify-self: center; } .justify-self-start { justify-self: start; } .justify-self-end { justify-self: end; } .direction-column { flex-direction: column; } .space-between { justify-content: space-between; } .stretch { justify-content: stretch; justify-items: stretch; & > * { width: 100%; } } .interact { position: relative; cursor: pointer; transition: transform 0.3s; -webkit-tap-highlight-color: transparent; } .observe-empty-state:empty { display: none; } .observe-empty-state:not(:empty) ~ .empty-state { display: none; } .icon { width: 1.2rem; height: 1.2rem; fill: rgba(var(--text-color), 0.8); } .button__icon { height: 1.2rem; width: 1.2rem; &--left { margin-right: 0.5rem; } &--right { margin-left: 0.5rem; } } .icon-button { padding: 0.6rem; border-radius: 0.8rem; background-color: var(--accent-color--light); height: max-content; .icon { fill: var(--accent-color); } } sm-spinner { --size: 1.2rem; } #confirmation_popup, #prompt_popup { flex-direction: column; h4 { font-size: 1.2rem; margin-bottom: 1rem; } .flex { margin-top: 1rem; } } .popup__header { position: relative; display: grid; gap: 0.5rem; width: 100%; padding: 0 1.5rem; align-items: center; & > * { grid-row: 1; } h3, h4 { grid-column: 1/-1; justify-self: center; align-self: center; } &__close { grid-column: 1; margin-left: -1rem; justify-self: flex-start; } } button:active, .button:active, .interact:active, .nav-item:active { transform: scale(0.96); } #main_page { padding: 1.5rem; & > section:nth-of-type(1) { align-content: flex-start; } } .logo { display: grid; align-items: center; width: 100%; grid-template-columns: auto 1fr; gap: 0 0.3rem; margin-right: 1rem; h4 { text-transform: capitalize; font-size: 0.9rem; font-weight: 600; } .main-logo { height: 1.4rem; width: 1.4rem; fill: rgba(var(--text-color), 1); stroke: none; } } details { summary { display: flex; justify-content: space-between; user-select: none; cursor: pointer; } &[open] > summary { margin-bottom: 1rem; .icon { transform: rotate(180deg); } } } .card { padding: 1rem; border-radius: 0.5rem; background-color: var(--accent-color--light); } .warning { background-color: khaki; color: rgba(0, 0, 0, 0.7); padding: 1rem; border-radius: 0.5rem; line-height: 1.5; } .page-layout { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) 1.5rem; & > * { grid-column: 2/3; } } .page { height: 100%; } #landing { grid-template-rows: auto 1fr; header { padding: 1.5rem 0; } & > .grid { align-content: flex-start; text-align: center; gap: 1rem; } } #sign_in, #sign_up { grid-template-rows: auto 1fr; align-items: center; section { margin-top: -6rem; justify-self: center; width: min(24rem, 100%); } sm-form { margin: 2rem 0; } header { padding: 1.5rem 0; } } #sign_up { sm-copy { font-size: 0.9rem; --button-border-radius: 0.5rem; } .h2 { margin-bottom: 0.5rem; } .card { margin: 1.5rem 0; } h5 { font-weight: 500; color: rgba(var(--text-color), 0.8); } .warning { margin-top: 2rem; } } #loading { place-content: center; text-align: center; sm-spinner { justify-self: center; margin-bottom: 1.5rem; --size: 1.2rem; } } #home { height: 100%; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main-header" "subpages" "main-nav"; } #main_nav { grid-area: main-nav; position: relative; display: flex; } .nav-item { position: relative; display: flex; align-items: center; padding: 0.8rem; border-radius: 0.5rem; color: inherit; transition: transform 1s; user-select: none; -webkit-tap-highlight-color: transparent; &--active { .icon { fill: var(--accent-color); } .nav-item__title { color: var(--accent-color); } } &.has-notification { &::after { left: 0; top: 0; margin: 0.7rem 0.8rem; content: ""; position: absolute; padding: 0.3rem; border-radius: 50%; background-color: var(--danger-color); } } } #main_header { grid-area: main-header; padding: 1.5rem; display: grid; gap: 1rem; align-items: center; grid-template-columns: 1fr auto; } #user_profile_button { gap: 0.5rem; background-color: rgba(var(--text-color), 0.06); border-radius: 2rem; font-size: 0.8rem; padding: 0.6rem 0.8rem; } #subpage_container { grid-area: subpages; overflow-y: auto; } #dashboard { display: grid; gap: 1.5rem; padding: 0 1.5rem; } #quick_actions_container { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2rem 0; } .quick-action { color: inherit; display: flex; flex-direction: column; align-items: center; &.disabled { pointer-events: none; opacity: 0.6; filter: grayscale(100%); } &__icon { padding: 1rem; border-radius: 1rem; background-color: var(--accent-color--light); margin-bottom: 0.8rem; .icon { height: 1.5rem; width: 1.5rem; fill: var(--accent-color); } } &__title { font-size: 0.8rem; font-weight: 500; } } .empty-state { padding: 0 1.5rem; margin: 3rem 0; justify-items: center; text-align: center; .empty-state__icon { filter: drop-shadow(0 0.5rem 0.3rem rgba(0, 0, 0, 0.1)); height: 12rem; width: 12rem; padding: 3rem; border-radius: 50%; margin-bottom: 1.5rem; background-color: rgba(var(--text-color), 0.06); } } sm-chips { --gap: 0; background-color: rgba(var(--text-color), 0.06); border-radius: 0.3rem; } sm-chip { text-transform: uppercase; font-weight: 500; letter-spacing: 0.05em; font-size: 0.7rem; --border-radius: 0; --active-option-color: rgba(var(--background-color), 1); --active-option-background-color: var(--accent-color); &[selected] { color: rgba(var(--background-color), 1); --background: var(--accent-color); } &:first-of-type { --border-radius: 0.3rem 0 0 0.3rem; } &:last-of-type { --border-radius: 0 0.3rem 0.3rem 0; } } .activity-card { display: grid; padding: 1rem 0; gap: 0.4rem 1rem; border-radius: 0.5rem; align-items: flex-start; color: inherit; grid-template-columns: auto minmax(0, 1fr) auto; &__icon { display: flex; align-content: center; justify-content: center; padding: 0.5rem; border-radius: 0.8rem; background-color: var(--accent-color--light); .icon { height: 1.3rem; width: 1.3rem; fill: var(--accent-color); } } &__title { font-size: 0.95rem; &::first-letter { text-transform: uppercase; } font-weight: 500; } &__time { font-size: 0.8rem; color: rgba(var(--text-color), 0.8); } } #notifications, #history { padding-bottom: 5rem; .activity-card { padding: 1rem 1.5rem; } } #user_accounts:not(:empty) { margin-top: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem; padding-bottom: 5rem; } .activity-card--account { user-select: none; gap: 1.5rem; padding: 1rem 1.5rem; align-items: center; border: solid thin rgba(var(--text-color), 0.2); .activity-card__icon { padding: 0; background-color: transparent; } .activity-card__type { text-transform: capitalize; font-size: 0.9rem; color: rgba(var(--text-color), 0.8); font-weight: 500; } .activity-card__amount { margin-top: 0.3rem; font-size: 1.1rem; } .activity-card__interest { font-size: 0.8rem; } } .activity-card--request, .activity-card--pending { grid-template-areas: "icon . amount" "icon time ."; .activity-card__icon { grid-area: icon; } .activity-card__time { grid-area: time; } .activity-card__amount { grid-area: amount; text-align: end; } } .activity-card--admin { align-items: center; grid-template-areas: "icon . button" "icon time button"; .activity-card__icon { grid-area: icon; } .activity-card__time { grid-area: time; } .activity-card__action { grid-area: button; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background-color: var(--accent-color--light); color: var(--accent-color); justify-content: flex-end; align-items: center; } } #pending_transaction:not(:empty) { margin-bottom: 2rem; } .activity-card--pending:not(:empty) { padding: 1rem; margin-top: 0.8rem; border: solid 0.1rem var(--accent-color); .activity-card__description { font-size: 0.8rem; color: rgba(var(--text-color), 0.8); grid-column: span 2; } } .status-tag:not(:empty) { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.7rem; border-radius: 0.2rem; padding: 0.3rem 0.4rem; font-weight: 500; color: rgba($color: #000000, $alpha: 0.7); .icon { margin-right: 0.3rem; } &.active { color: var(--green); background-color: rgb(0, 230, 118, 0.1); } &.closed { color: rgba(var(--text-color), 0.7); background-color: rgba(var(--text-color), 0.06); } &.success { color: var(--green); background-color: rgb(0, 230, 118, 0.1); .icon { fill: var(--green); } } &.failed { color: var(--danger-color); background-color: rgb(255, 75, 75, 0.1); .icon { fill: var(--danger-color); } } &.pending { color: var(--yellow); background-color: rgba(255, 252, 75, 0.1); .icon { fill: var(--yellow); } } } .activity-card--response { grid-template-areas: "icon . time" "icon description description"; .activity-card__icon { grid-area: icon; } .activity-card__description { grid-area: description; font-size: 0.8rem; color: rgba(var(--text-color), 0.8); } .activity-card__time { grid-area: time; } } .success { .icon { fill: var(--green); } } .failed { .icon { fill: var(--danger-color); } } .pending { .icon { fill: var(--yellow); } } #user_section { display: grid; align-content: flex-start; gap: 2rem; overflow-y: auto; padding: 1.5rem; grid-template-columns: minmax(0, 1fr); h4 { height: 1.8rem; margin-bottom: 1rem; } } #user_section__header { position: sticky; top: 0; background-color: inherit; padding-top: 1.5rem; z-index: 2; } #refresh_balance_button { &.loading { padding: 0.5rem; pointer-events: none; background-color: transparent; } } #account_chart_container { display: flex; flex-direction: column; align-items: center; height: 15rem; padding-bottom: 3rem; margin: 1.5rem 0; } #chart_legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-bottom: 1rem; } .legend { display: flex; align-items: center; font-size: 0.8rem; margin-right: 1rem; margin-bottom: 1rem; &::before { content: ""; margin-right: 0.5rem; width: 1rem; height: 1rem; border-radius: 25%; } &:nth-of-type(1) { &::before { background-color: var(--green); } } &:nth-of-type(2) { &::before { background-color: var(--loan-color); } } } .balance-card { display: flex; padding: 1rem 0; align-items: center; gap: 0.3rem 1rem; border-radius: 0.5rem; &__icon { grid-area: icon; display: flex; align-content: center; justify-content: center; padding: 0.5rem; border-radius: 0.8rem; background-color: var(--accent-color--light); .icon { height: 1.3rem; width: 1.3rem; fill: var(--accent-color); } } &__token { font-size: 0.8rem; } &__amount { font-size: 1rem; font-weight: 700; margin-left: auto; } } .page__header { button { padding: 0.5rem 0; } } #transaction, #account { grid-template-rows: auto 1fr; gap: 1rem 0; padding: 1.5rem 0; align-content: flex-start; } #transaction section, #account_details { display: grid; gap: 2rem; grid-template-rows: auto 1fr; } .positive { color: var(--green); } #transaction_top, #account_top { display: flex; flex-direction: column; justify-items: flex-start; position: relative; } #transaction_detail__icon, #account_detail__icon { display: flex; background-color: var(--accent-color); border-radius: 40%; padding: 0.8rem; justify-self: flex-start; align-self: flex-start; .icon { height: 1.5rem; width: 1.5rem; fill: rgba(var(--background-color), 1); } } #transaction_detail__amount, #account_detail__amount { display: flex; font-size: 1.5rem; font-weight: 700; } #account_detail__type { color: rgba(var(--text-color), 0.8); font-weight: 500; } #account_detail__interest_type { font-size: 0.9rem; } #account_detail__interest { font-size: 1rem; margin-left: 0.4rem; font-weight: 500; } #transaction__cta { justify-self: flex-start; margin-top: 2rem; } #account_process { display: grid; align-content: flex-start; gap: 2rem; } #account_process__steps, #transaction__steps { display: flex; flex-direction: column; gap: 1.5rem; } .account-step { opacity: 0; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 0.8rem; animation: slide-down 0.3s forwards; &:nth-of-type(2) { animation-delay: 0.1s; } &:nth-of-type(3) { animation-delay: 0.2s; } &:nth-of-type(4) { animation-delay: 0.3s; } &:not(:last-of-type) .step__line { position: relative; height: 100%; width: 0.1rem; margin: 0.5rem 0 1rem 0; justify-self: center; background-color: var(--green); } .icon { height: 1.5rem; width: 1.5rem; } &:not(.loading) { .step__title { font-weight: 500; font-size: 0.9rem; padding: 0.2rem 0; } } .step__description { font-size: 0.8rem; } &.row-3 { &:not(:last-of-type) .step__line { grid-row: span 2; } .button { grid-column: 2/3; } } .button { justify-self: flex-start; } } @keyframes slide-down { from { opacity: 0; transform: translateY(-1rem); } to { opacity: 1; transform: none; } } #deposit, #loan { padding: 1.5rem 0; grid-template-rows: auto 1fr; sm-form { justify-self: center; margin-top: 3rem; width: min(24rem, 100%); &::part(form) { display: flex; flex-direction: column; } } } #deposit__icon, #loan__icon { .icon { height: 1.8rem; width: 1.8rem; fill: var(--accent-color); } } .est-interest { h3 { margin-top: 0.2rem; color: rgba(var(--text-color), 0.8); font-size: 1.3rem; &::after { font-weight: 500; content: "% p.a"; font-size: 1rem; } } } #get_deposit_amount, #get_loan_amount { --font-size: 1.5rem; margin-top: 1rem; } .loader-button-wrapper { display: flex; position: relative; justify-content: center; align-items: center; button[type="submit"], slide-button { width: 100%; z-index: 1; transition: clip-path 0.3s; clip-path: circle(100%); &.clip { pointer-events: none; clip-path: circle(0); } } sm-spinner { position: absolute; } } #result { place-content: center; section { text-align: center; align-items: center; } &__icon { position: relative; display: flex; border-radius: 50%; padding: 1rem; margin: -5rem 0 1.5rem 0; &.pending { background-color: rgba(255, 252, 75, 0.1); } &.failed { background-color: rgb(255, 75, 75, 0.1); } animation: pop-in 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275); .icon { height: 1.8rem; width: 1.8rem; } } &__description { margin: 0.5rem 0; } &__back_button { margin-top: 3rem; } } @keyframes pop-in { 0% { opacity: 0; transform: scale(0.4) translateY(6rem); } 40% { opacity: 1; transform: scale(0.4) translateY(0); } 100% { transform: none; } } #account_summary { padding: 0 1.5rem; } #sign_out_button { color: rgba(var(--background-color), 1); --padding: 0.8rem 1.6rem; --background: var(--danger-color); } #admin { display: grid; padding: 0 1.5rem; grid-template-columns: minmax(0, 1fr); } #admin_requests_container { margin-top: 1rem; padding-bottom: 3rem; } @media screen and (max-width: 640px) { #user_profile_button { grid-area: 1/1/2/2; } theme-toggle { grid-area: 1/2/2/3; } #dashboard { padding: 0 1.5rem; } #main_nav { background-color: rgba(var(--foreground-color), 1); border-top: thin solid rgba(var(--text-color), 0.1); } .nav-item { flex: 1; flex-direction: column; &__title { display: flex; font-size: 0.8rem; font-weight: 500; color: rgba(var(--text-color), 0.8); margin-top: 0.3rem; } } #transaction_action_button, #account_action_button, .loader-button-wrapper { margin-top: auto; } #transaction_top, #account_top { margin-top: 1rem; } #user_section { left: 0; } #admin__header { position: relative; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; } #account_process, #transaction__steps { border-top: solid rgba(var(--text-color), 0.2) thin; padding-top: 1.5rem; } .account-step { .button { margin-top: 0.5rem; } } .activity-card--account { .grid { text-align: right; } } .hide-on-small { display: none !important; } } @media screen and (min-width: 640px) { sm-popup { --width: 26rem; } .h1 { font-size: 2rem; } .h2 { font-size: 1.8rem; } .h3 { font-size: 1.3rem; } .h4 { font-size: 1rem; } #confirmation_popup { --width: 24rem; } .popup__header { padding: 1rem 1.5rem 0 1.5rem; } .page-layout { grid-template-columns: 1fr 90vw 1fr; } #home { background-color: rgba(var(--foreground-color), 1); grid-template-rows: auto 1fr; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "main-header main-header user-section" "main-nav subpages user-section"; } #main_nav { flex-direction: column; padding: 0 1rem; &::after { position: absolute; right: 0; content: ""; width: 1px; background-color: rgba(var(--text-color), 0.2); height: 80%; } } .nav-item { &--active { background-color: var(--accent-color--light); } &:not(:last-of-type) { margin-bottom: 0.5rem; } &:last-of-type { margin-top: auto; margin-bottom: 1.5rem; } &__title { display: none; } } #main_header { grid-template-columns: 1fr auto auto; } #user_section { grid-area: user-section; background-color: rgba(var(--background-color), 1); width: min(24rem, 100%); } #transaction_top, #account_top, #account_process, #transaction__steps { overflow: hidden; padding: 1.8rem; border-radius: 0.5rem; background-color: rgba(var(--foreground-color), 1); box-shadow: 0 0 0.1rem rgba(0, 0, 0, 0.1), 0 1rem 1.5rem -0.8rem rgba(0, 0, 0, 0.1); align-self: flex-start; } #transaction_detail__icon { justify-self: flex-start; } #admin__header { display: flex; justify-content: space-between; align-items: center; } .account-step { &.row-3 { grid-template-areas: ". . b-link" ". . b-link"; grid-template-columns: auto minmax(0, 1fr) auto; .step__line { grid-column: 1/2; } .button { grid-area: b-link; align-self: flex-start; } } } #user_accounts:not(:empty) { gap: 1rem; } .activity-card--account { grid-template-columns: minmax(0, 1fr); text-align: left; justify-content: flex-start; .activity-card__icon { justify-content: flex-start; } } } @media screen and (min-width: 1024px) { .page-layout { grid-template-columns: 1fr 80vw 1fr; } .card { padding: 1.5rem; } #home { grid-template-columns: 14rem minmax(0, 1fr) 24rem; } .nav-item { &__title { display: flex; font-size: 0.9rem; font-weight: 500; color: rgba(var(--text-color), 0.8); margin-left: 0.5rem; } } #transaction section, #account_details { grid-template-columns: 18rem minmax(0, 1fr); } .hide-on-desktop { display: none; } .activity-card--pending:not(:empty) { padding: 1.5rem; } } @media screen and (min-width: 1920px) { .page-layout { grid-template-columns: 1fr 70vw 1fr; } } @media (any-hover: hover) { ::-webkit-scrollbar { width: 0.5rem; height: 0.5rem; } ::-webkit-scrollbar-thumb { background: rgba(var(--text-color), 0.3); border-radius: 1rem; &:hover { background: rgba(var(--text-color), 0.5); } } .nav-item, .interact { transition: background-color 0.3s, transform 0.3s; &:hover { background-color: var(--accent-color--light); } } }