* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/*------------------------login home page------------------------------*/
.home-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    /*background: red;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

.home-logo {
    font-size: 2em;
    color: #fff;
    user-select: none;
}

.navigation a {
    position: relative;
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
}

.home-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url("../images/Brandenburg Brueke.jpg") no-repeat;
    background-size: cover;
    background-position: center;
}

.home-wrapper {
    position: relative;
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: height .2s ease;
}

.home-wrapper.active {
    height: 690px;
}

.home-wrapper .form-box {
    width: 100%;
    padding: 40px;
}

.home-wrapper .form-box.login {
    transition: transform .18s ease;
    transform: translateX(0);
}

.home-wrapper.active .form-box.login {
    transition: none;
    transform: translateX(-400px);

}
.home-wrapper .form-box.create-account {
    position: absolute;
    transition: transform .18s ease;
    transform: translateX(400px);
}

.home-wrapper.active .form-box.create-account {
    position: absolute;
    transform: translateX(0px);
}

.home-wrapper h2 {
    font-size: 36px;
    text-align: center;
    color: #fff;
    margin-top: 30px;
}

.home-wrapper .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    font-weight: 500;
    pointer-events: none;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    border: 2px solid rgba(155, 255, 255, 0.2);
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    padding: 20px 45px 20px 20px;
}

.input-box input::placeholder {
    color: #fff;
}

.input-box ion-icon {
    position: absolute;
    right: 20px;
    top: 30%;
    transform: translate(-50%);
    font-size: 20px;
}

.home-wrapper .remember-forgot {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 15px;
}

.remember-forgot label input {
    accent-color: #fff;
    margin-right: 3px;

}

.remember-forgot a {
    text-decoration: none;
    color: #fff;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.home-wrapper .btn {
    width: 100%;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

button:hover {
    background: transparent;
    color: white;
    outline: 1px solid #fff;
}

/*p {*/
/*    font-size: 12px;*/
/*    color: #fff;*/
/*    margin-top: 15px;*/
/*}*/

.home-wrapper .login-create-account, .home-wrapper .create-account-login, .home-wrapper .check {
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 15px;
}

.login-create-account p a, .create-account-login p a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.login-create-account p a:hover, .create-account-login p a:hover {
    text-decoration: underline;
}



/*--------------media query for home----------------/

@media (max-width: 900px) {
    .home-wrapper {
        padding: 20px 10%;
    }


}

/*------------------------------------------------------*/

body {
    background: #efefef;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1876f2;
    padding: 5px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    width: 160px;
    margin-right: 45px;
    color: white;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/*.nav-left ul li {*/
/*    list-style: none;*/
/*    display: inline-block;*/
/*}*/

/*.nav-left ul li img {*/
/*    width: 28px;*/
/*    margin: 0 15px;*/
/*}*/

.nav-user-icon img {
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/*.nav-user-icon {*/
/*    margin-left: 30px;*/
/*}*/

.messages-icon span, .notifications-icon span {
    display: inline-block;
    position: relative;
}

.messages-icon img, .notifications-icon img {
    width: 45px;
}

.messages-count, .notifications-count {
    background-color: red;
    color: white;
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 5px;
}

.search-box .input-row {
    background: #efefef;
    width: 350px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-box .input-row img {
    width: 18px;
}

.search-box .input-row input {
    width: 100%;
    background: transparent;
    padding: 10px;
    outline: none;
    border: 0;
}

.result-box {
    background: #fff;
    width: 350px;
    margin: 200px auto 0;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}
.result-box ul {
    border-top: 1px solid #999;
    padding: 15px 10px;
}

.result-box ul li {
    list-style: none;
    border-radius: 3px;
    padding: 15px 10px;
    cursor: pointer;
}

.online {
    position: relative;
}

.online::after {
    content: "";
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #41db51;
    position: absolute;
    top: 0;
    right: 0;
}

/*.container {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    padding: 13px 5%;*/
/*    gap: 10px;*/
/*}*/

.sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;

}

.sidebar-title h4 {
    font-weight: 600;
    font-size: 16px;
}

.sidebar-title a {
    text-decoration: none;
    color: #1876f2;
    font-size: 12px;
}

.left-sidebar {
    background: #cbdffa;
    flex-basis: 25%;
    position: sticky;
    top: 70px;
    align-self: flex-start;
}

.right-sidebar {
    background: #cbdffa;
    flex-basis: 25%;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    padding: 20px;
    border-radius: 4px;
    color: #626262;
}

/*.left-sidebar, .right-sidebar {*/
/*    flex-shrink: 0;*/
/*    overflow: hidden;*/
/*}*/

.main-content {
    flex-basis: 47%;
}

.imp-links a {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: #626262;
    width: fit-content;
}

.imp-links a img {
    width: 25px;
    margin-right: 15px;
}

.online-list {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.online-list .online img{
    width: 40px;
    border-radius: 50%;
}

.online-list .online {
    width: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.online-list .online::after {
    top: unset;
    bottom: 5px;
}


/*.write-post-container {*/
/*    width: 100%;*/
/*    background: #fff;*/
/*    border-radius: 6px;*/
/*    padding: 20px;*/
/*    color: #626262;*/
/*}*/

/*.user-profile {*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/

/*.user-profile img {*/
/*    width: 45px;*/
/*    border-radius: 50%;*/
/*    margin-right: 10px;*/
/*}*/

/*.user-profile p {*/
/*    margin-bottom: -5px;*/
/*    font-weight: 500;*/
/*    color: #626262;*/
/*}*/

/*.user-profile small {*/
/*    font-size: 12px;*/
/*}*/

/*.post-input-container {*/
/*    padding-left: 55px;*/
/*    padding-top: 20px;*/
/*}*/

/*.post-input-container textarea {*/
/*    width: 100%;*/
/*    border: 0;*/
/*    outline: none;*/
/*    border-bottom: 1px solid #ccc;*/
/*    background: transparent;*/
/*    resize: none;*/
/*}*/

/*.add-post-links {*/
/*    display: flex;*/
/*    margin-top: 10px;*/
/*}*/

/*.add-post-links a {*/
/*    text-decoration: none;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    color: #626262;*/
/*    margin-right: 30px;*/
/*    font-size: 13px;*/
/*}*/

/*.add-post-links img {*/
/*    width: 20px;*/
/*    margin-right: 10px;*/
/*}*/

/*.post_button {*/
/*    float: right;*/
/*    background-color: #405d9b;*/
/*    border: none;*/
/*    color: #fff;*/
/*    padding: 4px;*/
/*    font-size: 14px;*/
/*    border-radius: 2px;*/
/*    width: 50px;*/
/*}*/

/*.post-container {*/
/*    width: 100%;*/
/*    background: #fff;*/
/*    border-radius: 6px;*/
/*    padding: 20px;*/
/*    color: #626262;*/
/*    margin: 20px 0;*/

/*    max-width: 100%; !* Ensures container does not exceed its parent's width *!*/
/*    overflow: hidden; !* Ensures content doesn’t overflow *!*/
/*    word-wrap: break-word; !* Break long words *!*/
/*}*/




.write-post-container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    font-family: sans-serif;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.post-input-container textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    background: #f5f5f5;
}

.add-post-links {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
}

.photo-video-label, .location-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #666;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.photo-video-label:hover, .location-label:hover {
    background-color: #f0f0f0;
}

#location {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-left: 10px;
}

#char-count {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-bottom: 10px;
}

#post_button {
    background: blueviolet;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    float: right;
}

#post_button:hover {
    background: rgb(153, 78, 223);
}

/* Location Widget Styles */
.location-widget-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999; /* Very high z-index to ensure it's above everything */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.location-widget {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.widget-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.close-widget {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-widget:hover {
    background: #f5f5f5;
    color: #666;
}

.location-search-group {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.location-search-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.location-search-group input:focus {
    outline: none;
    border-color: blueviolet;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.location-search-group button {
    padding: 12px 20px;
    background: blueviolet;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.location-search-group button:hover {
    background: rgb(153, 78, 223);
}

.widget-map {
    height: 220px;
    margin: 20px 0;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin: 15px 0;
    display: none;
    padding: 10px;
    background: #fdf2f2;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

.recent-searches {
    margin-top: 20px;
}

.recent-searches h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.recent-searches ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-searches li {
    margin-bottom: 8px;
}

.recent-searches a {
    color: blueviolet;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.2s;
    font-size: 14px;
}

.recent-searches a:hover {
    background: #f8f4ff;
    text-decoration: none;
}

.widget-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.widget-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.cancel-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.select-btn {
    background: blueviolet;
    color: white;
}

.cancel-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.select-btn:hover {
    background: rgb(153, 78, 223);
}

.select-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.selected-location {
    background: linear-gradient(135deg, #f8f4ff 0%, #f0e6ff 100%);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid blueviolet;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-location .location-name {
    font-weight: 600;
    color: blueviolet;
    display: block;
    margin-right: 40px;
}

.selected-location .remove-location {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.selected-location .remove-location:hover {
    background: rgba(138, 43, 226, 0.1);
    color: blueviolet;
}

/* Ensure the location label is clickable */
.location-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.2s;
    user-select: none;
}

.location-label:hover {
    background-color: #f8f4ff;
    color: blueviolet;
}

/* Character counter styles */
#char-count {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 600px) {
    .location-widget {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .location-search-group {
        flex-direction: column;
    }

    .location-search-group button {
        width: 100%;
    }

    .widget-actions {
        flex-direction: column;
    }

    .widget-actions button {
        width: 100%;
    }
}



/*////////////////////////////////////////////////////////////*/

.user-profile span {
    font-size: 13px;
    color: #626262;
}

.post-text {
    color: #9a9a9a;
    margin: 15px 0;
    font-size: 15px;
    word-wrap: break-word;  /* Ensures long words wrap */
    overflow-wrap: break-word; /* Ensures text breaks properly */
    white-space: normal; /* Allows wrapping while ignoring excessive whitespace */
    max-width: 100%; /* Prevents text from exceeding its container */
    overflow: hidden; /* Ensures text doesn't push the container */
    display: block;
}

.post-text span {
    color: #626262;
    font-weight: 500;
}

.post-text a {
    color: #1876f2;
    text-decoration: none;
}

.post-img {
    /*width: 100%;*/
    border-radius: 4px;
    margin-bottom: 5px;
    max-width: 100%; /* Ensures images do not overflow */
    height: auto; /* Maintains aspect ratio */
    object-fit: contain; /* Ensures the image is fully visible inside its container */
    display: block;
}

.post-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-icons div img {
    width: 18px;
    margin-right: 10px;
}

.activity-icons div {
    display: inline-flex;
    align-items: center;
    margin-right: 30px;
}

.post-profile-icon {
    display: flex;
    align-items: center;
}

.post-profile-icon img {
    width: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

.post-row a {
    color: #9a9a9a;
}

.load-more-btn {
    display: block;
    margin: auto;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #9a9a9a;
    color: #626262;
    background: transparent;
    border-radius: 4px;
}

.footer {
    text-align: center;
    color: #9a9a9a;
    padding: 10px 0 20px;
    font-size: 13px;
}

.settings-menu {
    position: absolute;
    width: 90%;
    max-width: 350px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    top: 104%;
    right: 5%;
    max-height: 0;
    transition: max-height 0.3s;
}

.settings-menu-height {
    max-height: 450px;
}

.settings-menu-inner {
    padding: 20px;
}

.settings-menu-inner hr {
    border: 0;
    height: 1px;
    background: #9a9a9a;
    margin: 10px 0;
}

.user-profile a {
    font-size: 12px;
    color: #1876f2;
    text-decoration: none;
}

.settings-links {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.settings-links .settings-icon {
    width: 38px;
    margin-right: 10px;
    border-radius: 50%;
}

.settings-links a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #626262;
}

/*--------profile page- --------------*/
.profile-container {
    padding: 20px 15%;
    color: #626262;
}

.cover-img-container {
    width: 100%;
    max-height: 400px; /* Adjust based on your preference */
    /*overflow: hidden;*/
    position: relative;
    overflow: hidden;
}


.cover-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    margin-bottom: 14px;
    background-size: cover;   /* Crops and fills */
    background-position: center; /* Centers image */
    background-repeat: no-repeat;

    /* Center vertically */
    top: 50%;
    transform: translateY(-50%);
}

.profile-details {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.profile-details-row {
    display: flex;
    align-items: flex-start;
}

.profile-details-img {
    width: 100px;
    margin-right: 20px;
    border-radius: 50%;
}

.profile-details-row div h3 {
    font-size: 25px;
    font-weight: 600;
}

.profile-details-row div p {
    font-size: 13px;
}

.profile-details-row div img {
    width: 25px;
    border-radius: 50%;
    margin-top: 12px;
}

.change-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    border: none;
}

.change-btn i {
    font-size: 14px;
}

.change-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.profile-details-right button {
    background: #1876f2;
    border: 0;
    outline: 0;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    border-radius: 3px;
    margin-left: 10px;
    cursor: pointer;
}

.profile-details-right img {
    height: 15px;
    margin-right: 10px;
}

.profile-details-right button:first-child {
    background: #e4e6eb;
    color: #000;
}

.profile-details-right {
    text-align: right;
}

.profile-details-right a {
    background: #e4e6eb;
    border-radius: 3px;
    padding: 12px;
    display: inline-flex;
    margin-top: 30px;
}

.profile-details-right a img {
    width: 20px;
}




/* General styling for navigation */
.profile-sections-buttons {
    display: flex;
    gap: 20px; /* Space between items */
    background-color: #fff; /* Dark background */
    padding: 10px 20px;
}

/* Styling for links */
.profile-sections-buttons a {
    color: #b0b3b8; /* Light gray text */
    text-decoration: none; /* Remove underline */
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: color 0.3s ease-in-out;
}

/* Hover effect */
.profile-sections-buttons a:hover {
    color: #ffffff; /* Bright white on hover */
}

/* Active state */
.profile-sections-buttons a.active {
    color: #1877f2; /* Blue color for active section */
    position: relative;
}

/* Underline effect for active link */
.profile-sections-buttons a.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #1877f2; /* Blue underline */
    position: absolute;
    bottom: -2px;
    left: 0;
}


.overlay {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000000aa;
}

.modal-container {
    max-width: 600px;
    margin: auto;
    min-height: 400px;
    flex: 2.5;
    padding: 20px;
    padding-right: 0px;
}

.bordered {
    border: solid thin #aaa;
    padding: 10px;
    background-color: white;
}

.image-preview {
    text-align: center;
    margin-top: 40px;
}

.preview-img {
    max-width: 500px;
}


.change-page-button input {
    width: 150px;
    cursor: pointer;"
}

/*next vs previous page*/

.error-message {
    text-align: center;
    font-size: 12px;
    color: white;
    background-color: grey;
}

.block-message {
    text-align: center;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px;
}

/*.follow-user-button {*/
/*    margin-right: 10px;*/
/*    display: inline-block;*/
/*    padding: 6px 12px;*/
/*    background-color: #007BFF;*/
/*    color: white;*/
/*    text-decoration: none;*/
/*    border-radius: 4px;*/
/*}*/

/* Base follow button styles */
.follow-user-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid;
}

/* Not following state - blue theme */
.follow-user-button not-following {
    background-color: #1d4ed8; /* Blue background */
    color: white;
    border-color: #1d4ed8;
}

.follow-user-button not-following:hover {
    background-color: #1e40af; /* Darker blue on hover */
    border-color: #1e40af;
    transform: translateY(-1px);
}

/* Following state - green theme */
.follow-user-button following {
    background-color: #16a34a; /* Green background */
    color: white;
    border-color: #16a34a;
}

.follow-user-button following:hover {
    background-color: #dc2626; /* Red on hover (unfollow hint) */
    border-color: #dc2626;
    transform: translateY(-1px);
}

/*!* Alternative styling option - outline style *!*/
/*.follow-user-button.outline-style {*/
/*    background-color: transparent;*/
/*    border: 2px solid;*/
/*}*/

/*.follow-user-button.outline-style.not-following {*/
/*    color: #1d4ed8;*/
/*    border-color: #1d4ed8;*/
/*}*/

/*.follow-user-button.outline-style.not-following:hover {*/
/*    background-color: #1d4ed8;*/
/*    color: white;*/
/*}*/

/*.follow-user-button.outline-style.following {*/
/*    color: #16a34a;*/
/*    border-color: #16a34a;*/
/*}*/

/*.follow-user-button.outline-style.following:hover {*/
/*    background-color: #dc2626;*/
/*    color: white;*/
/*    border-color: #dc2626;*/
/*}*/

.block-user-button {
    margin-right: 10px;
    display: inline-block;
    padding: 6px 12px;
    background-color: red;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}



.profile-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 20px;
}

.info-col {
    flex-basis: 33%;
}

.post-col {
    flex-basis: 65%;
    max-width: 65%;
    overflow: hidden; /* Ensures content doesn't overflow */
    display: flex;
    flex-direction: column;
}

.profile-intro {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.profile-intro h3 {
    font-weight: 600;
}

.intro-text {
    text-align: center;
    margin: 10px;
    font-size: 15px;
}

.intro-text img {
    width: 15px;
    margin-bottom: -3px;
}

.profile-intro hr {
    border: none;
    height: 1px;
    background: #ccc;
    margin: 24px 0;
}

.profile-intro ul li {
    list-style: none;
    font-size: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.profile-intro ul li img {
    width: 26px;
    margin-right: 10px;
}

.title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title-box a {
    text-decoration: none;
    color: #1876f2;
    font-size: 14px;
}

.photo-box {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-gap: 10px;
    margin-top: 15px;
}

.photo-box div img {
    width: 100%;
    cursor: pointer;
}

.profile-intro p {
    font-size: 14px;
}

.friends-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ensures 3 columns */
    grid-gap: 10px;
    margin-top: 15px;
}

.friends-box div {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-align content */
    /*text-align: center;*/
    width: 100%; /* Ensures divs stretch to match image width */
}

.friends-box div img {
    width: 100%; /* Makes images take full width of the container */
    max-width: 150px; /* Prevents oversized images */
    height: auto; /* Keeps aspect ratio */
    object-fit: cover; /* Ensures consistent appearance */
}

.friends-box p {
    margin-top: 5px;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: grey;
}

.friends-box a {
    text-decoration: none;
}

.change-image-error {
    text-align: center;
    font-size: 12px;
    color: white;
    background-color: grey;
}

/*profile about*/

.profile-about {
    min-height: 400px;
    width=100%;
    background-color: white;
    text-align: center
}

.profile-section {
    min-height: 400px;
    width: 100%;
    background-color:white;
    text-align: center;
}

.info-col {
    padding: 20px;
    max-width: 450px;
    display: inline-block;
}

.user-name {
    width: 100%;
}

.post-update-message span {
    font-weight: normal;
    color: grey;'
}

.likes-message a {
    float: left;
    text-align: left;
}



/*********************************profile sections*/


/* Profile section container */
.profile-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.info-col {
    width: 100%;
}

/* Followers count text */
.info-col > p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* No followers message */
.info-col > br + text {
    display: block;
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-top: 20px;
}

/* Grid container for followers */
.grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Style the existing user_container for grid layout */
.grid-display .user_container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.grid-display .user_container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Style the profile images */
.grid-display #friend_img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #f0f2f5;
}

/* Style the names */
.grid-display .user_container p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 8px 0;
    line-height: 1.3;
}

/* Style the links */
.grid-display .user_container a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.grid-display .user_container a:hover {
    text-decoration: none;
    color: inherit;
}

/* Blocked user styling */
.grid-display .user_container div[style*="text-align: center"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Unblock button styling */
.grid-display .user_container a[onclick*="unblockUser"] {
    padding: 8px 16px !important;
    background-color: #dc3545 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    margin-top: 10px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    display: inline-block !important;
    width: auto !important;
}









/*search results*/

/* Container for each friend */
.search-results-container .user_container {
    display: center;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
}

.search-results-container .user_container:hover {
    background: #f5f5f5;
}

/* Profile Picture */
.search-results-container #friend_img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Friend Name */
.search-results-container .user_container p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Clickable Link */
.search-results-container .user_container a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.search-results-container .user_container a:hover p {
    text-decoration: underline;
}





/*messages*/
 .screen-container {
     margin: 0;
     font-family: Arial, sans-serif;
     height: 10vh;
     display: flex;
 }

.sidebar {
    width: 280px;
    background-color: #f9fafb; /* lighter, cleaner background */
    border-right: 1px solid #ddd;
    padding: 15px 10px;
    overflow-y: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar h3 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 1.2rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

/* Chat widget container */
.chat-widget {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: transparent;
    position: relative;
}

.chat-widget * {
    border: none !important;
    text-decoration: none !important;
}

.chat-widget:hover {
    background-color: #f8f9fa;
}

.chat-widget.active {
    background-color: #e8f0fe;
}

.chat-widget .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    border: none;
}

.chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width:
}

/* Name and time row */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    min-width: 0;
    border-bottom: none !important;
}

.chat-name {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    border-bottom: none !important;
    text-decoration: none !important;
}

.chat-time {
    font-size: 12px;
    color: #5f6368;
    flex-shrink: 0;
    margin-left: 8px;
    font-weight: 400;
}

/* Last message snippet */
.chat-snippet {
    font-size: 14px;
    color: #5f6368;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    margin-top: 2px;
}

/* Unread message indicator */
.unread-dot {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #1a73e8;
    border-radius: 50%;
    flex-shrink: 0;
}

/* When there are unread messages, make text bolder */
.chat-widget:has(.unread-dot) .chat-name {
    font-weight: 600;
    color: #1f1f1f;
}

.chat-widget:has(.unread-dot) .chat-snippet {
    color: #3c4043;
    font-weight: 500;
}

/* Remove default link styling */
.chat-widget a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
}

.chat-widget a:hover {
    text-decoration: none;
    color: inherit;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}

/* Last message snippet */
.chat-snippet {
    font-size: 0.9rem;
    color: #555;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Unread dot indicator */
.unread-dot {
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
    margin-left: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.7);
}

.screen-container {
    margin: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: #ffffff;
    border-bottom: 1px solid #ccc;
    padding: 15px;
    font-weight: bold;
}

.chat-header a {
    text-decoration: none;
}

.chat-header a:hover {
    text-decoration: underline;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    background-color: #e5ddd5;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 60%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 15px;
    line-height: 1.4;
}

.sent {
    background-color: #dcf8c6;
    align-self: flex-end;
}

.received {
    background-color: #ffffff;
    align-self: flex-start;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #fff;
}

.chat-input input,
.chat-input textarea {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background-color: #0084ff;
    color: white;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #006fd6;
}

.no-chat-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #666;
    font-size: 18px;
    background-color: #f8f9fa;
}



/**/




/*---------------------media query for homepage ------------------]*/

@media (max-width: 900px){
    .right-sidebar {
        display: none;
    }

    .left-sidebar {
        display: none;
    }

    .nav {
        flex-wrap: wrap;
    }

    /*.nav-left ul {*/
    /*    display: none;*/
    /*}*/

    .search-box {
        width: 150px;
    }

    .logo {
        width: 110px;
        margin-right: 20px;
    }

    /*.nav-left ul li img {*/
    /*    width: 20px;*/
    /*    margin: 0 8px;*/
    /*}*/

    .search-box {
        display: none;
    }

    .messages-icon, .notifications-icon {
        display: none;
    }

    .nav-user-icon img {
        width: 30px;
    }

    .nav-user-icon {
        margin-left: 0;
    }

    .add-post-links {
        flex-wrap: wrap;
    }

    .main-content {
        flex-basis: 100%;
    }

    .add-post-links a img {
        width: 16px;
        margin-right: 5px;
    }

    .post-input-container {
        padding-left: 0;
    }
}


/*------------------media query for profile page ---------------------*/

@media (max-width: 900px) {

    .profile-container {
        padding: 20px 5%;
    }

    .profile-details {
        flex-wrap: wrap;
    }

    .profile-details-right {
        text-align: left;
        margin-top: 15px;
    }

    .profile-details-right button {
        margin-left: 0;
        margin-right: 10px;
    }

    .profile-details-row h3 {
        font-size: 16px;
    }

    .profile-info {
        flex-wrap: wrap;
    }

    .info-col, .post-col {
        flex-basis: 100%;
        max-width: 100%;
    }
}
