body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.chart-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.charts-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 400px;
    margin: 20px auto;
}

.distribution-chart-container {
    position: relative;
    height: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.distribution-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 10px;
    text-align: center;
}

.stat-card h3 {
    margin: 0;
    color: #667eea;
    font-size: 24px;
}

.stat-card p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.error {
    background: #fee;
    color: #c00;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
}

.tld-list {
    margin-top: 20px;
    background: white;
    padding: 15px;
    border-radius: 5px;
}

.tld-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.tld-item:last-child {
    border-bottom: none;
}

.tld-name {
    font-weight: 500;
    color: #333;
}

.tld-count {
    color: #667eea;
    font-weight: 600;
}

.domain-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.domain-item:last-child {
    border-bottom: none;
}

.domain-name {
    font-weight: 500;
    color: #333;
    font-family: monospace;
}

.domain-length {
    color: #764ba2;
    font-weight: 600;
}

.years-distribution-section {
    margin-top: 40px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
}

.years-distribution-chart-container {
    position: relative;
    height: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.prefix-distribution-section {
    margin-top: 40px;
    padding: 20px;
    background: #fff4e6;
    border-radius: 8px;
}

.prefix-distribution-chart-container {
    position: relative;
    height: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.location-distribution-section {
    margin-top: 40px;
    padding: 20px;
    background: #e8f5e8;
    border-radius: 8px;
}

.location-distribution-chart-container {
    position: relative;
    height: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.names-distribution-section {
    margin-top: 40px;
    padding: 20px;
    background: #f4e8f8;
    border-radius: 8px;
}

.names-distribution-chart-container {
    position: relative;
    height: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.health-distribution-section {
    margin-top: 40px;
    padding: 20px;
    background: #ffe8e8;
    border-radius: 8px;
}

.health-distribution-chart-container {
    position: relative;
    height: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.hospitality-distribution-section {
    margin-top: 40px;
    padding: 20px;
    background: #e0f7fa;
    border-radius: 8px;
}

.hospitality-distribution-chart-container {
    position: relative;
    height: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.hosted-in-distribution-section {
    margin-top: 40px;
    padding: 20px;
    background: #f3e5f5;
    border-radius: 8px;
}

.hosted-in-distribution-chart-container {
    position: relative;
    height: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.words-distribution-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.words-distribution-chart-container {
    position: relative;
    height: 400px;
    margin: 20px auto;
    padding: 0 20px;
}