/* VYRECRYPT Dashboard Enhancements */

/* Hero Section */
.dashboard-hero {
    background: var(--vyrecrypt-gradient-header);
    padding: 60px 20px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px var(--vyrecrypt-shadow);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.dashboard-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dashboard-hero .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--vyrecrypt-bg-card);
    border: 1px solid var(--vyrecrypt-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--vyrecrypt-shadow);
    border-color: var(--vyrecrypt-primary);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--vyrecrypt-gradient-primary);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--vyrecrypt-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vyrecrypt-text);
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--vyrecrypt-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-change {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--vyrecrypt-success);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--vyrecrypt-danger);
}

/* Quick Actions */
.quick-actions {
    background: var(--vyrecrypt-bg-card);
    border: 1px solid var(--vyrecrypt-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
}

.quick-actions h3 {
    color: var(--vyrecrypt-text);
    margin-bottom: 20px;
    font-weight: 600;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.action-btn {
    padding: 16px;
    background: var(--vyrecrypt-bg-surface);
    border: 1px solid var(--vyrecrypt-border);
    border-radius: 12px;
    color: var(--vyrecrypt-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--vyrecrypt-bg-hover);
    border-color: var(--vyrecrypt-primary);
    transform: translateX(5px);
    text-decoration: none;
    color: var(--vyrecrypt-primary);
}

.action-btn i {
    width: 36px;
    height: 36px;
    background: var(--vyrecrypt-gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Recent Activity */
.activity-feed {
    background: var(--vyrecrypt-bg-card);
    border: 1px solid var(--vyrecrypt-border);
    border-radius: 16px;
    padding: 24px;
}

.activity-feed h3 {
    color: var(--vyrecrypt-text);
    margin-bottom: 20px;
    font-weight: 600;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--vyrecrypt-border);
    transition: all 0.2s ease;
}

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

.activity-item:hover {
    background: var(--vyrecrypt-bg-hover);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 8px;
}

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

.activity-icon.message {
    background: rgba(107, 70, 193, 0.1);
    color: var(--vyrecrypt-primary);
}

.activity-icon.friend {
    background: rgba(0, 191, 165, 0.1);
    color: var(--vyrecrypt-secondary);
}

.activity-icon.post {
    background: rgba(59, 130, 246, 0.1);
    color: var(--vyrecrypt-info);
}

.activity-content {
    flex: 1;
}

.activity-content .activity-text {
    color: var(--vyrecrypt-text);
    margin-bottom: 4px;
}

.activity-content .activity-time {
    color: var(--vyrecrypt-text-dim);
    font-size: 0.85rem;
}

/* Security Status */
.security-status {
    background: var(--vyrecrypt-gradient-primary);
    border-radius: 16px;
    padding: 24px;
    color: white;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.security-status::after {
    content: '🔒';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    opacity: 0.2;
}

.security-status h3 {
    margin-bottom: 16px;
}

.security-status .status-items {
    display: grid;
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-item i {
    color: var(--vyrecrypt-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-hero h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}