/* Clean Timestamp Display - Attached but Subtle */

/* Style timestamps - small and inline with message */
.tk-chat .tk-list .tk-time,
.tk-conversation .tk-list .tk-time {
    display: inline-block !important;
    font-size: 10px !important;
    color: #9ca3af !important;
    opacity: 0.7 !important;
    margin-left: 6px !important;
    margin-top: 0 !important;
    font-weight: 400 !important;
    vertical-align: baseline !important;
}

/* Format: smaller and with parentheses */
.tk-chat .tk-list .tk-time:before {
    content: '• ' !important;
    margin-right: 2px !important;
    opacity: 0.5 !important;
}

/* User messages - time in purple tone */
.tk-chat .tk-list > div.tk-right .tk-time,
.tk-conversation .tk-list > div.tk-right .tk-time {
    color: #8b92a4 !important;
}

/* Bot messages - time in gray */
.tk-chat .tk-list > div:not(.tk-right) .tk-time,
.tk-conversation .tk-list > div:not(.tk-right) .tk-time {
    color: #9ca3af !important;
}

/* Make message and time stay together */
.tk-chat .tk-list .tk-message {
    display: inline !important;
}

/* Ensure no line break between message and time */
.tk-chat .tk-list > div > div {
    white-space: nowrap !important;
    overflow: visible !important;
}

.tk-chat .tk-list .tk-message .tk-text {
    display: inline !important;
    white-space: normal !important;
}

/* Alternative: Show time in center between message groups */
.tk-label-date {
    text-align: center !important;
    margin: 15px 0 !important;
    font-size: 11px !important;
    color: #9ca3af !important;
    position: relative !important;
}

.tk-label-date:before,
.tk-label-date:after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    width: 30% !important;
    height: 1px !important;
    background: #e5e7eb !important;
}

.tk-label-date:before {
    left: 0 !important;
}

.tk-label-date:after {
    right: 0 !important;
}

/* RTL support for Arabic */
[dir="rtl"] .tk-chat .tk-list .tk-time:before,
[dir="rtl"] .tk-conversation .tk-list .tk-time:before {
    margin-right: 0 !important;
    margin-left: 4px !important;
}

[dir="rtl"] .tk-chat .tk-list > div:not(.tk-right) .tk-time {
    padding-left: 0 !important;
    padding-right: 15px !important;
}

/* For user messages (right aligned) */
.tk-conversation .tk-list > div.tk-right .tk-time {
    order: -1 !important; /* Time before message */
    margin-left: 0 !important;
    margin-right: 8px !important;
}

/* Message content */
.tk-conversation .tk-list .tk-message .tk-text {
    display: inline-block !important;
    margin: 0 !important;
}

/* Fix RTL for Arabic */
[dir="rtl"] .tk-conversation .tk-list .tk-time {
    margin-left: 0 !important;
    margin-right: 8px !important;
}

[dir="rtl"] .tk-conversation .tk-list > div.tk-right .tk-time {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

/* Ensure time stays on same line */
.tk-conversation .tk-list > div > div {
    display: inline-flex !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
}

/* Alternative fix - force time to be absolute positioned */
.tk-conversation .tk-list .tk-message-details {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.tk-conversation .tk-list .tk-message-details .tk-time {
    position: static !important;
    display: inline !important;
    vertical-align: baseline !important;
}