#message-center-container {
    background-color: lightgray;
    position: fixed;
    right: -600px;
    height: 100%;
    width: 600px;
    top: 70px;
    transition: right 0.5s;
    z-index: 1000;
}

#message-center-container.active {
    right: 0px;
}

#message-center-container-header {
    background-color: red;
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    text-transform: uppercase;
    font-size: 1.2rem;
    color: white;
}

#message-center-container-body {
    display: flex;
    height: 100%;
}

#message-center-menu {
    background-color: rgb(62, 96, 213);
    height: 100%;
    width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
}

#message-center-menu button {
    position: relative;
    background-color: transparent;
    height: 50px;
    width: 100%;
    transition: background-color 0.5s;
}

#message-center-menu button:hover {
    background-color: red;
}

#message-center-menu button.active {
    background-color: red;
}

#message-center-list-container {
    width: 100%;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.message-center-menu-unread-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: white;
    background-color: #ef4444;
    border-radius: 9px;
    box-sizing: border-box;
}

.unread-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 10px;
    padding: 0.5rem 0.75rem;
    z-index: 1000;
    min-width: 200px;
    font-size: 0.875rem;
    color: black;
}

.message-center-menu-unread-badge[aria-hidden="true"],
.message-center-menu-unread-badge.hidden {
    display: none;
}

.system-message {
    position: relative;
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-family: Arial, sans-serif;
    font-weight: 400;
    text-align: left;
}

.system-message-header .system-message-title {
    font-weight: bold;
}

.system-message-body {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.system-message-footer button {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

button.message-read-button.read {
    background-color: lightgreen;
    color: #333;
    cursor: not-allowed;
}

.comment {
    position: relative;
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-family: Arial, sans-serif;
    font-weight: 400;
    text-align: left;
}

.comment.comment-replying-to {
    border: 2px solid rgb(62, 96, 213);
}

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

.comment-footer button {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.comment-body {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-family: Arial, sans-serif;
    font-weight: 400;
    text-align: left;
}

.comment-cost-log-badge {
    background-color: rgb(62, 96, 213);
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
    width: 30px;
    height: 30px;
}

.comment-todo-assignee-user-id-wrap {
    display: none;
}

.comment-todo-assignee-user-id-wrap.show {
    display: block;
}

/* Comment send area: message + file upload */
#message-center-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#comment-send-area {
    height: 350px;
    padding: 12px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.comment-reply-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #e8f0fe;
    border: 1px solid rgb(62, 96, 213);
    border-radius: 6px;
    font-size: 13px;
    color: #333;
}

.comment-reply-hint.hidden {
    display: none;
}

.comment-reply-cancel {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.comment-reply-cancel:hover {
    background: #f0f0f0;
}

#comment-send-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-send-message-wrap textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.comment-send-message-wrap textarea:focus {
    outline: none;
    border-color: rgb(62, 96, 213);
    box-shadow: 0 0 0 2px rgba(62, 96, 213, 0.2);
}

.comment-send-message-wrap #comment-message[contenteditable="true"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    min-height: 60px;
    overflow-y: auto;
}

.comment-send-message-wrap #comment-message[contenteditable="true"]:focus {
    outline: none;
    border-color: rgb(62, 96, 213);
    box-shadow: 0 0 0 2px rgba(62, 96, 213, 0.2);
}

.comment-send-files-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-files-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.comment-files-label:hover {
    color: rgb(62, 96, 213);
}

#comment-files {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.comment-files-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #666;
}

.comment-files-list li {
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-files-list li .comment-file-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1;
}

.comment-files-list li .comment-file-remove:hover {
    color: #c00;
}

.comment-send-actions {
    display: flex;
    justify-content: flex-end;
}

.comment-send-button {
    padding: 8px 20px;
    background-color: rgb(62, 96, 213);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.comment-send-button:hover {
    background-color: rgb(52, 86, 193);
}

.comment-send-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mention / tag menu */
.mention-menu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.mention-item {
    padding: 8px 12px;
    cursor: pointer;
}

.mention-item:hover {
    background-color: #f5f5f5;
}

.mention-highlight {
    color: #2196F3;
    font-weight: bold;
    background-color: rgba(33, 150, 243, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
    margin: 0 2px;
}

#comment-message[contenteditable="true"]:empty::before {
    content: attr(data-placeholder);
    color: #666;
    font-style: italic;
}

.comment-files {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

a.comment-file {
    color:#2196F3;
}
