
/* NOVAWORKS DIRECT MESSAGES PAGE */

/* Three-column layout */
.slack-app {
    grid-template-columns: 48px 400px minmax(0, 1fr);
}

/* DIRECT MESSAGE SIDEBAR */

.dm-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background-color: #4a154b;
}

.dm-sidebar-header {
    height: 50px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dm-sidebar-header h2 {
    font-size: 17px;
    color: white;
}

.dm-sidebar-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.dm-search {
    padding: 0 8px 10px;
}

.dm-search input {
    width: 100%;
    background: #663b67;
    border: 1px solid #947395;
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    outline: none;
    font-size: 13px;
}

.dm-search input::placeholder {
    color: #eee2ee;
}

.dm-search input:focus {
    border-color: white;
}

/* CONVERSATION LIST */

.dm-list {
    flex: 1;
    overflow-y: auto;
}

.dm-conversation {
    width: 100%;
    min-height: 83px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 12px;
    background: transparent;
    color: white;
    border: none;
    border-bottom: 1px solid #704c71;
    text-align: left;
    cursor: pointer;
}

.dm-conversation:hover {
    background: #613362;
}

.dm-conversation.selected {
    background: #704271;
}

.dm-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.dm-preview {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dm-preview strong {
    font-size: 13px;
    color: white;
}

.dm-preview small {
    font-size: 12px;
    line-height: 1.4;
    color: #e1d2e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-date {
    font-size: 10px;
    color: #dac9da;
    white-space: nowrap;
    margin-top: 3px;
}

/* RIGHT CONVERSATION PANEL */

.dm-chat {
    min-width: 0;
    min-height: 0;
    background: white;
}

.dm-chat-header {
    min-height: 56px;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dm-chat-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-chat-person h1 {
    font-size: 17px;
    font-weight: bold;
}

.dm-chat-person .online-dot {
    margin-left: 1px;
}

.dm-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dm-header-actions button {
    border: none;
    background: transparent;
    font-size: 17px;
    color: #616061;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.dm-header-actions button:hover {
    background: #f1f1f1;
}

/* CHAT HISTORY */

.dm-chat .message-feed {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-top: 8px;
}

.dm-chat .message {
    padding: 9px 15px;
}

.dm-chat .message:hover {
    background: #f8f8f8;
}

.dm-chat .message-content p {
    font-size: 14px;
    line-height: 1.5;
}

.dm-chat .message-info strong {
    font-size: 14px;
}

/* MESSAGE COMPOSER */

.dm-chat .message-composer {
    margin: 0 14px 12px;
    flex-shrink: 0;
}

.dm-chat .message-composer textarea {
    min-height: 60px;
}

.dm-chat .send-button {
    background: #007a5a;
    color: white;
}

.dm-chat .send-button:hover {
    background: #148567;
}

/* SCROLLBARS */

.dm-list::-webkit-scrollbar,
.dm-sidebar::-webkit-scrollbar {
    width: 7px;
}

.dm-list::-webkit-scrollbar-thumb,
.dm-sidebar::-webkit-scrollbar-thumb {
    background: #805b81;
    border-radius: 10px;
}

/* SMALLER SCREENS */

@media (max-width: 850px) {
    .slack-app {
        grid-template-columns: 48px 280px minmax(0, 1fr);
    }

    .dm-date {
        display: none;
    }
}

@media (max-width: 600px) {
    .slack-app {
        grid-template-columns: 42px 170px minmax(0, 1fr);
    }

    .dm-conversation {
        padding: 10px 6px;
        gap: 6px;
    }

    .dm-preview small {
        font-size: 10px;
    }

    .dm-chat-header {
        padding: 0 8px;
    }

    .dm-header-actions {
        display: none;
    }
}
