/* Hrth Web Client Styles */

body {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

.conversation-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.conversation-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.conversation-item.active {
    background-color: rgba(25, 135, 84, 0.2);
    border-left: 3px solid #198754 !important;
}

/* Message bubbles */
.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    position: relative;
}

.message-sent {
    background-color: #198754;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.message-received {
    background-color: #2d2d44;
    color: #e0e0e0;
    margin-right: auto;
    border-bottom-left-radius: 0.25rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.message-status {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Typing indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #2d2d44;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Safety number display */
#safetyNumberDigits {
    user-select: all;
    cursor: pointer;
}

#safetyNumberQR canvas {
    border-radius: 4px;
}

/* Input focus */
.form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}
