/* Modern Tech Industry Dashboard Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Professional Light Theme Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

    /* Light Theme Backgrounds */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-overlay: rgba(248, 250, 252, 0.95);

    /* Light Theme Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-accent: #667eea;

    /* Light Theme Borders */
    --border-primary: #e2e8f0;
    --border-secondary: #f1f5f9;

    /* Professional Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: var(--spacing-lg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

/* Header */
.dashboard-header {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: var(--spacing-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.dashboard-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.dashboard-header p {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Dashboard Content */
.dashboard-content {
    padding: var(--spacing-2xl);
    background: var(--bg-primary);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--success-gradient);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--text-accent);
}

.stat-card:hover::before {
    transform: translateX(0);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--success-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
}

/* Progress Section */
.progress-section {
    margin: var(--spacing-2xl) 0;
}

.progress-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
}

.progress-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--text-accent);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.progress-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.progress-percentage {
    font-weight: 700;
    color: var(--text-accent);
    font-size: 1.1rem;
}

.progress-bar {
    background: var(--border-secondary);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 8px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Milestones */
.milestones-section {
    margin-top: var(--spacing-2xl);
}

.milestone {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
}

.milestone:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-accent);
}

.milestone.completed {
    border-left: 3px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
}

.milestone.in-progress {
    border-left: 3px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%);
}

.milestone.pending {
    border-left: 3px solid #6b7280;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, transparent 100%);
}

.milestone-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.milestone.completed .milestone-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.milestone.in-progress .milestone-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.milestone.pending .milestone-icon {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.milestone-content h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    font-size: 1.1rem;
}

.milestone-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Timeline */
.timeline-section {
    margin-top: var(--spacing-2xl);
}

.timeline-item {
    display: flex;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 110px;
    top: 0;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-primary), transparent);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-date {
    width: 100px;
    text-align: right;
    padding-right: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    position: relative;
    margin-left: var(--spacing-md);
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid var(--bg-card);
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-accent);
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Chart Container */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
    backdrop-filter: blur(10px);
}

.chart-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--radius-md);
}

/* Contact Section */
.contact-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
}

.contact-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-info {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn:hover::before {
    left: 100%;
}

/* Excel Upload Styles */
.excel-upload-container {
    margin: var(--spacing-lg) 0;
}

.upload-area {
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
}

.upload-area:hover {
    border-color: var(--text-accent);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.upload-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.upload-content small {
    color: var(--text-muted);
}

/* Message Styles */
.message {
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Chart Container Styles */
#excel-charts {
    min-height: 200px;
}

#excel-charts canvas {
    max-height: 400px;
}

#excel-charts h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-content {
        padding: var(--spacing-xl);
    }

    .dashboard-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: var(--spacing-md);
    }

    .dashboard-content {
        padding: var(--spacing-lg);
    }

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

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-date {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: var(--spacing-sm);
    }

    .timeline-content {
        margin-left: 0;
    }

    .timeline-content::before {
        display: none;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .dashboard-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: var(--spacing-lg);
    }

    .milestone {
        padding: var(--spacing-md);
    }

    .milestone-icon {
        width: 28px;
        height: 28px;
        margin-right: var(--spacing-md);
    }
}