@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;0,600;0,700;0,800;1,600&display=swap');

/* variables */
:root {
    --clr-primary: #7380ec;
    --clr-danger: #ff7782;
    --clr-success: #41f1b6;
    --clr-white: #fff;
    --clr-info-dark: #7d8da1;
    --clr-info-light: #dce1eb;
    --clr-dark: #363949;
    --clr-warnig: #ff4edc;
    --clr-light: rgba(132, 139, 200, 0.18);
    --clr-primary-variant: #111e88;
    --clr-dark-variant: #677483;
    --clr-color-background: #f6f6f9;
    --clr-color-darkblue-background: rgba(0, 51, 102, 0.8);
    /* Gold */
    --clr-buttons: #f39c12;
    /* Bright Blue */
    --clr-gradient-blue: #4d88ff;

    --card-border-radius: 2rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 0.8rem;
    --border-radius-3: 1.2rem;

    --card-padding: 1.8rem;
    --padding-1: 1.2rem;
    --box-shadow: 0 2rem 3rem var(--clr-light);

}

/* dark theme */
.dark-theme-variables {
    --clr-color-darkblue-background: rgba(33, 37, 41, 0.7);
    --clr-color-background: #181a1e;
    --clr-white: #202528;
    --clr-light: rgba(0, 0, 0, 0.4);
    --clr-dark: #edeffd;
    --clr-dark-variant: #677483;
    --box-shadow: 0 2rem 3rem var(--clr-light)
}

html {
    overflow: hidden;   
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    text-decoration: none;
    /* list-style: none; */
    appearance: none;
}

*::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #f5f5f5;
}

*::-webkit-scrollbar {
    width: 0.3vw;
    background-color: #f5f5f5;
}

*::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #555;
}

body {
    /* width: 100vw;
    height: 100vh; */
    font-size: .7rem;
    /* overflow-x: hidden; */
    background: var(--clr-color-background);
    font-family: 'Poppins', sans-serif;
}

.container {
    display: grid;
    width: 98%;
    gap: 1rem;
    grid-template-columns: 14rem auto 15rem;
    margin: 15px auto 0 15px;
    height: 100vh;
    overflow: hidden;
}

a {
    color: var(--clr-dark);
}

h1 {
    font-weight: 800;
    font-size: 2.8rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 0.87;
}

h4 {
    font-weight: 0.8rem;
}

h5 {
    font-size: 0.77rem;
}

small {
    font-size: 0.75rem;
}

.profile-photo img {
    width: 3rem;
    height: 3rem;
    /* overflow: hidden; */
    border-radius: 50%;
}

.text-muted {
    color: var(--clr-info-dark);
}

p {
    color: var(--clr-dark-variant);
}

b {
    color: var(--clr-dark);
}

.primary {
    color: var(--clr-primary);
}

.success {
    color: var(--clr-success);
}

.danger {
    color: var(--clr-danger);
}

.warning {
    color: var(--clr-warnig);
}


/* aside */

aside {
    position: sticky;
    top: 1.4rem;
    height: 100vh;
}

aside .top {
    background: var(--clr-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 1rem 1rem 0 0;
}

aside .logo {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;

}

aside .logo img {
    width: 60%;
    height: auto;
}

aside .top div.close span {
    display: none;
}

/* ===================
Sidebar
================== */

/*
    TODO: NEED TO CHAGNE APPROACH FOR CENTER SPACING
*/
/* aside {
    margin-right: 20px;
}  */

aside .sidebar {
    background: var(--clr-white);
    display: flex;
    flex-direction: column;
    height: 80%;
    position: relative;
    border-radius: 0 0 1rem 1rem;
}

aside h3 {
    font-weight: 500;
}

aside .sidebar a {
    display: flex;
    color: var(--clr-info-dark);
    margin-left: 2rem;
    gap: 1rem;
    align-items: center;
    height: 3.3rem;
    transition: all .1s ease;
}

aside .sidebar a span {
    font-size: 1.6rem;
    transition: all .3s ease-in-out;

}

aside .sidebar a:last-child {
    position: absolute;
    bottom: 1rem;
    width: 80%;
}

aside .sidebar a:hover {
    color: var(--clr-primary);
    border-left: 5px solid var(--clr-primary);
    margin-right: calc(1rem - 3px);
    background-color: var(--clr-light);
}

aside .sidebar a:hover span {
    margin-left: 1rem;
}


/* ----------------------------
--------- Main--------------
------------------------------ */
main {
    margin-top: 1.4rem;
    width: auto;
    overflow-y: auto;
    height: 96vh;

}

main input {
    background-color: transparent;
    border: 0;
    outline: 0;
    color: var(--clr-dark);
}

/* main .date {
    display: inline-block;
    background: var(--clr-white);
    border-radius: var(--border-radius-1);
    margin-top: 1rem;
    padding: 0.5rem 1.6rem;
} */

/* 
main .insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

main .insights>div {
    background-color: var(--clr-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
    transition: all .3s ease;
}

main .insights>div:hover {
    box-shadow: none;
}

main .insights>div span {
    background: coral;
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--clr-white);
    font-size: 2rem;
}

main .insights>div.expenses span {
    background: var(--clr-danger);
}

main .insights>div.income span {
    background: var(--clr-success);
}

main .insights>div .middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

main .insights>div .middle h1 {
    font-size: 1.6rem;
}

main h1 {
    color: var(--clr-dark);
}

main .insights h1 {
    color: var(--clr-dark);
}

main .insights h3 {
    color: var(--clr-dark);
}

main .insights p {
    color: var(--clr-dark);
}

main .insights h3 {
    color: var(--clr-dark);
}

main .insights .progress {
    position: relative;
    height: 68px;
    width: 68px;
    border-radius: 50px;
}

main .insights svg {
    height: 150px;
    width: 150px;
    position: absolute;
    top: 0;
}

main .insights svg circle {
    fill: none;
    stroke: var(--clr-primary);
    transform: rotate(270, 80, 80);
    stroke-width: 5;
}

main .insights .sales svg circle {
    stroke-dashoffset: 0;
    stroke-dasharray: 150;
}

main .insights .expenses svg circle {
    stroke-dashoffset: 10;
    stroke-dasharray: 150;
}

main .insights .sales svg circle {
    stroke-dashoffset: 0;
    stroke-dasharray: 150;
}

main .insights .income svg circle {
    stroke: var(--clr-success);
}

main .insights .progress .number {
    position: absolute;
    top: 5%;
    left: 5%;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
 */
/* recent order */
/* main .recent_order {
    margin-top: 2rem;
}

main .recent_order h2 {
    color: var(--clr-dark);
}

main .recent_order h2 {
    margin-bottom: 0.8rem;
}

main .recent_order table {
    background: var(--clr-white);
    width: 100%;
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all .3s ease;
    color: var(--clr-dark);
}

main .recent_order table:hover {
    box-shadow: none;
}

main table tbody td {
    height: 3.8rem;
    border-bottom: 1px solid var(--clr-white);
    color: var(--clr-dark-variant)
}

main table tbody tr:last-child td {
    border: none;
}

main .recent_order a {
    text-align: center;
    display: block;
    margin: 1rem;
} */

/* center notes */
/* Container for all notes */
.notes-template {
    max-width: 850px;
    margin: 0 auto;
}

.notes-container {
    display: flex;
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, 20rem); */
    /* justify-content: center; */
    flex-direction: column;
    gap: 1rem;
    margin: 2rem auto;
    align-items: center;


}

/* Main Note Card Style */
.main-note-card {
    display: block;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    /* background: linear-gradient(135deg, #ffffff 40%, #f0f8ff 100%); */
    background-color: var(--clr-white);
    border: 1px solid var(--clr-danger);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Main Note Card Header */
.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-san-serif);

}

.note-header h2 {
    font-size: 1.8rem;
    color: var(--clr-dark);
    font-weight: bold;
    /* background: linear-gradient(to right, #2b579a, #f0ad4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}

/* .total-notes {
    font-size: 0.9rem;
    background: var(--clr-success);
    color: var(--clr-white);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
} */

/* Author and Last Updated Info */
/* .note-info {
    font-size: 0.9rem;
    color: var(--clr-dark-variant);
    margin-top: 0.8rem;
    font-style: italic;
}

.note-info p {
    margin: 0.2rem 0;
} */

/* Sub-Card Styling */
/* .sub-notes-container {
    display: flex; */
/* display: grid; */
/* grid-template-columns: repeat(auto-fit, 20rem); */
/* justify-content: center;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem auto 2rem 2rem;
} */

.sub-cards-container {
    display: flex;
    /* display: grid;
    grid-template-columns: repeat(auto-fit, 20rem); */
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    align-items: center;
}

/* .sub-card {
    background: linear-gradient(135deg, #f8f9fa 40%, #d1ecf1 100%);
    padding: 1rem;
    border-radius: 12px;
    width: calc(50% - 1rem);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-san-serif);
}

.sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.sub-card h3 {
    font-size: 1.2rem;
    color: var(--clr-primary);
    margin: 0 0 0.5rem;
}

.sub-card .author {
    font-size: 0.85rem;
    color: var(--clr-dark-variant);
    font-style: italic;
    margin: 0;
}

.sub-card .updated {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin: 0.2rem 0 0;
} */

/* note details */
.notes-details-container {
    max-width: 600px;
    display: flex;
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, 20rem); */
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem auto;
}

.details-note-card {
    padding: .8rem;
    margin: 1rem 0;
    border-radius: 8px;
    background-color: var(--clr-light, #f9f9f9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--clr-primary, #007bff);
    transition: transform 0.2s, color 0.2s;
}

.download-btn:hover {
    color: var(--clr-primary-hover, #0056b3);
    transform: scale(1.1);
}

.note-details-header {
    display: flex;
    justify-content: space-between;
}

.note-details-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--clr-primary, #007bff);
}

/* center notes */
/*********************
Right Side
**********************/
.right {
    position: sticky;
    top: 1.4rem;
    height: 100vh;
}

.right h2 {
    color: var(--clr-dark);
}

.right .top {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 1rem;
}

/* .right .top button {
    display: none;
} */

.right .profile .info {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right .profile .info p:hover {
    white-space: normal;
    overflow: visible;
    font-size: 8px;
    /* text-overflow: clip; */
}

/* .theme-toggler {
    border-radius: var(--border-radius-1);
    overflow: hidden;
}

.right .theme-toggler {
    background: var(--clr-white);
    display: flex;
    justify-content: space-between;
    height: 1.6rem;
    min-width: 3.2rem;
    cursor: pointer;
}

.right .theme-toggler span {
    font-size: 1rem;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right .theme-toggler span.active {
    background: var(--clr-primary);
    color: #fff;
} */
/* .theme-toggler-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 0.8rem;
    background: var(--clr-light);
    border-radius: var(--border-radius-1);
}

.theme-toggler {
    background: var(--clr-white);
    display: flex;
    justify-content: space-between;
    height: 2rem;
    min-width: 4rem;
    cursor: pointer;
    border-radius: var(--border-radius-1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.theme-toggler span {
    font-size: 1.2rem;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggler span.active {
    background: var(--clr-primary);
    color: #fff;
    border-radius: var(--border-radius-1);
} */

.theme-toggler {
    width: 1.5rem;
    height: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff8c;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease;
}

/* 
.theme-toggler:hover {
    transform: scale(1.1);
} */

.theme-toggler span {
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}


.right .top .profile {
    display: flex;
    gap: 1rem;
    text-align: right;
}

/* LinkedIn-style Post Styles */
.social-media {
    max-width: 850px;
    margin: 20px auto;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* padding-right: var(--padding-1); */
}

.post {
    background-color: var(--clr-white);
    border: 1px solid var(--clr-info-light);
    border-radius: var(--border-radius-2);
    /* margin-bottom: 16px; */
    margin: 0 16px 16px 16px;
    /* box-shadow: var(--box-shadow); */
}

/* Post Header Styles */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--padding-1);
    border-bottom: 1px solid var(--clr-info-light);
}

.post-input {
    background-color: var(--clr-white);
    border: 1px solid var(--clr-dark);
    padding: 0.5rem;
    border-radius: 0.5rem;
    max-width: 100%;
    min-width: 50%;
    width: 100%;
    min-height: 5rem;
    color: var(--clr-dark-variant);
}

.post-input::placeholder {
    color: var(--clr-dark-variant);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--clr-dark);
    text-decoration: none;
    font-size: 14px;
}

.author-name:hover {
    text-decoration: underline;
}

.author-subtitle {
    color: var(--clr-dark-variant);
    font-size: 12px;
    margin: 0;
}

.post-timestamp {
    color: var(--clr-dark-variant);
    font-size: 12px;
    margin: 0;
}

.post-actions-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-options-btn {
    background: none;
    border: none;
    color: var(--clr-dark-variant);
    cursor: pointer;
    font-size: 16px;
}

.profile-info .profile-follow-btn,
.post-actions-menu .profile-follow-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--clr-dark-variant);
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info .profile-follow-btn,
.post-actions-menu .profile-follow-btn:hover {
    color: var(--clr-dark);
    transform: scale(1.1);
}

.profile-info .profile-follow-btn,
.post-actions-menu .profile-follow-btn[data-action="unfollow"] i {
    color: var(--clr-danger);
}

.profile-info .profile-follow-btn,
.post-actions-menu .profile-follow-btn[data-action="unfollow"]:hover i {
    color: var(--clr-danger);
}

/* Post Content Styles */
.post-content {
    padding: var(--padding-1);
}

.post-content p {
    margin: 0 0 12px 0;
    color: var(--clr-dark);
    line-height: 1.4;
}

/* Post Images Styles */
.post-images {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    ;
}

.single-image {
    grid-template-columns: 1fr;
}

.multi-image {
    grid-template-columns: repeat(2, 1fr);
}

.post-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.with-overlay {
    position: relative;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr-white);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* Post Interactions Styles */
.post-interactions {
    display: flex;
    justify-content: space-around;
    padding: var(--padding-1);
    border-top: 1px solid var(--clr-info-light);
}

.interaction-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-info-dark);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease;
}

.interaction-btn:hover {
    color: var(--clr-primary);
}

.interaction-btn i {
    font-size: 16px;
}

.like-btn i {
    color: var(--clr-danger);
}

/* Write Post Styles */
.write-post {
    background-color: var(--clr-white);
    border: 1px solid var(--clr-info-light);
    border-radius: var(--border-radius-2);
    padding: var(--padding-1);
    margin: 0 16px 16px 16px;

}

/* Toolbar Styles */
.editor-toolbar {
    display: flex;
    /* justify-content: space-evenly; */
    gap: 8px;
    background-color: var(--clr-white);
    border: 1px solid var(--clr-info-light);
    border-radius: var(--border-radius-2);
    margin-bottom: 10px;
    padding: 5px;
}

.toolbar-btn {
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius-1);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--clr-dark-variant);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2rem;
}

.toolbar-btn:hover {
    background-color: var(--clr-light);
    border-color: var(--clr-info-light);
}

.toolbar-btn b,
.toolbar-btn i {
    pointer-events: none;
}

/* 
.toolbar-btn[data-command="bold"] b {
    font-weight: bold;
}

.toolbar-btn[data-command="italic"] {
    font-style: italic;
} */

/* Enhanced Post Content Styles */
.post-content {
    line-height: 1.6;
}

.post-content blockquote {
    border-left: 4px solid var(--clr-primary);
    margin: 1.5em 0;
    padding: 1em;
    background-color: var(--clr-light);
    font-style: italic;
    color: var(--clr-dark-variant);
    border-radius: var(--border-radius-1);
    position: relative;
}

.post-content blockquote::before {
    content: open-quote;
    font-size: 2rem;
    color: var(--clr-primary);
    opacity: 0.7;
}

.post-content blockquote::after {
    content: close-quote;
    font-size: 2rem;
    color: var(--clr-primary);
    opacity: 0.7;
}

.post-content a {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px dotted var(--clr-primary);
}

.post-content a:hover {
    color: var(--clr-primary-variant);
    border-bottom-style: solid;
}

.post-content ul,
.post-content ol {
    margin-left: 1.5em;
    padding-left: 1em;
    margin-bottom: 1em;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 0.5em;
    line-height: 1.6;
    color: var(--clr-dark-variant);
}

.post-content code {
    background-color: var(--clr-light);
    border: 1px solid var(--clr-info-light);
    /* border-radius: var(--border-radius-1); */
    font-family: 'Courier New', monospace;
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-content pre {
    background-color: var(--clr-light);
    border: 1px solid var(--clr-info-light);
    /* border-radius: var(--border-radius-1); */
    padding: 1em;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    margin: 1em 0;
}

.post-content pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 0.9em;
}

.write-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.post-upload-actions {
    display: flex;
    align-items: center;
    /* gap: 12px; */
    margin: 5px 10px;
}

.upload-image-btn {
    color: var(--clr-dark-variant);
    cursor: pointer;
    font-size: 20px;
}

.upload-image-btn:hover {
    color: var(--clr-primary);
}

.publish-btn {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-2);
    font-weight: 600;
}

.publish-btn:hover {
    background-color: var(--clr-primary-variant);
}

/* Post Options Modal ... */
.post-options-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    background: var(--clr-white);
    border-radius: var(--border-radius-2);
    z-index: 10;
    padding: 0.5rem 0;
    translate: -50% -50%;
    transform-origin: top right;
    animation: fadeIn 0.2s ease-out;
}

.post-options-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-options-list li {
    padding: var(--padding-1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    ;
}

.post-options-list li:hover {
    background-color: var(--clr-light);
    margin: 0 5px;
}

.post-options-list li span {
    color: var(--clr-dark);
    font-weight: 500;
}

.delete-option {
    color: var(--clr-danger);
}

.delete-option svg {
    stroke: var(--clr-danger);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Confirmation Modal Styles */
.delete-confirmation-modal {
    width: 350px;
    text-align: center;
    padding: var(--padding-1);
    border-radius: var(--border-radius-2);
}

.delete-confirmation-modal h4 {
    color: var(--clr-danger);
    margin-bottom: 1rem;
}

.delete-confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.delete-confirmation-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius-2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-cancel-btn {
    background: var(--clr-light);
    color: var(--clr-dark);
}

.delete-confirm-btn {
    background: var(--clr-danger);
    color: var(--clr-white);
}


.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

.notification {
    position: relative;
    margin-bottom: 10px;
    padding: 12px 20px;
    background: #333;
    color: white;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    width: 300px;
    word-wrap: break-word;
    text-align: center;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #F44336;
}

.notification.info {
    background: #2196F3;
}

.notification.slide-out {
    transform: translateX(100%);
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.delete-confirmation-modal {
    width: 350px;
    text-align: center;
    padding: var(--padding-1);
    border-radius: var(--border-radius-2);
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    transform-origin: top right;
    animation: fadeIn 0.2s ease-out;
}

.delete-confirmation-modal h4 {
    color: var(--clr-danger);
    margin-bottom: 1rem;

}

.delete-confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.delete-confirmation-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius-2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-cancel-btn {
    background: var(--clr-light);
    color: var(--clr-dark);
}

.delete-confirm-btn {
    background: var(--clr-light);
    color: var(--clr-dark);
}

/* profile_list page */
.profile-list-section {
    padding: 2rem;
    background-color: var(--clr-color-background);
    max-width: 850px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.2rem;
    color: var(--clr-primary);
}

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

.profile-card-list {
    background-color: var(--clr-white);
    border: 1px solid var(--clr-darker-background);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card-list:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.05);
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.profile-card-header {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}


.profile-card-header h2 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--clr-primary);
    margin: 4px 0;

}

.follow-btn {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* profile page */
.profile-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 1rem;

}

.profile-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--clr-color-background);
    border-radius: var(--card-border-radius);
    justify-content: space-evenly;
    max-width: 700px;
}

.profile-picture-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--clr-primary);
    background: var(--clr-white);
}

.profile-page-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.profile-page-picture:hover {
    transform: scale(1.05);
}

.profile-info {
    flex-grow: 0.6;
    flex-shrink: 1;
    flex-basis: 0%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-items: space-evenly;
}

.top-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-username {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-dark);
}

.edit-profile-btn,
.profile-follow-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--border-radius-1);
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

.edit-profile-btn {
    background: var(--clr-buttons);
    color: var(--clr-white);
}

.profile-follow-btn {
    background: var(--clr-primary);
    color: var(--clr-white);
}

.profile-follow-btn:hover,
.edit-profile-btn:hover,
.toggle-bio-btn:hover {
    opacity: 0.8;
}

/* Hide the bio-container by default */
.bio-container {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: var(--clr-white);
    border: 1px solid var(--clr-info-light);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Style the toggle button */
.toggle-bio-btn {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
}

#profile-edit-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    box-shadow: var(--box-shadow);
    background: var(--clr-white);
    width: 500px;
    max-width: 95%;
    animation: modalFadeIn 0.3s ease-out;
}

#profile-edit-modal::backdrop {
    background: rgba(0, 51, 102, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: var(--padding-1);
}

.modal-content h3 {
    color: var(--clr-primary);
    text-align: center;
    margin-bottom: var(--padding-1);
    position: relative;
    font-weight: 600;
}

.modal-content h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--clr-gradient-blue);
}

.modal-content form p {
    margin-bottom: var(--padding-1);
    position: relative;
}

.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--clr-dark-variant);
    font-weight: 500;
    transition: color 0.3s ease;
}

.modal-content .form-control {
    width: 100%;
    padding: var(--padding-1);
    border: 1px solid var(--clr-info-light);
    border-radius: var(--border-radius-2);
    background: var(--clr-color-background);
    color: var(--clr-dark);
    transition: all 0.3s ease;
}

#id_about {
    max-width: 100%;
    min-height: 50px;

}

.modal-content .form-control:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(115, 128, 236, 0.2);
}


.modal-content .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    outline: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content .btn:hover::before {
    opacity: 1;
}

.modal-content .submit-btn {
    background: linear-gradient(45deg, var(--clr-primary), var(--clr-primary-variant));
    color: var(--clr-white);
    margin-right: 0.5rem;
}

.modal-content .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.modal-content .cancel-btn {
    background: linear-gradient(45deg, var(--clr-danger), #ff5252);
    color: var(--clr-white);
}

.modal-content .cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: var(--padding-1);
    margin-top: var(--padding-1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }

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

/* File Input Styling */
.form-control[type="file"] {
    background: var(--clr-color-background);
    border: 2px dashed var(--clr-info-light);
    padding: 0.5rem;
}

.form-control[type="file"]::-webkit-file-upload-button {
    background: var(--clr-buttons);
    color: var(--clr-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-1);
    cursor: pointer;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    background: var(--clr-buttons-hover);
}


.profile-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-dark-variant);
}

.profile-stats strong {
    font-weight: 700;
    color: var(--clr-dark);
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    max-width: 700px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn.active {
    font-weight: bold;
    color: var(--clr-dark);
    border-bottom: 2px solid var(--clr-dark);
}

.tab-content {
    display: none;
    max-width: 700px;
}

.tab-content:not(.hidden) {
    display: block;
}

.profile-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.post-card {
    background: var(--clr-color-background);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: auto;
    width: 80%;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-username {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-dark);
}

.post-date {
    font-size: 0.8rem;
    color: var(--clr-dark);
}

.post-image-container {
    margin-bottom: 0.75rem;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.post-content {
    font-size: 1rem;
    color: var(--clr-dark);
    margin-left: 10px;
}

.about-card {
    background: var(--clr-color-background);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.about-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.about-profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--clr-dark);
}

.about-name {
    color: var(--clr-dark);
}

.about-info {
    margin-top: 15px;
    text-align: left;
}

.about-info p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: var(--clr-dark);
}

.about-info strong {
    color: var(--clr-dark-variant);
}

@media (max-width: 960px) {

    /* .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.3rem;
    }
    .top-info {
        flex-direction: column;
    }

    .profile-stats {
        justify-content: center;
    } */
    .profile-picture-container {
        width: 80px;
        height: 80px;
    }

    .profile-header {
        gap: 10px;
    }

}


/* **********8
MEDIA QUERY
****************/
@media screen and (max-width:1200px) {
    .container {
        /* width: 94%; */
        grid-template-columns: 7rem auto 7rem;
        overflow: hidden;
    }
    
    .right .profile .info {
        display: none;
    }


    aside .sidebar h3 {
        display: none;
    }

    aside .sidebar a {
        width: 4.6rem;
    }

    aside .sidebar a:hover span {
        margin-left: 0.5rem;
    }

    aside .sidebar a:last-child {
        position: relative;
        margin-top: 1.8rem;
        width: 4.6rem;
    }

    /* main .insights {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    } */
}

/* ****************
MEDIA QUERY PHONE
************************/

@media screen and (max-width:800px) {
    .container {
        width: 100%;
        grid-template-columns: repeat(1, 1fr);
        margin: 0;
    }

    aside {
        max-width: 16rem;
        z-index: 3;
        height: 100vh;
        background-color: var(--clr-white);
        position: fixed;
        top: 0;
        left: 0;
        transform: scaleX(0);
        transform-origin: left;
        opacity: 0;
        transition: transform 0.6s ease, opacity 0.6s ease;
        margin-top: 73.6px;
    }

    /* When the sidebar is active */
    aside.block {
        transform: scaleX(1);
        opacity: 1;
    }


    aside .logo h2 {
        display: inline;
    }

    aside .sidebar h3 {
        display: inline;
    }

    aside .sidebar a {
        width: 80%;
        height: 3.4rem;
    }

    aside .sidebar a:last-child {
        position: absolute;
        bottom: 2rem;
        width: 80%;
    }

    aside .top div.close span {
        display: inline;
        position: absolute;
        right: 0;
        margin-right: 30px;
        top: 0;
        font-size: 35px;
        cursor: pointer;
        color: var(--clr-dark-variant);
    }

    .right .top {
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 0.8rem;
        background: var(--clr-white);
        height: 4.6rem;
        width: 100%;
        z-index: 2;
        box-shadow: 0 1rem 1rem var(--clr-light);
        margin: 0;
        overflow: hidden;
    }

    .right .profile {
        position: absolute;
        left: 50%;
    }

    .right .top .theme-toggler {
        /* width: 4.4rem; */
        position: absolute;
        left: 45%;
    }
    .right .profile .info {
        display: block;
    }
    /* .right .profile .info {
        display: none;
    } */

    .right .top #menu_bar {
        background: transparent;
        cursor: pointer;
        color: var(--clr-dark);
        position: absolute;
        left: 1rem;

    }

    .menu-icon {
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        cursor: pointer;
        background: transparent;
        border: none;
        position: relative;
        scale: 0.6;
    }

    .menu-icon span {
        display: block;
        width: 30px;
        height: 4px;
        background: var(--clr-dark);
        border-radius: 2px;
        transition: 0.6s ease-in-out;
    }

    /* Middle bar disappears */
    .menu-icon.open span:nth-child(2) {
        width: 0;
    }

    /* Top bar rotates */
    .menu-icon.open span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
        width: 40px;
    }

    /* Bottom bar rotates */
    .menu-icon.open span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
        width: 40px;
    }

    .block {
        display: block;
    }


    .responsive-margin-top {
        margin-top: 4rem;
    }


    .profile-picture-container {
        width: 120px;
        height: 120px;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .main-note-card {
        padding: 1.5rem;
    }

    .main-note-card h2 {
        font-size: 1.5rem;
    }

    .sub-card {
        width: 100%;
    }

    .right .profile .info {
        display: none;
    }

    .right .profile {
        position: absolute;
        left: 80%;
    }

    .right .top .theme-toggler {
        /* width: 4.4rem; */
        position: absolute;
        left: 70%;
    }
}

/* Styling for the image preview area */
.post-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    margin-bottom: 10px;
}

.preview-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.image-filename {
    font-size: 12px;
    margin-top: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.remove-image-btn:hover {
    background: rgba(255, 0, 0, 0.7);
}