/* Dashboard Layout Fixes for Vercel Deployment */

/* Ensure dashboard shows properly */
.dashboard-section {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Fix potential CSS loading issues */
.dashboard-container * {
    box-sizing: border-box !important;
}

/* Ensure grid layouts work properly */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
    width: 100% !important;
}

/* Prevent text wrapping issues */
.stat-card {
    word-wrap: break-word !important;
    overflow: hidden !important;
}

.stat-content h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.25rem 0 !important;
    line-height: 1.2 !important;
}

.stat-content p {
    font-size: 0.875rem !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Projects list fixes */
.projects-list {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.project-card {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.project-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.project-info h4 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.25rem 0 !important;
    color: #111827 !important;
}

.project-meta {
    display: flex !important;
    gap: 1rem !important;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    margin-top: 0.5rem !important;
}

.project-meta span {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.project-actions {
    color: #9ca3af !important;
    font-size: 1rem !important;
}

.project-actions i {
    transition: transform 0.2s ease !important;
}

.project-card:hover .project-actions i {
    transform: translateX(2px) !important;
}

/* Mobile responsiveness fixes */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat-card {
        padding: 1rem !important;
        min-height: 80px !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stat-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.5rem !important;
    }
    
    .stat-icon {
        margin-bottom: 0.5rem !important;
    }
}

/* Loading state fixes */
.dashboard-section:not([style*="display: none"]) {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure proper text rendering */
.recent-projects h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    color: #111827 !important;
}