/* General Body & Font Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    min-height: 100vh;
    padding: 2rem;
    color: #334155;
}

/* Main Container */
.container {
    background: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 1.5rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.main-header p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* Upload Form Styling */
.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border: 2px dashed #cbd5e1;
    padding: 2rem;
    border-radius: 1rem;
}

/* Hiding the default file input */
.upload-form input[type="file"] {
    display: none;
}

/* Custom File Upload Button */
.custom-file-upload {
    border: 1px solid #9333ea;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    background-color: #f5f3ff;
    color: #9333ea;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #ede9fe;
}

.file-name-display {
    font-style: italic;
    color: #64748b;
}

/* Main Analyze Button */
.upload-form button {
    background: linear-gradient(90deg, #8b5cf6, #c084fc);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.upload-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Flash Message for Errors */
.flash-message {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

/* Results Section */
.results-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: left;
}
.highlight {
    color: #8b5cf6;
}

.insights-grid {
    display: grid;
    gap: 1.5rem;
}

/* Shared Card Style */
.insight-card, .audio-player-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.insight-card h3, .audio-player-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #334155;
    font-weight: 600;
}

.insight-card .content {
    overflow-x: auto;
}

/* Styling for Pandas Tables within Cards */
.insight-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.insight-card th, .insight-card td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
}
.insight-card thead {
    background-color: #f1f5f9;
}
.insight-card tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

