﻿.listing-tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: none;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    position: relative;
}

.tab-button.active {
    color: #3b82f6;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
}

.unread-count {
    background: #ef4444;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.tab-content {
    padding-top: 1.5rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-preview {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.message-preview:hover {
    background-color: #f3f4f6;
}

.message-preview:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
    background-color: #f3f4f6;
}

.buyer-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.buyer-name {
    font-weight: 500;
    color: #0f172a;
}

.message-date {
    color: #64748b;
    font-size: 0.875rem;
}

.last-message {
    color: #64748b;
    word-break: break-word;
}

.last-message.unread {
    color: #0f172a;
    font-weight: 500;
}

.no-messages {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}