body {
    font-family: var(--font);
    font-feature-settings: 'ss02';
    padding: 0;
    margin: 0 auto;
    max-width: 552px;
    height: 100dvh;
    inset: 0;
    position: fixed;
    overflow: hidden;
    background-color: var(--bg);
}

.bottom-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: calc(100% - 32px);
    position: absolute;
    bottom: 16px;
    z-index: 2000;
    box-sizing: border-box;
    left: 16px;
    gap: 16px;
}

.bottom-nav-add-post {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    background: #871028;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0px 4px 6px -4px rgba(135, 16, 40, 0.3), 0px 10px 15px -3px rgba(135, 16, 40, 0.3);
    border-radius: 9999px;
    cursor: pointer;
}

.bottom-nav-add-post-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.bottom-nav-add-post-btn img {
    pointer-events: none;
    user-select: none;
}

.bottom-nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;

    background: rgba(255, 255, 255, 0.4);
    border: 0.666667px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 9999px;

    width: 290px;
    height: 65.33px;
}

.bottom-nav-menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s, color 0.3s;
}

.bottom-nav-menu-item.active {
    background: rgba(135, 16, 40, 0.1);
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.02);
    color: var(--primary);
}

.bottom-nav-menu-item-text {
    display: none;
    justify-content: center;
    align-items: center;
}
.bottom-nav-menu-item-text p {
    font-family: 'PeydaWebVF', serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    margin: 0;
}


.bottom-nav-menu-item-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 23px;
    height: 23px;
    transition: transform 0.3s;
}

.bottom-nav-menu-item-image.animate img {
    animation: transformIcon 0.3s ease;
}

.menu-item-img.active {
    display: flex;
}
.menu-item-img.inactive {
    display: none;
}

@keyframes transformIcon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}


#page-content {
    width: 100%;
    height: 100%;
}

.cover-sidenav {
    position: absolute;
    right: -85%;
    width: 85%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 2003;
    background: var(--bg);
    transition: right 0.3s ease;
}

.sidebar-nav {
    position: absolute;
    right: -85%;
    width: 85%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 2002;
    background: var(--bg);
    transition: right 0.45s ease;
}
.sidebar-nav.show {
    right: 0;
}


.close-sidenav-btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 20px;
    top: 20px;
    width: 26px;
    height: 26px;
    background: #F5F5F5;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
}
.close-sidenav-btn img {
    pointer-events: none;
    user-select: none;
}

.sidebar-nav-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-bottom: 0.666px solid rgba(255, 255, 255, 0.7);
}

.sidebar-profile-image-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
}

.sidebar-profile-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: #ddd;
    border-radius: 50%;
}
.sidebar-profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    user-select: none;
    pointer-events: none;
}

.sidebar-username-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
}
.sidebar-username-container h5 {
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.6px;
    color: #111827;
    margin: 0;
}
.sidebar-username-container p {
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #6B7280;
    margin: 0;
}

.sidebar-following-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
}

.sidebar-following, .sidebar-followers {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.sidebar-following p, .sidebar-followers p {
    margin: 0;
    font-size: 14px;
    color: #111827;
    font-weight: normal;
}

#following-counter {
    font-weight: 700;
}
#followers-counter {
    font-weight: 700;
}


.sidebar-nav-menu-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    height: calc(100% - 286px);
    box-sizing: border-box;
}

.sidebar-nav-menu-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 16px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    color: #111827;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}
.sidebar-nav-menu-item.active {
    background: rgba(135, 16, 40, 0.1);
    color: var(--primary);
}
.sidebar-nav-menu-item img {
    width: 23px;
    height: 23px;
    pointer-events: none;
    user-select: none;
}
.sidebar-nav-menu-item p{
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-nav-footer {
    position: absolute;
    bottom: 0;
    border-top: 0.666px solid rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    align-self: flex-end;
    background-color: var(--bg);
}

.logout-btn{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    gap: 10px;
    cursor: pointer;
    box-sizing: border-box;
    background: transparent;
    transition: background-color 0.3s ease;
}
.logout-btn img {
    width: 23px;
    height: 23px;
    pointer-events: none;
    user-select: none;
}
.logout-btn p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    pointer-events: none;
    user-select: none;
}



.sidebar-app-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -2001;
    background: rgba(50, 50, 50, 0.2);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-app-modal.show {
    opacity: 1;
    z-index: 2001;
}




.send-post-modal-page {
    position: absolute;
    left: 0;
    top: -150%;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 2002;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: rgba(229, 229, 229, 0.7);
    backdrop-filter: blur(20px);
    transition: opacity 0.4s ease, top 0.45s;
}
.send-post-modal-page.show {
    top: 0;
}


.send-post-modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 0.666667px solid rgba(255, 255, 255, 0.5);
}

.send-post-modal-post-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 78.51px;
    height: 36px;
    background: rgba(135, 16, 40, 0.3);
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.send-post-modal-post-btn.active {
    background: var(--primary);
    color: rgba(255, 255, 255, 1);
}
.send-post-modal-post-btn p {
    margin: 0;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.send-post-modal-close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #F5F5F5;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    border: 0.666667px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
}
.send-post-modal-close-btn img {
    pointer-events: none;
    user-select: none;
}



.send-post-modal-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: -30px;
    transition: margin-top 0.5s;
}
.send-post-modal-body.show {
    margin-top: 0px;
}

.send-post-modal-body-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 16px 32px;
    gap: 16px;
    box-sizing: border-box;
}

.send-post-modal-who-see {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(135, 16, 40, 0.05);
    border: 0.666667px solid rgba(135, 16, 40, 0.4);
    border-radius: 9999px;
    margin-bottom: -15px;
}
.send-post-modal-who-see p{
    margin: 0;
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    color: #871028;
}
.send-post-modal-who-see img {
    pointer-events: none;
    user-select: none;
    width: 14px;
    height: 14px;
}

.send-post-modal-profile-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.send-post-modal-profile-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #ddd;
}
.post-page-profile-image {
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    border-radius: 50%;
}


.send-post-modal-body-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}
.send-post-modal-body-content textarea {
    background: transparent;
    border: none;
    width: 100%;
    height: 500px;
    max-height: calc(100dvh - 300px);
    padding: 16px;
    box-sizing: border-box;
    font-family: "PeydaWebVF", serif;
}

.send-post-modal-body-content textarea:focus {
    outline: none;
}



.send-post-modal-footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
    transition: margin-bottom 0.5s ease;
    background: rgba(255, 255, 255, 0.3);
    border-top: 0.666667px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
}
.send-post-modal-footer.show {
    margin-bottom: 0px;
}

.send-post-modal-footer-options {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    box-sizing: border-box;
}


.app-wrapper {
    transition: all 0.4s;
}
.app-wrapper.effectScale {
    transform: scale(0.97);
}


.post-option-modal, .page-option-modal {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    position: absolute;
    bottom: -150%;
    left: 0;
    z-index: 3000;
    background: rgba(255, 255, 255, 0.8);
    border: 0.666667px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px 16px 0 0;
    transition: bottom 0.45s ease;
    height: 292px;
    box-sizing: border-box;
}
.post-option-modal.show, .page-option-modal.show {
    bottom: 0;
}


.post-option-modal-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 22px 0;
    box-sizing: border-box;
    overflow-y: auto;
}

.post-option-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding:  12px 22px;
    gap: 16px;
    box-sizing: border-box;
}
.post-option-item:first-child {
    padding: 0 22px 12px 22px;
}
.post-option-item:last-child {
    padding: 12px 22px 0px 22px;
}

.post-option-item p {
    margin: 0;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #1F2937;
}
.post-option-item img {
    pointer-events: none;
    user-select: none;
}

.close-post-option-modal-btn, .close-page-option-modal-btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 16px;
    top: 16px;
    width: 26px;
    height: 26px;
    background: #F5F5F5;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
}
.close-post-option-modal-btn img, .close-page-option-modal-btn img {
    pointer-events: none;
    user-select: none;
}



.gooy-sidenav-btn {
    display: flex;
    position: absolute;
    left: 16px;
    top: 16px;
    justify-content: center;
    align-items: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.6);
    border: 0.666667px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(6px);
    border-radius: 9999px;
    z-index: 2000;
    cursor: pointer;
}

.gooy-sidenav-btn img {
    user-select: none;
    pointer-events: none;
}

.dialog-box-panel {
    direction: rtl;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 10px;
    width: 90%;
    max-width: 300px;
    position: fixed;
    right: -100%;
    top: 15px;
    z-index: 99999;
    background: #F5F5F5;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    border: 0.666667px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: right 0.3s ease;
}
.dialog-box-panel.show {
    right: 1%;
}

.message-dialog-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.message-dialog-img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
}
.message-dialog-img img {
    width: 50px;
    height: 50px;
}

.message-dialog-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.message-dialog-title {
    margin: 0;
    font-size: clamp(15px, 1.4vw, 16px);
    font-weight: 700;
    color: #494949;
}

.message-dialog-explain {
    margin: 0;
    font-size: clamp(12px, 1.4vw, 13px);
    font-weight: 550;
    color: #656565;
}

.close-container-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
}
.close-container-dialog img {
    width: 16px;
    height: 16px;
}

/* Theme Variables*/
:root {
    --bg: #E5E5E5;

    --text: #1A1A1A;
    --subtext: #71717A;
    --subtext-2: #52525B;

    --border: #666666;
    --border-active: #494949;

    --primary: #870F27;

    --btn-bg-1: #ffffff;
    --btn-text-1: #121212;

    --font: 'PeydaWebVF', serif
}

body[data-theme="dark"] {
    --bg: #121212;

    --text: #E5E5E5;
    --subtext: #A1A1AA;
    --subtext-2: #52525B;


    --border: #2F3336;
    --border-active: #41474b;

    --primary: #870F27;

    --btn-bg-1: #E5E5E5;
    --btn-text-1: #121212;

    --font: 'PeydaWebVF', serif
}

.shimmer-circle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2.2s infinite;
}
.shimmer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2.2s infinite;
}

@keyframes shimmer {
    0% {
        background-color: #E5E5E5;

    }
    50% {
        background-color: #d3d3d3;
    }
    100% {
        background-color: #E5E5E5;
    }
}


.loading-spinner {
    position: absolute;
    top: calc(50% - 9px);
    width: 16px;
    height: 16px;
    left: 6%;
    text-align: center;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease;
}
.spinner {
    width: 100%;
    height: 100%;
    border: 2px solid #FFFFFF;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.loading-spinner.show {
    opacity: 1;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Font Variables*/
@font-face {
    font-family: 'PeydaWebVF';
    src: url('../font/PeydaVF/Variable Webfont/PeydaWebVF.woff2') format('woff2-variations'),
         url('../font/PeydaVF/Variable Webfont/PeydaWebVF.woff') format('woff-variations');
    font-weight: 100 950;
    font-style: normal;
    font-display: swap;
}