@import url('./styles/authenticate.css');
@import url('./styles/card.css');
@import url('./styles/home.css');
@import url('./styles/menu.css');
@import url('./styles/navbar.css');
@import url('./styles/text-input.css');
@import url('./styles/account-settings.css');
@import url('./styles/card.css');
@import url('./styles/view.css');
@import url('./styles/personal-information.css');

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

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
    font-size: 16px;
    letter-spacing: -0.15px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #171717;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    letter-spacing: -0.15px;
}

.screen__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 28px;
}

.screen__title {
    letter-spacing: 0.38px;
    color: #1c2024;
    font-size: 35px;
    font-weight: 700;
    line-height: 42px;
}

.screen__subtitle {
    font-weight: 400;
    color: #00051d73;
    letter-spacing: -0.15px;
    line-height: 21px;
    margin: 0;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fafafa;
    z-index: -2;
    transform: translateZ(0);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 15;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

.menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: #ffffff;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    border-right: 1px solid #e5e5e5;
}

.menu-panel.open {
    transform: translateX(0);
}

.base-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.base-wrapper.shifted {
    transform: translateX(280px);
}

.view-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transition: left 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateZ(0);
    z-index: -3;
}

.base {
    background-color: #fafafa;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    transform: translateZ(0);
    padding: 1rem;
    padding-bottom: 60px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    overflow-y: auto;
    margin-top: 56px;
}

/* Custom scrollbar */
.base::-webkit-scrollbar {
    width: 6px;
}

.base::-webkit-scrollbar-track {
    background: transparent;
}

.base::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 3px;
}

.base::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 10;
    box-sizing: border-box;
    background: #fafafa;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar__button {
    color: #171717;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.topbar__button:hover {
    color: #5c5c5c;
}

.list-menu__list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.list-menu__item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.list-menu__button {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.list-menu__button-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 15px;
}

.list-menu__icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-menu__label-wrapper {
    display: flex;
    flex-direction: column;
}

.list-menu__label {
    line-height: 21px;
    color: #1c2024;
    opacity: 0.9;
}

.label__secondary {
    font-size: 12px;
    color: #1c2024a4;
}

.list-menu__divider {
    width: 100%;
    height: 1px;
    background-color: #00002f26;
}

.form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form__fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.form__button {
    width: 100%;
    height: 42px;
    background-color: #3e63dd;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form__button:hover {
    background-color: #0056cc;
}

.form__button:active {
    background-color: #004bb5;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin-inline: auto;
    font-family: inherit;
}