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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #000000;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

header p {
    color: #666666;
    font-size: 1.1em;
}

main {
    flex: 1;
}

.upload-area {
    border: 3px dashed #cccccc;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fafafa;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #000000;
    background-color: #f5f5f5;
}

.upload-area.dragging {
    border-color: #000000;
    background-color: #eeeeee;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #999999;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.2em;
    color: #666666;
    margin-bottom: 20px;
}

.btn-upload {
    background-color: #000000;
    color: #ffffff;
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-upload:hover {
    background-color: #333333;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.1em;
    color: #333333;
}

.loading-detail {
    font-size: 0.9em;
    color: #666666;
    margin-top: 10px;
}

.results {
    animation: fadeIn 0.5s ease;
}

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

.results h2 {
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

.result-summary {
    font-size: 1.1em;
    color: #666666;
    margin-bottom: 30px;
}

.result-summary span {
    font-weight: 600;
    color: #000000;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

thead {
    background-color: #f8f8f8;
    border-bottom: 2px solid #000000;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eeeeee;
}

tbody tr:hover {
    background-color: #fafafa;
}

tbody tr:last-child td {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

.error-message {
    background-color: #f8f8f8;
    border-left: 4px solid #000000;
    padding: 20px;
    margin-top: 20px;
    border-radius: 4px;
}

.error-message p {
    color: #333333;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid #eeeeee;
    color: #999999;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .table-container {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 10px;
    }
}