.custom-file-label.custom-attachment::after {
    content: "\f0c6";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.direct-chat-text-notification {
    border-radius: 0.3rem;
    background-color: #A8E5ECFF;
    border: 1px solid #d2d6de;
    color: #444;
    margin: 5px 100px 5px 100px;
    padding: 2px 6px;
    position: relative;
    text-align: center;
}
.border-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
    background-color: #007bff;
}
.chat-container {
    background: #fff;
    overflow-y: auto;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.date-header {
    position: sticky;
    top: 10px;
    background: #e0e0e0;
    text-align: center;
    font-size: 12px;
    color: #555;
    padding: 5px 0;
    z-index: 1;
    margin: 10px 0;
    border-radius: 5px;
}

.message {
    display: flex;
    flex-direction: row;
    margin: 10px;
    align-items: flex-start;
}

.bubble {
    max-width: 70%;
    background: #f1f0f0;
    border-radius: 12px;
    padding: 10px;
    position: relative;
}

.message.user .bubble {
    background: #dcf8c6;
    margin-left: auto;
}

.bubble-header {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
}

.timestamp {
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.system-inline-message {
    text-align: center;
    font-size: 12px;
    color: #555;
    background: #eaeaea;
    padding: 6px 10px;
    border-radius: 10px;
    margin: 15px auto;
    max-width: 60%;
    display: inline-block;
}

.attachment-image {
    max-width: 100%;
    margin-top: 5px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.attachment-file {
    display: inline-block;
    margin-top: 6px;
    background: #f2f2f2;
    padding: 6px 10px;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.attachment-file:hover {
    background: #e0e0e0;
}

.upload-chat {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border-radius: 20px;
    padding: 10px 14px;
    width: 100%;
    position: relative;
    font-family: sans-serif;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 55px;
    transition: all 0.3s ease;
}

.chat-input-group {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    width: 100%;
    min-height: 55px;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.upload-progress-block {
    animation: fadeIn 0.3s ease forwards;
    width: 100%;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-progress-bar {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: #28a745;
    transition: width 0.3s ease;
}

.d-none {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chat-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.chat-icon-button:hover {
    transform: scale(1.05);
}

.chat-icon-button:active {
    transform: scale(0.97);
}

.chat-send-btn {
    background-color: #007bff;
}

.chat-send-btn:hover {
    background-color: #0069d9;
}

.chat-attach-btn {
    background-color: #6c757d;
}

.chat-attach-btn:hover {
    background-color: #5a6268;
}

#chat-message {
    margin-bottom: 4px;
    border: none;
    background: transparent;
    outline: none;
    flex-grow: 1;
}

.chat-message {
    color: #000000;
}
.chat-cancel-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #dee2e6;
    color: #495057;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    padding: 0;
}

.chat-cancel-button:hover {
    background-color: #ced4da;
    transform: scale(1.05);
}

.chat-cancel-button:active {
    transform: scale(0.95);
}
