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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a3d3d 0%, #1a1a4e 50%, #0d2818 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.corner-logo {
    position: absolute;
    top: -10px;
    right: 10px;
    width: 120px;
    height: auto;
    z-index: 100;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 3px solid #2d5f5f;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 20px;
}

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

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    background: linear-gradient(to bottom, #e8f4f0 0%, #d4e8e0 100%);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    border: 3px solid #2d5f5f;
}

.upload-section {
    margin-bottom: 30px;
}

.drop-zone {
    border: 3px dashed #2d5f5f;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f0f8f5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.drop-zone:hover {
    border-color: #1a4d4d;
    background: #e0f0ea;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.drop-zone.drag-over {
    border-color: #1a4d4d;
    background: #d0e8df;
    transform: scale(1.01);
    border-style: solid;
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #1a4d4d;
}

.drop-zone h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0d2818;
    font-weight: 700;
}

.drop-zone p {
    color: #2d5f5f;
    margin: 10px 0;
    font-weight: 500;
}

.file-info {
    font-size: 0.9rem;
    color: #3d7070;
    margin-top: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    pointer-events: auto;
    margin: 10px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(to bottom, #2d7070 0%, #1a4d4d 100%);
    color: white;
    border-color: #0d3535;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #3d8080 0%, #2a5d5d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-success {
    background: linear-gradient(to bottom, #1a5d1a 0%, #0d3d0d 100%);
    color: white;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-color: #082808;
}

.btn-success:hover {
    background: linear-gradient(to bottom, #2a6d2a 0%, #1d4d1d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(to bottom, #c0d4cf 0%, #a0b8b0 100%);
    color: #0d2818;
    border-color: #7a9890;
}

.btn-secondary:hover {
    background: linear-gradient(to bottom, #d0e4df 0%, #b0c8c0 100%);
}

.file-name {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    color: #1a5d1a;
}

.progress-section {
    margin: 40px 0;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: #c0d4cf;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid #2d5f5f;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a4d4d 0%, #0d3535 50%, #1a1a4e 100%);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(26, 77, 77, 0.5);
}

.progress-text {
    text-align: center;
    color: #2d5f5f;
    font-weight: 600;
}

.results-section {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-message {
    margin-bottom: 30px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #1a5d1a;
}

.success-message h3 {
    font-size: 1.8rem;
    color: #0d2818;
    margin-bottom: 10px;
    font-weight: 700;
}

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

.stat-card {
    background: linear-gradient(to bottom, #f0f8f5 0%, #e0f0ea 100%);
    padding: 20px;
    border-radius: 8px;
    border: 3px solid #2d5f5f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #2d5f5f;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.5rem;
    color: #0d2818;
    font-weight: 700;
}

#quartileAvgPrices {
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-line;
}

.error-section {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.error-message {
    margin-bottom: 30px;
}

.error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #8b3a3a;
}

.error-message h3 {
    font-size: 1.8rem;
    color: #5a1f1f;
    margin-bottom: 10px;
    font-weight: 700;
}

.error-message p {
    color: #2d5f5f;
    line-height: 1.6;
    font-weight: 500;
}

footer {
    background: linear-gradient(to bottom, #e8f4f0 0%, #d4e8e0 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 3px solid #2d5f5f;
}

.info-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0d2818;
    font-weight: 700;
}

.info-section ul {
    list-style: none;
    margin-bottom: 20px;
}

.info-section ul li {
    padding: 8px 0;
    color: #1a3d2d;
    line-height: 1.6;
    font-weight: 500;
}

.privacy-note {
    background: linear-gradient(to right, #d0e8df 0%, #c0d8cf 100%);
    padding: 15px;
    border-radius: 6px;
    color: #0d2818;
    border-left: 5px solid #1a5d1a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

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

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 30px 20px;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .corner-logo {
        width: 80px;
        top: -5px;
        right: 5px;
    }
}

