/* Dashboard UI specific styles */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: var(--bg-card-hover);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

.stat-card.emerald::before { background: var(--accent-emerald); }
.stat-card.cyan::before { background: var(--accent-cyan); }
.stat-card.amber::before { background: var(--accent-amber); }
.stat-card.rose::before { background: var(--accent-rose); }
.stat-card.indigo::before { background: var(--accent-indigo); }

.stat-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 8px;
    align-items: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.stat-footer {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-footer.positive { color: var(--accent-emerald); }
.stat-footer.neutral { color: var(--text-secondary); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
}

/* Custom Table */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.custom-table th {
    text-align: right;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
    text-align: right;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.badge.vip { background: rgba(124, 77, 255, 0.15); color: #b388ff; }
.badge.loyal { background: rgba(0, 176, 255, 0.15); color: #80d8ff; }
.badge.active { background: rgba(0, 230, 118, 0.15); color: #b9f6ca; }
.badge.at-risk { background: rgba(255, 196, 0, 0.15); color: #ffe57f; }
.badge.lost { background: rgba(255, 23, 68, 0.15); color: #ff8a80; }

.customer-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-secondary);
    margin-left: 8px;
    vertical-align: middle;
}
