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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    font-size: 16px;
}

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

header {
    text-align: center;
    margin-bottom: 48px;
    background: white;
    padding: 48px 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
    letter-spacing: -0.025em;
}

header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

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

.drop-zone {
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 64px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: #3b82f6;
    background: #fefefe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.upload-icon {
    margin-bottom: 24px;
    color: #6b7280;
}

.upload-icon svg {
    width: 48px;
    height: 48px;
}

.drop-zone h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.drop-zone p {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 1rem;
}

.browse-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    pointer-events: all;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.browse-btn:hover {
    background: #2563eb;
}

.drop-zone small {
    display: block;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 12px;
}

.loading {
    background: white;
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 48px;
}

.loading p {
    color: #6b7280;
    font-weight: 500;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.results {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 48px;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.score-number {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-description {
    flex: 1;
}

.score-description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.info-section {
    margin-bottom: 40px;
    padding: 32px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.info-section h3 {
    margin-bottom: 20px;
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
}

.info-section p {
    margin-bottom: 12px;
    color: #4b5563;
    line-height: 1.6;
}

.info-section a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.info-section a:hover {
    color: #2563eb;
    text-decoration: underline;
}


.analysis-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.details-section {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.details-section h3 {
    margin-bottom: 16px;
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
}

.details-section ul {
    list-style: none;
}

.details-section li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
}

.details-section li:last-child {
    border-bottom: none;
}

.columns-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.875rem;
}

.columns-table th,
.columns-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.columns-table th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
}

.columns-table td {
    color: #6b7280;
}

.demo-section {
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.demo-section h2 {
    color: #111827;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 600;
}

.demo-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.demo-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.demo-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    color: #6b7280;
    padding: 32px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 48px;
}

footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Overview grid styling */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.overview-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.overview-item strong {
    color: #111827;
}

/* Type badge styling */
.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.type-string {
    background: #dbeafe;
    color: #1e40af;
}

.type-integer, .type-float {
    background: #dcfce7;
    color: #166534;
}

.type-date {
    background: #fef3c7;
    color: #92400e;
}

.type-unknown {
    background: #f3f4f6;
    color: #6b7280;
}

/* Score color variations */
.score-circle.excellent { background: #10b981; }
.score-circle.good { background: #3b82f6; }
.score-circle.fair { background: #f59e0b; }
.score-circle.poor { background: #ef4444; }

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }

    header {
        padding: 32px 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .score-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .analysis-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .demo-buttons {
        flex-direction: column;
        align-items: center;
        max-width: 200px;
        margin: 0 auto;
    }

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