body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 26px;
}

h3 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
}

.description {
    text-align: center;
    color: #7f8c8d;
    margin: 10px 0;
    font-size: 14px;
}

.input-section {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
}

.input-field {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

input[type="text"],
input[type="number"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    width: 150px;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

button.loading {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.results-container {
    margin-top: 20px;
}

.quick-results {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.as-info {
    font-size: 16px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #ecf0f1;
    border-radius: 6px;
}

.more-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.external-links {
    display: flex;
    gap: 10px;
    margin: 5px 0;
}

.external-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.external-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.link-icon {
    margin-right: 6px;
}

.disclaimer {
    padding: 10px;
    background-color: #fef9e7;
    border-left: 4px solid #f39c12;
    font-size: 14px;
    line-height: 1.4;
}

.filter-note {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #f39c12;
}

.result-item {
    padding: 8px 0;
    font-size: 16px;
}

.label {
    font-weight: bold;
    color: #2c3e50;
    display: inline-block;
    width: 100px;
}

/* Prefix Stats Styling */
.prefix-stats-container {
    margin-bottom: 20px;
}

.prefix-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.prefix-stats-table th {
    background-color: #ecf0f1;
    padding: 8px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.prefix-stats-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.prefix-stats-table tr:last-child td {
    border-bottom: none;
}

.bar {
    height: 16px;
    background-color: #3498db;
    border-radius: 3px;
    min-width: 5px;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    input[type="text"],
    input[type="number"] {
        width: 100%;
    }
    
    button {
        width: 100%;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .prefix-stats-table th:nth-child(3),
    .prefix-stats-table td:nth-child(3) {
        display: none; /* Hide visual bars on mobile */
    }
}
