/* Dashboard Specific Styles */

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

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: 2.5em;
    text-shadow: 0 2px 10px var(--shadow);
    transition: color 0.3s ease;
}

.campaign-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phase-badge {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.days-counter {
    background: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Metrics Overview */
.metrics-overview .metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.metric-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.metric-item:hover {
    transform: scale(1.05);
}

.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Team Status */
.team-status .team-members {
    padding: 20px;
}

.team-member {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.team-member:last-child {
    border-bottom: none;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
    transition: background 0.3s ease;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    transition: color 0.3s ease;
}

.member-task {
    font-size: 0.9em;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.member-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-on-track {
    background: #d4edda;
    color: #155724;
}

.status-attention {
    background: #fff3cd;
    color: #856404;
}

.status-behind {
    background: #f8d7da;
    color: #721c24;
}

/* Weekly Progress */
.weekly-progress .progress-overview {
    padding: 20px;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8em;
    font-weight: 600;
}

.progress-item {
    margin-bottom: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

/* Recent Activity */
.recent-activity .activity-list {
    padding: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
    margin-right: 15px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #2c3e50;
    margin-bottom: 3px;
}

.activity-time {
    font-size: 0.8em;
    color: #999;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-header h1 {
        font-size: 2em;
    }
    
    .campaign-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .member-avatar {
        margin-right: 0;
    }
}

/* Loading states for dashboard widgets */
.widget-loading {
    padding: 40px;
    text-align: center;
    color: #999;
}

.widget-loading i {
    font-size: 1.5em;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Chart placeholders */
.chart-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}