body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    padding-top: 50px;
    padding-bottom: 50px;
}
.container {
    max-width: 900px;
    width: 95%;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #6495ed;
    /* Allows for both horizontal and vertical scrolling if content exceeds padding */
    overflow: auto; 
}
h2 {
    text-align: center;
    color: #1e90ff;
    margin-bottom: 25px;
}

.upload-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px dashed #6495ed;
    border-radius: 8px;
    background-color: #eaf3ff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.upload-section label {
    font-weight: bold;
    color: #333;
}
.instruction-text {
    text-align: center;
    color: #555;
    margin-bottom: 15px;
}
input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    /* REMOVED: min-width: 600px; to allow the table to shrink */
}
.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    /* REMOVED: white-space: nowrap; to allow text inside cells to wrap */
}
.data-table th {
    background-color: #1e90ff;
    color: white;
    font-weight: bold;
    position: sticky; 
    top: 0;
    z-index: 10;
}
.data-table tr:nth-child(even) {
    background-color: #f2f2f2;
}
.data-table tr:hover:not(:first-child) {
    background-color: #e0e0ff;
}

@media (max-width: 600px) {
    body {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .container {
        padding: 15px;
        width: 100%;
        border-width: 1px;
    }
    h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    .data-table th, .data-table td {
        padding: 8px;
        font-size: 0.9em;
    }
    .upload-section {
        padding: 10px;
    }
}