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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
}

.top-nav {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.nav-list {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-category {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: #24a0ed;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: #1c8cd4;
}

header {
    margin-bottom: 25px;
    border-bottom: 2px solid #333;
    padding-bottom: 12px;
}

h1 {
    font-size: 1.6rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
}

.description {
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    background: #fff;
}

input[type="text"]:focus {
    outline: none;
    border-color: #24a0ed;
}

button {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #24a0ed;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #1c8cd4;
}

button:active {
    background: #1678bc;
}

.how-it-works {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 25px 0;
}

.how-it-works h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.how-it-works p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.loading {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.loading p {
    color: #666;
}

.error-box {
    padding: 15px;
    background: #fff;
    border: 1px solid #d00;
    margin-bottom: 20px;
    color: #d00;
}

.results {
    margin-top: 25px;
}

.summary-card {
    background: #fff;
    border: 1px solid #333;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-card h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
}

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

.summary-table td {
    padding: 6px 0;
    color: #333;
}

.summary-table td:first-child {
    width: 140px;
    font-weight: 600;
}

.section {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    padding: 20px;
}

.section h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
}

.section h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.note {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.rules-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.rules-table thead {
    background: #f0f0f0;
}

.rules-table th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ddd;
}

.rules-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.directive-disallow {
    color: #d00;
}

.directive-allow {
    color: #080;
}

.crawler-block {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
}

.crawler-block h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.sitemap-list {
    list-style: none;
    padding: 0;
}

.sitemap-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.sitemap-list li:last-child {
    border-bottom: none;
}

.sitemap-list a {
    color: #24a0ed;
    text-decoration: none;
    word-break: break-all;
}

.sitemap-list a:hover {
    text-decoration: underline;
}

.verdict p {
    font-size: 0.95rem;
    color: #333;
}

.crawl-delay {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    color: #999;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .form-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .summary-table td:first-child {
        width: 120px;
    }
}
