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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

header {
    text-align: center;
    padding: 30px 0 20px;
}

header h1 {
    font-size: 28px;
    color: #1a1a2e;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

.search-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

#searchInput {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

#searchInput:focus {
    border-color: #4a90d9;
}

.search-filters {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.search-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    flex: 1;
}

#searchBtn {
    padding: 8px 24px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

#searchBtn:hover {
    background: #357abd;
}

.stats {
    font-size: 13px;
    color: #888;
    padding: 0 4px 8px;
}

.results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.result-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.result-company {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 15px;
}

.result-score {
    font-size: 12px;
    color: #fff;
    background: #4a90d9;
    padding: 2px 8px;
    border-radius: 10px;
}

.result-score.high {
    background: #27ae60;
}

.result-score.medium {
    background: #f39c12;
}

.result-score.low {
    background: #95a5a6;
}

.result-doc {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.result-doc a {
    color: #4a90d9;
    text-decoration: none;
}

.result-doc a:hover {
    text-decoration: underline;
}

.result-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    border-left: 3px solid #e0e0e0;
    padding-left: 12px;
    margin-top: 8px;
}

.result-page {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

@media (max-width: 600px) {
    .search-filters {
        flex-direction: column;
    }
    .container {
        padding: 12px;
    }
    header {
        padding: 16px 0 12px;
    }
}
