.dashboard-container {
    display: flex;
    height: calc(100vh - 70px);
}

.sidebar {
    width: 280px;
    background-color: white;
    border-right: 1px solid var(--gray-200);
    padding: 20px;
    overflow-y: auto;
}

.search-info h2 {
    margin-bottom: 8px;
    font-size: 18px;
}

.search-info p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.sidebar-actions button {
    width: 100%;
}

.members-section {
    display: block;
}

.members-section h3 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-600);
}

#members-list {
    list-style: none;
}

#members-list li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    max-width: 400px;
}

.updates-list,
.leads-grid {
    display: grid;
    gap: 20px;
}

.update-item {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 16px;
}

.update-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.update-item h3 {
    font-size: 16px;
}

.update-user {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
}

.update-item p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.update-time {
    font-size: 12px;
    color: var(--gray-400);
}

.lead-card {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.lead-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.lead-title {
    font-size: 16px;
    font-weight: 600;
}

.lead-id {
    background-color: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.lead-address {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.lead-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.lead-status.new {
    background-color: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.lead-status.contacted_agent {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.lead-status.viewing_booked {
    background-color: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.lead-status.viewing_unavailable {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.lead-status.negotiating {
    background-color: rgba(202, 138, 4, 0.1);
    color: #ca8a04;
}

.lead-status.offer_rejected {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.lead-status.offer_accepted {
    background-color: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.lead-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background-color: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .dashboard-container {
        flex-direction: column;
    }
}
