body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #2d3748;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Header styles */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: static;
    z-index: 1000;
}

.header-container {
    width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
}

/* Responsive header for mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;  /* Less padding on mobile */
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;  /* Even less on small phones */
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logo:hover {
    transform: translateY(-1px)
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #3b82f6;
}

.logo:hover .logo-icon{
    color: #2563eb;
    transform: scale(1.05);
}

.logo:hover .logo-text {
    color: #1f2937;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

/* Responsive container */
        .container {
            background-color: #f0f4f8;
            border-radius: 12px;
            padding: 16px;
            width: 100%;
            max-width: none;
            margin: 0 auto;
            box-sizing: border-box;
            min-height: 100vh;
        }

        .content-card {
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            padding: 20px;
            margin-bottom: 20px;
        }

/* Modern intro section */
.intro-section {
    margin: 3rem 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 250px;
}

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intro-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
    margin: 0;
}

.intro-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.intro-description {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.intro-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.demo-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.demo-note {
    font-size: 0.875rem;
    color: #9ca3af;
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .intro-title {
        font-size: 2.5rem;
    }

    .demo-btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 2rem;
    }

    .intro-subtitle {
        font-size: 1.1rem;
    }

    .demo-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

        /* Responsive drop area */
        .drop-area {
            border: 2px dashed #cbd5e0;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            margin-bottom: 1rem;
        }

        .drop-area p {
            margin: 0.5rem 0;
            font-size: 0.9rem;
        }

        .drop-area.hover {
            background-color: #f7fafc;
            border-color: #3b82f6;
        }

        .drop-area.file-selected {
            background-color: #f0fff4;
            border-color: #10b981;
            border-style: solid;
        }

        /* Responsive button */
        .browse-btn {
            display: inline-block;
            background-color: #3b82f6;
            color: white;
            font-weight: 600;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.875rem;
            text-decoration: none;
        }

        .browse-btn:hover {
            background-color: #2563eb;
        }

        /* Responsive chart container */
        .chart-container {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-top: 1.5rem;
        }

        .chart-card {
            background-color: #edf2f7;
            border-radius: 8px;
            padding: 12px;
            border: solid 1px #000000;
            width: 100%;
            box-sizing: border-box;
            overflow: visible;
        }

        .chart-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: #2d3748;
        }

        /* Responsive loading overlay */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            flex-direction: column;
            padding: 20px;
            box-sizing: border-box;
        }

        .spinner {
            border: 3px solid rgba(0, 0, 0, 0.1);
            border-left-color: #3b82f6;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
        }

        .loading-text {
            color: #4a5568;
            margin-top: 1rem;
            font-size: 0.875rem;
            text-align: center;
        }

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

        /* Responsive button animations */
        .create-report-btn {
            transform: translateY(10px);
            opacity: 0;
            transition: all 0.3s ease-in-out;
            background-color: #10b981;
            color: white;
            font-weight: bold;
            padding: 12px 24px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-size: 0.875rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .create-report-btn.show {
            transform: translateY(0);
            opacity: 1;
        }

        .create-report-btn:hover {
            background-color: #059669;
            transform: scale(1.02);
        }

        /* Responsive file info */
        .file-info {
            background-color: #f0fff4;
            border: 1px solid #10b981;
            border-radius: 8px;
            padding: 12px;
            margin-top: 1rem;
            display: none;
        }

        .file-info.show {
            display: block;
            animation: slideIn 0.3s ease-in-out;
        }

        .file-info-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
        }

        .file-details {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            min-width: 0;
        }

        .file-icon {
            width: 24px;
            height: 24px;
            color: #10b981;
            flex-shrink: 0;
        }

        .file-text {
            min-width: 0;
            flex: 1;
        }

        .file-name {
            font-weight: 600;
            color: #1f2937;
            font-size: 0.875rem;
            word-break: break-word;
        }

        .file-size {
            color: #6b7280;
            font-size: 0.75rem;
        }

        .remove-btn {
            color: #ef4444;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .remove-btn:hover {
            background-color: rgba(239, 68, 68, 0.1);
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive plotly charts */
        .plotly-chart {
            width: 100%;
            height: 300px;
            position: relative;
            border-radius: 6px;
            overflow: hidden;
        }

        /* Tailwind messes up with the plotly modebar styles, fix with this */
        .js-plotly-plot .plotly .modebar svg {
	        display: inline;
        }

        .plotly-chart .modebar {
            position: absolute !important;
            top: 5px !important;
            right: 5px !important;
            z-index: 1001 !important;
            background: rgba(255, 255, 255, 0.95) !important;
            border: 1px solid #e2e8f0 !important;
            border-radius: 4px !important;
            padding: 2px !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
            transform: scale(0.8) !important;
            transform-origin: top right !important;
        }

        /* Responsive message box */
        .message-box {
            position: fixed;
            inset: 0;
            z-index: 50;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.5);
            padding: 16px;
            box-sizing: border-box;
        }

        .message-content {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            width: 100%;
            margin: 0 16px;
        }

        .message-text {
            color: #1f2937;
            margin-bottom: 1rem;
            font-size: 0.875rem;
            line-height: 1.5;
        }

        .message-btn {
            width: 100%;
            background-color: #3b82f6;
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-size: 0.875rem;
        }

        .message-btn:hover {
            background-color: #2563eb;
        }

        .report-button-container {
            margin-top: 1rem;
        }

        /* Fix for SVG icons */
        svg {
            display: inline-block;
            vertical-align: middle;
        }

        /* Fix for hidden elements */
        .hidden {
            display: none !important;
        }

        /* Fix for text center */
        .text-center {
            text-align: center;
        }

        /* Fix for any dynamic styles that might be added by JavaScript */
        .dynamic-style-fix {
            position: relative;
        }

        /* Fix for Plotly responsive charts */
        .js-plotly-plot .plotly .main-svg {
            position: absolute !important;
        }

        /* Additional Plotly fixes */
        .js-plotly-plot .plotly .svg-container {
            position: relative !important;
        }

        .js-plotly-plot .plotly .plot-container {
            height: 100% !important;
            width: 100% !important;
        }

        /* Mobile-specific styles */
        @media (max-width: 768px) {
            body {
                padding: 5px;
            }

            .container {
                padding: 12px;
                border-radius: 8px;
            }


            .drop-area {
                padding: 16px;
            }

            .drop-area p {
                font-size: 0.8rem;
                margin: 0.25rem 0;
            }

            .browse-btn {
                padding: 6px 12px;
                font-size: 0.8rem;
            }

            .chart-card {
                padding: 8px;
            }

            .chart-title {
                font-size: 0.9rem;
                margin-bottom: 0.5rem;
            }

            .plotly-chart {
                height: 250px;
            }

            .plotly-chart .modebar {
                transform: scale(0.7) !important;
                top: 2px !important;
                right: 2px !important;
            }

            .create-report-btn {
                padding: 10px 20px;
                font-size: 0.8rem;
            }

            .file-info {
                padding: 10px;
            }

            .file-info-content {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .remove-btn {
                align-self: flex-end;
            }

            .spinner {
                width: 24px;
                height: 24px;
                border-width: 2px;
            }

            .loading-text {
                font-size: 0.8rem;
            }
        }

        /* Add this CSS class for the "no charts" message */
        .no-charts-message {
            color: #6b7280;
            text-align: center;
            width: 100%;
            padding: 20px;
            font-style: italic;
            background-color: #f9fafb;
            border-radius: 8px;
            border: 1px dashed #d1d5db;
            margin: 20px 0;
        }

        /* Mobile responsive styling for no charts message */
        @media (max-width: 768px) {
            .no-charts-message {
                padding: 15px;
                font-size: 0.875rem;
            }
        }

        @media (max-width: 480px) {
            .no-charts-message {
                padding: 12px;
                font-size: 0.8rem;
            }
        }

        /* Extra small mobile devices */
        @media (max-width: 480px) {
            .main-title {
                font-size: 1.25rem;
            }

            .subtitle {
                font-size: 0.75rem;
            }

            .drop-area {
                padding: 12px;
            }

            .plotly-chart {
                height: 200px;
            }

            .chart-card {
                padding: 6px;
            }

            .message-content {
                margin: 0 8px;
                padding: 16px;
            }
        }

        /* Large screens */
        @media (min-width: 1024px) {
            .container {
                padding: 32px;
            }

            .main-title {
                font-size: 2.25rem;
            }

            .subtitle {
                font-size: 1rem;
            }

            .plotly-chart {
                height: 450px;
            }

            .drop-area {
                padding: 40px;
            }
        }

        /* Statistics Section Styles */
.stats-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stats-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
    text-align: center;
}

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

/* Individual Stat Card */
.stat-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid transparent;
}

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

/* Color variants */
.stat-card-blue {
    border-left-color: #3b82f6;
}

.stat-card-green {
    border-left-color: #10b981;
}

.stat-card-orange {
    border-left-color: #f59e0b;
}

.stat-card-purple {
    border-left-color: #8b5cf6;
}

.stat-card-yellow {
    border-left-color: #eab308;
}

.stat-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    min-width: 2rem;
    text-align: center;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
    line-height: 1.2;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-icon {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }

    .stat-value {
        font-size: 1.125rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }

    .stat-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* Enhanced chart card styles */
.chart-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.plotly-chart {
    margin-bottom: 1rem;
    min-height: 400px;
}