:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    --spacing-base: 8px;
}
body {
    background: #EFF2F6;
    font-family: var(--font-family);
}



.user-card {
    border-top: 4px solid var(--primary-color);
    padding: var(--spacing-base);
}


.card-cover {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-right: -24px;
    margin-left: -24px;
    margin-top: -24px;
}

.card-pic-top.profile_pic {
    position: relative;
    margin-top: -75px;
    border: 4px solid #fff;
    float: right;
}
.user-profile-name{
    font-size: 2rem;
    font-weight: bold;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: right;
}
.allow-copy-container {
    cursor: pointer;
}

.allow-copy {
    border-bottom : 2px dashed var(--primary-color);
}

.allow-copy:hover, .allow-copy:focus, .allow-copy:active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

.share-btns {
    /* width: fit-content;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    background-color: #fff;
    position: relative;
    padding: 8px;
    margin-right: -100%; */
}

.edit-cover-btn {
    margin-top: 204px;
    margin-left: 15px;
    opacity: .9;
}

.serry-form {
    margin-top: 15px;
    margin-right: -15px;
    margin-left: -15px;
    background-color: #F2F2F2;
    border-radius: 8px;
    padding: 8px;

    .serry-form-profile-pic-container {
        position: absolute;
        right: 16px;
        opacity: .9;
    }
    .serry-form-profile-pic{

    }
    textarea {
        resize: none;
        width: calc( 100% - 60px );
        border: 0px none;
        margin-right: 55px;
        padding: 8px;
        background-color: #ffffffbb;
    }
    textarea:focus {
        outline: none;
        box-shadow: 0 0 5px var(--primary-color);
        background-color: #fff;
    }
}

.message-card {
    position: relative !important;
    z-index: 2 !important;
}
.card-reply-msg{
    background-color: #f6fcff;
    border-left: 4px solid var(--primary-color);
    margin-right: 0px;
    margin-left: 30px;
    margin-top: -5px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: 1 !important;
    position: relative !important;
}


.save-as-image {
    margin-top: -5px;
    margin-right: 15px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}
.save-as-image:hover{
    color: #28a745;
}


.dropdown-menu-end[data-bs-popper] {
    right: 0;
    left: auto;
}
.profile-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax( calc(20% - 8px), 1fr));
    gap: 8px;
    padding: 8px;



    a {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 1.1rem;
        display: block;
    }
    .fa {
        display: block;
        width: 100%;
        text-align: center;
        height: 2rem;
        font-size: 1.5rem;
        margin-top: 8px;
    }


}
header{
    background-color: #fff;
}
main {
    margin-top: 100px;
}

.search-form {
    position: relative;
    top: 10px;
    input {
        border: none;
        box-shadow: none;
        padding-left: 2rem;
        background: #ffffff41 !important;
        border: 1px solid rgba(204, 204, 204, 0.738) !important;
    }
    button {
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        color: #000;
        position: relative;
        top: -33px;
        left: 0;
        right: calc( 100% - 28px);
    }
    &:hover, &:focus-within {
        button {
            color: var(--primary-color);
            .fa {
                color: var(--primary-color);
                font-size: 1.5rem;

            }
        }
    }
}
.notification-count{
    font-size: 10pt;
    position: absolute;
    top: 0;
    margin-top: 5px;
    right: calc( 100% - 10px);
    transform: translate(50%, -50%);
    background-color: #dc3545;
    color: #fff;
    padding: 2px 6px;
    border: 2px solid #fff;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    display: inline-block;
}

.share-btn-container {
    position: relative;
    width: fit-content;
    float: left;
    margin-top: -63px;
}

.sidebar {
    position: fixed;
    right: -351px;
    width: 350px;
    height: 100vh;
    box-shadow: 2px 15px 15px #ddd;
    transition: margin-right 0.3s ease-in-out;
    transform: translateX(0);
    z-index: 1050;
    top: 0;
}
.sidebar-opened {
    background-color: #000000f0;
    overflow: hidden;
    width: calc( 100vw + 350px);
    header, main {
        position: relative;
        margin-right: 350px;
        transition: margin-right 0.3s ease-in-out;
        filter: grayscale(100%) brightness(0.5) blur(2px);
    }
    .sidebar {
        right: 0;
    }
    .close-sidebar-btn {
        position: absolute;
        top: 5px;
        left: -1.6em;
        cursor: pointer;
        height: 3.5em;
        overflow: hidden;
        background-color: #dc3545;
        color: #fff;
        padding: 0 10px;
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        text-align: center;
        line-height: 3.5em;
        opacity: 0.89;
        .fa {
            font-size: 1.9em;
            display: inline-block;
            margin-top: 13px;
        }
    }
    .list-group {
        margin-top: 50px;
        height: calc( 100vh - 69px );
        overflow: auto;
        .fa {
            font-size: 1.5em;
            width: 2em;
            text-align: center;
            position: relative;
            top: 5px;
        }
    }
}

.list-group-flush > .list-group-item {
    border: none;
    background-color: transparent;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
}
.list-group-flush > .list-group-item:not(:last-child)::after {
    border-top: 1px solid #ffffff33;
    content: "";
    display: block;
    margin-top: 18px;
}

#formSearchDetails {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1100;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    top: 34px;
    left: 0;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    visibility: hidden;
    pointer-events: none;
}
#formSearchDetails.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}
#formSearchDetails::before {
    content: "";
    position: absolute;
    height: 2px;
    background: #000;
    display: block;
    width: calc( 100% - 30px );
    opacity: 0.1;
}
#formSearchDetails label {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-block;
    margin-bottom: 8px;
}
#formSearchDetails label:hover {
    background-color: #f0f8ff;
    color: var(--primary-color);
}
#formSearchDetails input[type="radio"]:checked + * {
    font-weight: bold;
}
.search-form input:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25) !important;
}

.random-message-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: fit-content;
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}
body.modal-open .random-message-btn {
    filter: grayscale(100%) brightness(0.5) blur(2px);
    z-index: 3;
}
#cookieBanner{
    z-index:1050;
    position: fixed;
    bottom: 0px;
    right: 10px;
    left: 10px;
}
#btnSearchMobile {
    a.btn {
        font-size: 1.6rem;
    }
}
.admin-notification-badge {
    margin-top: 10px;
    margin-right: -30px;
}

.user-msg-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    .message-content {
        flex: 1;
        width: auto;
    }
    .favoriteMessagesForm {
        display: inline;
    }
}
.markdown-body blockquote {
    border-right: 3px solid #ccc;
    padding-right: 10px;
    margin: 5px 0;
    color: #555;
    background-color: #f9f9f9;
    padding-left: 10px;
    border-radius: 4px;
}
.hidden-text {
    background: #f0f0f0;
    color: transparent;
    user-select: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.hidden-text::before {
    content: '🔒';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
}

.hidden-text:hover {
    background: #e0e0e0;
}

.hidden-text.revealed {
    background: transparent;
    color: inherit;
    user-select: text;
    cursor: text;
}

.hidden-text.revealed::before {
    content: '';
}

@media (max-width: 768px) {
    #formSearchDetails {
        font-size: 0.9rem;
        padding-left: 10px;
        padding-right: 10px;
        max-height: 250px;
        top: 80px;
        border-right: 0 none;
        border-left: 0 none;
    }
    #formSearchDetails label {
        display: block;
        padding: 10px 8px;
        margin-bottom: 4px;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
    }
    #formSearchDetails label:last-child {
        border-bottom: none;
    }
    .search-form {
        width: 100%;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        padding: 0 10px;
        background: #fff;
        padding-top: 15px;
        border-top: 1px solid #ccc;
    }
    .search-form button{
        right: calc( 100% - 67px);
        color: var(--primary-color);
        border-right: 1px solid rgba(204, 204, 204, 0.738) !important;
    }
    .profile-pic {
        margin-top: -50px !important;
        width: 100px;
        height: 100px;
    }
    .user-profile-name {
        font-size: 1.5rem;
    }
    .share-btn-container {
        text-align: left;
        float: none;
        width: 100%;
        margin-top: 10px;
    }
}



@media (max-width: 1000px) {
    .profile-btns{
        grid-template-columns: repeat(3, 1fr);
    }
    .profile-btns a:last-child {
        grid-column: span 2;
    }
    .user-msg-head {
        flex-direction: column;
        align-items: flex-start;
        .message-content {
            width: 100%;
            margin-bottom: 10px;
            background-color: #aeaeae35;
            padding: 10px;
            border-radius: 10px;
        }
    }
    .message-buttons {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 5px;
        margin-top: -27px;
        .btn {
            background: #fff !important;
            &:hover {
                background: var(--primary-color) !important;
                color: #fff !important;
                border-color: var(--primary-color) !important;
            }
        }
    }
}


