/**
 * WebsiteLaunchPad.com - Dashboard Styles
 * Advanced dashboard visualizations and interactive components
 */

/* Dashboard Layout */
.dashboard {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #1f2937;
}

.dashboard-header p {
    color: #6b7280;
    font-size: 1rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2rem;
    margin: 0 0 5px 0;
    color: #1f2937;
}

.stat-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart Containers */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

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

.chart-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.chart-actions {
    display: flex;
    gap: 10px;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Project Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
    flex: 1;
}

.project-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.project-status.in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.project-description {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.project-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #6b7280;
    display: block;
    text-align: right;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.project-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

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

.action-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.action-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.action-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Activity Feed */
.activity-feed {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

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

.activity-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: #1f2937;
}

.activity-time {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Milestone Cards */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.milestone-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.milestone-card.completed {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.milestone-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.milestone-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.milestone-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.milestone-card p {
    margin: 0 0 15px 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.milestone-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.milestone-date {
    font-size: 0.8rem;
    color: #9ca3af;
}

.milestone-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.milestone-status.completed {
    background: #10b981;
    color: white;
}

.milestone-status.pending {
    background: #e5e7eb;
    color: #6b7280;
}

/* Dashboard Navigation */
.dashboard-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.dashboard-nav a {
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    transition: all 0.2s;
}

.dashboard-nav a:hover {
    color: #3b82f6;
    border-color: #3b82f6;
}

.dashboard-nav a.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        padding: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .project-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-grid > * {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.dashboard-grid > *:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid > *:nth-child(2) { animation-delay: 0.2s; }
.dashboard-grid > *:nth-child(3) { animation-delay: 0.3s; }
.dashboard-grid > *:nth-child(4) { animation-delay: 0.4s; }
.dashboard-grid > *:nth-child(5) { animation-delay: 0.5s; }
.dashboard-grid > *:nth-child(6) { animation-delay: 0.6s; }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .stat-card,
    .chart-container,
    .project-card,
    .action-card,
    .activity-feed,
    .milestone-card {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .stat-card h3,
    .chart-header h2,
    .project-card-header h3,
    .action-card h3,
    .activity-header h2,
    .milestone-card h3,
    .activity-content p {
        color: #f9fafb;
    }
    
    .project-description,
    .action-card p,
    .milestone-card p {
        color: #d1d5db;
    }
    
    .progress-bar {
        background: #374151;
    }
    
    .activity-item {
        border-bottom-color: #374151;
    }
    
    .dashboard-nav a {
        background: #1f2937;
        border-color: #374151;
        color: #d1d5db;
    }
    
    .dashboard-nav a.active {
        background: #3b82f6;
        color: white;
    }
}
