﻿@font-face {
    font-family: "ForoSans";
    src: url('../Fonts/ForoSans.otf') format("truetype");
}

/* NavMenu */
a.mud-nav-link.mud-ripple.active {
    box-shadow: 0px 4px 18px 3px rgba(0, 0, 0, 0.12);
}

/* NavLink */
.mud-nav-link,
.mud-list-item {
    border-radius: 15px;
    margin-bottom: 2px;
}

/* MudMainContent */
.mud-main-content {
    min-height: 0 !important;
    overflow: hidden !important;
    padding-left: 100px !important;
    padding-right: 100px !important;
}

/* MudTextField */
.mud-input > input.mud-input-root-outlined.mud-input-root:-webkit-autofill,
div.mud-input-slot.mud-input-root-outlined.mud-input-root:-webkit-autofill {
    border-radius: 20px !important;
}

/* Table */
.mud-elevation-5.mud-table .mud-table-head .mud-table-cell {
    border-radius: 0 !important;
}

/* Selectable Text */
.selectable-text {
    user-select: text;
}

/* Tabs */
.mud-tabs .mud-tab-active {
    background-color: rgba(40, 40, 40, 1);
}

.mud-tab {
    min-width: initial !important;
}

    .mud-tab .mud-badge-root,
    .mud-tab .mud-badge-wrapper,
    .mud-tab .mud-badge {
        position: static;
        transform: none;
        margin-top: 1px;
    }

    .mud-tab .mud-badge-root {
        align-self: flex-start;
    }

/* Presence Avatar */
.presence-avatar {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.presence-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgb(76, 175, 80);
    border: 2px solid rgba(26, 26, 26, 1);
    box-sizing: content-box;
}

/* Chat Bubbles */
.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-row-mine {
    flex-direction: row-reverse;
}

.chat-avatar-spacer {
    flex: 0 0 32px;
    width: 32px;
}

.chat-bubble {
    position: relative;
    max-width: 70%;
    padding: 6px 12px;
    border-radius: 12px;
    word-break: break-word;
}

.chat-bubble-mine {
    background-color: rgba(33, 150, 243, 0.9);
    border-bottom-right-radius: 2px;
}

.chat-bubble-theirs {
    background-color: rgba(66, 66, 66, 1);
    border-bottom-left-radius: 2px;
}

.chat-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 2px;
}

.chat-bubble-time {
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0.6;
}

.chat-bubble-tick {
    font-size: 0.9rem !important;
    opacity: 0.8;
}

/* New Chat Dialog */
.new-chat-dialog-content {
    padding: 0 15px !important;
    min-width: 350px;
}

/* Chat Delete Button */
.chat-bubble-delete {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    visibility: hidden;
}

.chat-bubble-mine .chat-bubble-delete {
    left: -40px;
}

.chat-row:hover .chat-bubble-delete {
    visibility: visible;
}
