/* ============================================
   AGENT DASHBOARD
   Dashboard Page, Stats Grid, Activity List,
   Showings List, Leads List, Listings Table,
   Status Badges, Quick Actions
   ============================================ */

/* Dashboard Page */
.dashboard-page {
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.welcome-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.welcome-content p {
    color: var(--text-gray);
}

.btn-add-property {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-add-property:hover {
    background: var(--primary-400);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: rgba(8, 49, 105, 0.1);
    color: var(--primary-blue);
}

.stat-icon.green {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.stat-icon.yellow {
    background: rgba(212, 168, 83, 0.1);
    color: var(--primary-gold);
}

.stat-icon.purple {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.stat-content {
    flex: 1;
}

.stat-content .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-content .stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.stat-content .stat-change {
    font-size: 0.8125rem;
    font-weight: 500;
}

.stat-content .stat-change.positive {
    color: #059669;
}

.stat-content .stat-change.negative {
    color: #dc2626;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    min-width: 0;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-header .view-all {
    font-size: 0.875rem;
    color: var(--primary-blue);
    text-decoration: none;
}

.card-header .view-all:hover {
    text-decoration: underline;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.inquiry {
    background: rgba(8, 49, 105, 0.1);
    color: var(--primary-blue);
}

.activity-icon.showing {
    background: rgba(212, 168, 83, 0.1);
    color: var(--primary-gold);
}

.activity-icon.view {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.activity-icon.success {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.activity-content .activity-text {
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.activity-content .activity-time {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

/* Showings List */
.showings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.showing-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.showing-date {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.showing-date .day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.showing-date .month {
    font-size: 0.625rem;
    text-transform: uppercase;
}

.showing-details {
    flex: 1;
}

.showing-details h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.showing-details p {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.showing-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.2s;
}

.btn-icon:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-icon.danger:hover {
    border-color: #dc2626;
    color: #dc2626;
}

/* Leads List */
.leads-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lead-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.lead-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.lead-info {
    flex: 1;
}

.lead-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.lead-info p {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.lead-info .lead-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.btn-contact-lead {
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

/* Listings Table */
.listings-table {
    overflow-x: auto;
}

.listings-table table {
    width: 100%;
    border-collapse: collapse;
}

.listings-table th,
.listings-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.listings-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
}

.listings-table td {
    font-size: 0.875rem;
}

.listing-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.listing-cell img {
    width: 60px;
    height: 45px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.listing-cell .listing-address {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
}

.listing-cell .listing-price {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.status-badge.pending {
    background: rgba(212, 168, 83, 0.1);
    color: #d4a853;
}

.status-badge.sold {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Quick Actions */
.quick-actions {
    margin-top: 2rem;
}

.quick-actions h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.action-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.action-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.action-card svg {
    color: var(--primary-blue);
}

.action-card span {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}
