/* ============================================
   BIV DASHBOARD - MODERN HOME PAGE
   ============================================ */

.dashboard-container {
    padding: 24px 32px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Header Section */
.dashboard-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.welcome-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.welcome-section p {
    font-size: 16px;
    color: #64748B;
    margin: 0;
}

.date-badge {
    background: linear-gradient(135deg, #EEF2FF, #F0F9FF);
    border: 1px solid #C7D2FE;
    color: #4F46E5;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.action-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6366F1, #0EA5E9);
    opacity: 0;
    transition: opacity 0.3s;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #C7D2FE;
}

.action-card:hover::before {
    opacity: 1;
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    position: relative;
}

.action-icon.chat {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
}

.action-icon.crm {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
}

.action-icon.reports {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
}

.action-icon.faq {
    background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
}

.action-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 8px;
}

.action-card p {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.action-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366F1;
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.2s;
}

.action-card:hover .action-arrow {
    gap: 10px;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #C7D2FE;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    border-radius: 0 0 0 100%;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue {
    background: #EEF2FF;
}

.stat-icon.green {
    background: #F0FDF4;
}

.stat-icon.orange {
    background: #FEF3C7;
}

.stat-icon.purple {
    background: #F3E8FF;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-change {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: #10B981;
}

.stat-change.negative {
    color: #EF4444;
}

/* Two Column Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Recent Activity */
.activity-section {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
}

.view-all {
    font-size: 14px;
    color: #6366F1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.view-all:hover {
    color: #4F46E5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    transition: background 0.2s;
}

.activity-item:hover {
    background: #F8FAFC;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #818CF8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
    line-height: 1.5;
}

.activity-text strong {
    color: #0F172A;
    font-weight: 600;
}

.activity-time {
    font-size: 12px;
    color: #94A3B8;
}

/* AI Assistant Card */
.ai-assistant-card {
    background: linear-gradient(135deg, #1E3A8A, #4F46E5);
    border-radius: 16px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-assistant-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.ai-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.ai-card-title {
    font-size: 18px;
    font-weight: 600;
}

.ai-card-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

.ai-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
}

.ai-features li {
    font-size: 14px;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    opacity: 0.9;
}

.ai-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.btn-ai-chat {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.btn-ai-chat:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
    }

    .stats-overview {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .welcome-section h1 {
        font-size: 24px;
    }
}