.radio-label {
    margin-right: 20px;
    cursor: pointer;
}
.radio-label input {
    margin-right: 5px;
}
.input-with-btn {
    display: flex;
    gap: 10px;
}
.input-with-btn .query-input {
    flex: 1;
}
.relation-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.btn-label {
    color: #666;
    font-size: 14px;
}
.tag-btn {
    padding: 5px 12px;
    font-size: 13px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
}
.tag-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
.result-cards {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}
.result-card {
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    text-align: center;
    color: white;
}
.card-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}
.card-value {
    font-size: 28px;
    font-weight: bold;
}
.result-relation {
    padding: 8px 12px;
    background: #f0f4f8;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}
.result-relation strong {
    color: #333;
}
.result-info {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff3cd;
    border-radius: 5px;
    font-size: 13px;
    color: #856404;
}
.ai-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #17a2b8;
    color: white;
    border-radius: 10px;
    font-size: 12px;
    margin-right: 5px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.data-table th,
.data-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}
.data-table tr:hover {
    background: #f8f9fa;
}
.mini-btn {
    padding: 3px 10px;
    font-size: 12px;
    border: 1px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 3px;
    cursor: pointer;
}
.mini-btn:hover {
    background: #007bff;
    color: white;
}
.del-btn {
    background: #fff0f0;
    border-color: #ffcccc;
    color: #cc0000;
}
.del-btn:hover {
    background: #ffe0e0;
    border-color: #ff9999;
}
.gender-hint {
    font-size: 12px;
    color: #888;
}
.toast-info {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
}
.toast-info.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    color: #721c24;
}
@media (max-width: 600px) {
    .result-cards {
        flex-direction: column;
    }
    .card-value {
        font-size: 24px;
    }
}
