:root {
    --top-navbar-height: 3.5rem;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*User Posts*/

h1.user-h1 {
    font-size: 1.75rem;
}

h2.user-h2 {
    font-size: 1.5rem;
}

h3.user-h3 {
    font-size: 1.25rem;
}


blockquote.user-quote {
    border-left: 4px solid #4f545c;
    padding: 0 .2rem;
    /*margin: 1rem 0;*/
    border-radius: 4px;
    /*font-size: 0.95rem;*/
    /*line-height: 1.4;*/
    /*position: relative;*/
}

.spoiler {
    display: inline-block;
    background-color: #444;
    color: transparent;
    cursor: pointer;
    user-select: none;
    border-radius: 3px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.spoiler.revealed {
    color: white;
    background-color: #222;
    user-select: text;
}

.cutie-cutie-big-sup {
    font-size: 1em;
}

.cutie-big-sub {
    font-size: 1em;
}

.code-line {
    font-family: monospace;
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
}

.gay-text {
    /*background: linear-gradient(to right, red, orange, yellow, green, blue, violet);*/
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.drone-ref {
    font-family: monospace;
    background-color: #f0f0f0;
    border-radius: 3px;
}

.user-bold {
    font-weight: bold;
}

.user-italics {
    font-style: italic;
}

.user-strike {
    text-decoration: line-through;
}

.user-underline {
    text-decoration: underline;
}

/*End User Posts*/


.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0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S4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/*  Social System  */

.social-profile-header {
    height: 140px;
    border-radius: 0 0 .5rem .5rem;
    margin-bottom: -40px;
    position: relative;
}

.social-profile-meta {
    padding-top: 88px;
}

.avatar-upload-btn {
    position: absolute;
    bottom: -40px;
    left: 24px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 1;
    transition: opacity .2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

@media (hover: none) {
    .avatar-upload-btn {
        opacity: .55;
    }
}

.custom-emoji-thumb {
    position: relative;
    display: inline-block;
}

.custom-emoji-thumb .emoji-delete-btn {
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    padding: 0;
    font-size: 9px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    border: none;
    background: #dc3545;
    color: #fff;
    cursor: pointer;
}

.custom-emoji-thumb:hover .emoji-delete-btn {
    display: block;
}

.custom-emoji-thumb .emoji-slug-label {
    display: none;
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.7rem;
    font-family: monospace;
    white-space: nowrap;
    padding: 2px 5px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
}

.custom-emoji-thumb:hover .emoji-slug-label {
    display: block;
}

/* Inline custom emoji rendered in post/comment text */
.custom-emoji {
    display: inline-block;
    height: 1.4em;
    vertical-align: middle;
    object-fit: contain;
    margin: 0 0.05em;
    position: relative;
    top: -0.1em;
}

.social-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    background: #3b5998;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.social-avatar-profile-header {
    position: absolute;
    bottom: -40px;
    left: 24px;
}

.social-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    flex-shrink: 0;
}

.social-avatar-xs {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .65rem;
    color: #fff;
    flex-shrink: 0;
}

.wall-post {
    border-left: 3px solid #3b5998;
}

.nav-section-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .45);
    text-transform: uppercase;
}

/* Messages / DM System */

.messages-layout {
    display: flex;
    height: calc(100vh - var(--top-navbar-height));
    overflow: hidden;
}

.messages-sidebar {
    width: 280px;
    min-width: 220px;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    background: #fff;
    flex-shrink: 0;
}

.messages-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    font-size: .95rem;
}

.messages-conv-list {
    flex: 1;
    overflow-y: auto;
}

.messages-conv-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background .1s;
}

.messages-conv-item:hover {
    background: #f8f9fa;
}

.messages-conv-item.active {
    background: #e8f0fe;
}

.messages-conv-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    color: #fff;
    flex-shrink: 0;
}

.messages-conv-avatar.sm {
    width: 30px;
    height: 30px;
    font-size: .7rem;
}

.messages-conv-avatar.xs {
    width: 24px;
    height: 24px;
    font-size: .6rem;
}

.messages-conv-info {
    flex: 1;
    min-width: 0;
}

.messages-conv-name {
    font-weight: 600;
    font-size: .875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-conv-preview {
    font-size: .75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
}

.messages-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messages-chat-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
    min-height: 52px;
}

.messages-body-row {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.messages-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.messages-msg {
    display: flex;
    gap: .5rem;
    align-items: flex-end;
    max-width: 75%;
}

.messages-msg.mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.messages-msg.theirs {
    align-self: flex-start;
}

.messages-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .6rem;
    color: #fff;
    flex-shrink: 0;
}

.messages-msg-bubble-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.messages-msg.mine .messages-msg-bubble-wrap {
    align-items: flex-end;
}

.messages-msg-sender {
    font-size: .7rem;
    font-weight: 600;
    color: #6c757d;
    padding: 0 .4rem;
}

.messages-msg-bubble {
    background: #e9ecef;
    border-radius: 1rem 1rem 1rem .2rem;
    padding: .4rem .75rem;
    font-size: .875rem;
    word-break: break-word;
    white-space: pre-wrap;
}

.messages-msg.mine .messages-msg-bubble {
    border-radius: 1rem 1rem .2rem 1rem;
}

.messages-msg-bubble.deleted {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
}


.messages-delete-btn {
    font-size: .65rem;
    padding: 0 .4rem;
    color: #dc3545 !important;
    opacity: 0;
    transition: opacity .15s;
    height: 0;
}

.messages-msg:hover .messages-delete-btn {
    opacity: 1;
    height: 32px;
    transition: height .15s;
}

.messages-input-row {
    display: flex;
    gap: .5rem;
    padding: .75rem 1rem;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
    align-items: flex-end;
}

.messages-input {
    flex: 1;
    resize: none;
    border-radius: .7rem;
    max-height: 120px;
    overflow-y: auto;
    font-size: .875rem;
}

.messages-send-btn {
    border-radius: 1.2rem;
    align-self: flex-end;
}

.messages-typing-area {
    padding: .35rem 1rem .1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex-shrink: 0;
}

.messages-typing-row {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
}

.messages-typing-bubble {
    background: #f0f4ff;
    /*border: 1px solid #d0dbff;  -- set by code to be users color*/
    border-radius: .8rem .8rem .8rem .15rem;
    padding: .25rem .6rem;
    font-size: .8rem;
    max-width: 80%;
    word-break: break-word;
}

.messages-typing-name {
    font-weight: 600;
    color: #4a5568;
    margin-right: .3rem;
}

.messages-typing-text {
    color: #2d3748;
    opacity: .85;
}

.messages-group-info {
    width: 220px;
    border-left: 1px solid #dee2e6;
    padding: 1rem;
    overflow-y: auto;
    flex-shrink: 0;
    font-size: .85rem;
}

@media (max-width: 767px) {
    .messages-sidebar {
        width: 100%;
        border-right: none;
    }

    .messages-chat {
        width: 100%;
    }

    .messages-layout {
        margin-top: -1.1rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        height: calc(100dvh - var(--top-navbar-height));
    }
}

@media (max-width: 1149px) {
    .messages-layout {
        position: fixed;
        top: var(--top-navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        margin: 0;
    }
}


/* Container for the typing dots */
.profile-activity-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    /*height: 20px;*/
}

/* dot - as span to keep border big for blinking led effect */
.profile-activity-typing span {
    width: 100%;
    height: 100%;
    background-color: #681eb8;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;

    display: inline-block;
    animation: typing-bounce 1.2s infinite ease-in-out;
}


/* Bounce animation */
@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}


.profile-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.profile-circles-container {
    position: relative;
}

.profile-circle {
    width: 100%;
    height: 100%;
    background-color: #4c98af;
    border-radius: 50%;
    object-fit:cover;
    display: block;
    
    text-align: center;
    justify-content: center;
    horizontal-align: center;
    vertical-align: center;
}

.profile-activity-online {
    background-color: #50b81e;
}

.profile-activity-in-chat {
    background-color: #681eb8;
}

.profile-activity-offline {
    background-color: #c5c5c5;
}

.profile-activity-circle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 30%;
    border-radius: 50%;


    /*border: 3px solid white; !* Optional border for separation *!*/
    /*box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); !* Optional shadow *!*/
}