body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.user-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.user-checkbox:checked::before {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    line-height: 1rem;
    text-align: center;
    display: block;
}

.rule-label {
    white-space: nowrap;
    flex-shrink: 0;
}

.rule-item {
    position: relative;
    padding-top: 1rem !important;
}

.remove-rule-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    line-height: 1;
    z-index: 10;
    flex-shrink: 0;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.25rem;
    width: 100%;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.tag-remove-btn {
    margin-left: 0.5rem;
    color: #1d4ed8;
    cursor: pointer;
}

.tag-remove-btn:hover {
    color: #991b1b;
}

.tag-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0.5rem;
    background-color: transparent;
    min-width: 150px;
}

.autocomplete-container {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
}

.autocomplete-suggestions li {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.autocomplete-suggestions li:hover {
    background-color: #f3f4f6;
}

.autocomplete-suggestions li.suggestion-active {
    background-color: #dbeafe;
}

.copy-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.25rem;
    cursor: pointer;
    vertical-align: middle;
    fill: #9ca3af;
    /* gray-400 */
}

.copy-icon:hover {
    fill: #3b82f6;
    /* blue-500 */
}

#tooltip {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    transform: translate(10px, -25px);
}

.scrollable-problems {
    max-height: 24rem;
    overflow-y: auto;
}

/* 개별 결과 컨테이너 스타일 */
.rule-results-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.rule-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.rule-list-title {
    border-left: 5px solid #3b82f6; 
    padding-left: 0.5rem; 
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: block; 
}