.main-container {
    background-color: #F8FAFD;
    min-height: 100vh;
    height: 100%;
}

#project-list-container, #project-form-container {
    padding: 50px;
    min-width: 900px;
}

.project-form {
    padding: 50px;
    border-collapse: collapse;
    background-color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.project-table-header, .project-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
} */

.button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}
.edit-button {
    background-color: #333;
}
.delete-button {
    background-color: #666;
}
.yes {
    color: green;
}
.no {
    color: red;
}

tr:hover td:nth-child(2) {
    text-decoration: underline;
    cursor: pointer;
}

tr:hover {
    cursor: pointer;
}


.patent-detail {
    padding: 20px;
}

.patent-detail h1 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.patent-detail h2 {
    /* em은 부모 요소의 font-size를 기준으로 하는 상대적인 크기 단위입니다.
       1em은 부모의 font-size와 동일하며, 1.2em은 부모 크기의 1.2배입니다. */
    /* font-size: 1.2em; */
    margin-top: 40px;
}

.patent-detail dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 10px;
    margin: 20px 0;
}

.patent-detail dt {
    font-weight: bold;
    color: #333;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.patent-detail dd {
    margin: 0;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.patent-detail dd[repeat] {
    display: inline-block;
    margin-right: 10px;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 특허 상세 정보에서 국가 코드, 국가 이름, 공개 번호를 제외한 모든 span 요소를 숨김 처리 */
.patent-detail dl span:not(.country-code)
:not(.country-name)
:not(.publication-number) {
    display: none;
}

.patent-detail meta {
    display: none;
}

.patent-detail dt + dd {
    display: block;
}


.patent-detail .claims-content .claim-item {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.patent-detail .claims-content .claim-dependent {
    margin-left: 2rem;
    position: relative;
}

/* .patent-detail .claims-content .claim-item .claim-number {
    flex-shrink: 0;
    min-width: 2rem;
}

.patent-detail .claims-content .claim-item .claim-content {
    flex: 1;
} */

/* 선택사항: 종속항 시각적 표시 */
.patent-detail .claims-content .claim-item.claim-dependent::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5em;
    width: 0.5rem;
    height: 1px;
    background-color: #ccc;
}

/* Description 부분 스타일 */
.patent-detail .description-content div {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.patent-detail .para-num {
    color: #666;
    margin-bottom: 5px;
}

.patent-detail .description-text {
    padding-left: 20px;
}

/* 키워드 관리 UI 개선 스타일 - 검색 결과 표시 스타일 제거됨 */

.keyword-container {
    max-height: 400px;
    overflow-y: auto;
}

.keyword-container::-webkit-scrollbar {
    width: 6px;
}

.keyword-container::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

.keyword-container::-webkit-scrollbar-thumb:hover {
    background-color: #adb5bd;
}

/* 버튼 그룹 간격 조정 */
.btn-group .btn {
    margin-right: 2px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* 키워드 행 호버 효과 */
.keyword-container .d-flex.align-items-center.justify-content-between:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* 검색 입력 필드 스타일링 */
.input-group-sm .form-control {
    font-size: 0.85rem;
}

/* 정렬 선택 박스 스타일링 */
.form-select-sm {
    min-width: 100px;
}

/* 색상 그리드 개선 */
.color-grid {
    max-width: 300px;
}

.color-cell {
    position: relative;
    transition: all 0.2s ease;
}

.color-cell:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-cell.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-weight: bold;
}

/* 키워드 하이라이트 기본 스타일 - 기존 텍스트 스타일 유지 */
mark.keyword-highlight {
    border-radius: 2px;
    padding: 0; /* 패딩 제거로 원본 레이아웃 유지 */
    margin: 0; /* 마진도 제거 */
    border: none; /* 테두리 제거 */
    color: inherit; /* 기존 텍스트 색상 유지 */
    font-weight: inherit; /* 기존 폰트 굵기 유지 */
    font-style: inherit; /* 기존 폰트 스타일 유지 */
    text-decoration: inherit; /* 기존 텍스트 장식 유지 */
    letter-spacing: inherit; /* 기존 글자 자간 유지 */
    font-size: inherit; /* 기존 폰트 크기 유지 */
    line-height: inherit; /* 기존 줄 높이 유지 */
    display: inline; /* 인라인 유지로 레이아웃 변경 방지 */
}