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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-lg);
}

.header-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Upload Section */
.upload-section {
    width: 100%;
}

.upload-box {
    background: var(--surface);
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.upload-box:hover {
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.upload-box h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.upload-box p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95em;
}

/* File Input */
.file-input {
    display: none;
}

.file-input-label {
    display: inline-block;
    margin-bottom: 15px;
}

.file-input-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 35px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.file-input-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.file-input-button:active {
    transform: translateY(0);
}

.file-info {
    color: var(--secondary-color);
    font-weight: 500;
    min-height: 20px;
    font-size: 0.9em;
}

/* Output Section */
.output-section {
    width: 100%;
}

.output-container {
    background: var(--surface);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.output-container h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.output-content {
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f1f5f9;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.output-content::-webkit-scrollbar {
    width: 8px;
}

.output-content::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.output-content::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 4px;
}

.output-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

.empty-state {
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

/* Results Content */
.result-item {
    background: white;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
}

.result-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.result-value {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 0.95em;
    }

    .upload-box {
        padding: 40px 20px;
    }

    .upload-icon {
        font-size: 2.5em;
    }

    .output-content {
        max-height: 400px;
    }

    .main-content {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 40px 15px;
    }

    .header-content h1 {
        font-size: 1.5em;
    }

    .upload-box {
        padding: 30px 15px;
    }

    .output-container {
        padding: 20px;
    }
}