body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #ffffff;
    
}
/* ── 공통 헤더 & 네비게이션 ─────────────────────────────────── */
header, #headermenu {
    background-color: #12151f;
    height: 44px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #1e2540;
    flex-shrink: 0;
}
.menu {
    width: 100%;
    display: flex;
    align-items: center;
}
nav { width: 100%; }
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}
nav ul li {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 0;
    vertical-align: unset;
}
nav ul li a {
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
nav ul li a.active {
    background-color: #1e3a8a;
    color: #fff;
}
nav ul li a.inactive {
    color: #7a8db0;
    background-color: transparent;
}
nav ul li a:hover {
    background-color: #1e2540;
    color: #fff;
}

/* ── AI분석 서브메뉴 드롭다운 ─────────────────────────────────── */
#ai-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    background-color: #12151f;
    border: 1px solid #1e2540;
    border-radius: 8px;
    list-style: none;
    padding: 4px;
    margin: 0;
    min-width: 120px;
    width: auto;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    white-space: nowrap;
}
#ai-submenu.hidden { display: none; }
#ai-submenu li { display: block; margin: 0; padding: 0; }
#ai-submenu li a {
    display: block;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #9aaac8;
    background: transparent;
    white-space: nowrap;
}
#ai-submenu li a:hover { background-color: #1e2540; color: #fff; }

@media (hover: hover) and (pointer: fine) {
    #ai-menu-li::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        right: 0;
        height: 8px;
    }
    #ai-menu-li #ai-submenu { top: calc(100% + 4px); }
}

/* ── My 서브메뉴 드롭다운 ────────────────────────────────────── */
#submenu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    background-color: #12151f;
    border: 1px solid #1e2540;
    border-radius: 8px;
    list-style: none;
    padding: 4px;
    margin: 0;
    min-width: 130px;
    width: auto;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    white-space: nowrap;
}
#submenu.hidden { display: none; }
#submenu li {
    display: block;
    margin: 0;
    padding: 0;
    position: static;
    z-index: unset;
}
#submenu li a {
    display: block;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #9aaac8;
    background: transparent;
    white-space: nowrap;
}
#submenu li a:hover {
    background-color: #1e2540;
    color: #fff;
}

/* My li — 마우스 브리지: 높이 변경 없이 아래쪽 히트영역 확보 (데스크탑 전용) */
@media (hover: hover) and (pointer: fine) {
    #my-menu-li::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        right: 0;
        height: 8px;
    }
    #my-menu-li #submenu {
        top: calc(100% + 4px);
    }
}

#headermenu nav li {
    position: relative;
}


main {
    padding: 0.05em;
    text-align: center;
}
h2 {
    font-size: 1.2em;
    margin-bottom: 0.01em;
}
h1 {
    font-size: 1.5em;
    margin-bottom: 0.01em;
}
.subtitle {
    font-size: 1.0em;
    margin-bottom: 0.01em;
}
.chart-container {
   
    position: relative; 
    background-color: #2a2a2a;
    border: 1px solid #444;
    width: 75%;
    max-width: 620px;

}

.text-overlay {
    position: absolute; /* 이미지 위에 절대 위치 */
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%); /* 중앙 정렬 */
    color: lime; /* 텍스트 색상 */
    background-color: rgba(0, 0, 0, 0.5); /* 텍스트 배경 (선택 사항) */
    padding: 10px; /* 여백 (선택 사항) */
    font-size:2em;
}  
.features {
    font-size: 0.9em;
    text-align: left;
    max-width: 620px;
    margin: 0 auto;
}
.cta-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    margin-top: 0px;
}
footer {
    background-color: rgba(51, 51, 51, 0.1);  /* Dark gray background */
    color: #ffffff;          /* White text color */
    text-align: center;      /* Center-aligns text */
    padding: 0.0em;          /* Adjusted padding for better spacing */
    position: fixed;         /* Fixed position to stick at the bottom */
    left: 0;                 /* Align to the left edge */
    right: 0;                /* Align to the right edge */
    bottom: 0;               /* Align to the bottom of the viewport */
    margin: 0;               /* Remove margin to prevent any offset */
    height: 40px;            /* Fixed height */
    z-index: 1000;           /* Ensure it appears above other content */
}
/*-----------------------------------*/
#loginContainer {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 171, 250, 0.5); /* 배경색 설정 (선택 사항) */
    border: 1px solid #ccc; /* 테두리 설정 (선택 사항) */
    padding: 50px;
    display: none; /* 초기에는 숨김 */
}
.tooltip {
    display: none;
    position: absolute;
    background-color: black;
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
 }
 .searchResults {
    display: none;
    top:21px;
    position: absolute;
    background-color: black;
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    max-height: 300px; /* 높이 설정 */
    overflow-y: auto; /* y축 스크롤 추가 */
 }
  /* 활성화될 때 표시 */
.tooltip.active {
   display: block;
}
.triangle{
    display:inline-block;
    border:8px solid transparent;
}

.triangle-bottom{
    border-bottom-color: red;
}
.triangle-top{
    border-top-color: red;
    margin-left: -25px;
    margin-right: 10px;
    margin-top: 13px;
    cursor: pointer;

}
.triangle-right{
    
    border-top-color: red;
    margin-left: -25px;
    margin-right: 10px;
    margin-top: 13px;
    cursor: pointer;

}
.red-square {
    width: 16px;  /* 너비 */
    height: 16px; /* 높이 */
    background-color: red; /* 배경 색상: 빨간색 */
    display: inline-block;  /* 다른 요소와 나란히 배치 가능 */
    margin-top: 8px;
    cursor: pointer;
}
.star {
    color: yellow;         /* 별표의 색상을 빨간색으로 설정 */
    font-size: 20px;   /* 별표의 크기 설정 */
   
}
.trianglerightpoint {
    
    width: 0;
    height: 0;
    border-left: 5px solid transparent; /* 삼각형의 왼쪽 */
    border-top: 5px solid transparent; /* 삼각형의 오른쪽 */
    border-bottom: 5px solid #3498db; /* 삼각형의 밑면 색 */
    
}
.code-cell {
    width: 80px;
}

.codename-cell {
    width: auto;
}

.memocontainer {
    display: flex;
    align-items: center; /* 세로 정렬 */
}

textarea {
    margin-left:5%;
    width: 75%;
    height: auto;
    min-height: 2em; /* 10줄에 해당하는 높이를 설정 */
    background-color: rgb(30, 30, 30);
    color: rgb(180, 180, 180); /* 글자 색상도 설정 (선택 사항) */
    border:  1px solid rgb(80, 80, 80); /* 테두리 색상 */
    padding: 10px; /* 패딩 추가 */
    box-sizing: border-box; /* 패딩이 포함된 너비 계산 */
    margin-bottom: 5px;
}

.save-button {
    margin-left: 0px; /* textarea와의 간격 */
    padding: 10px 15px; /* 버튼 패딩 */
    background-color: rgb(30, 30, 30); /* 버튼 배경 색상 */
    border: 1px solid rgb(80, 80, 80);
    color: rgb(180, 180, 180); /* 버튼 글자 색상 */
    border-radius: 5px; /* 모서리 둥글게 */
    cursor: pointer; /* 커서 포인터로 변경 */
}

.save-button:hover {
    background-color: #0056b3; /* 호버 시 색상 변경 */
}



input[type="text"] {
    border: 1px solid #ccc; /* 테두리 색깔 */
    background-color: #f9f9f9; /* 배경색 */
    padding: 10px; /* 내부 여백 */
    font-size: 16px; /* 글자 크기 */
    /*width: 100%; *//* 너비 100% */
    box-shadow: none; /* 그림자 제거 */
    outline: none; /* 포커스 시 아웃라인 제거 */
    border-radius: 4px; /* 모서리 둥글게 */
}

input[type="text"]:focus {
    border-color: #007BFF; /* 포커스 시 테두리 색 변경 */
    background-color: #fff; /* 포커스 시 배경색 변경 */
}

input[type="text"][readonly] {
    background-color: #2a2a2a; /* 읽기 전용 배경색 */
    border: 1px solid #ced4da; /* 읽기 전용 테두리 */
    color: lightblue; /* 읽기 전용 글자 색상 */
}


input[type="password"] {
    border: 1px solid #ccc; /* 테두리 색깔 */
    background-color: #f9f9f9; /* 배경색 */
    padding: 10px; /* 내부 여백 */
    font-size: 16px; /* 글자 크기 */
    /*width: 100%; *//* 너비 100% */
    box-shadow: none; /* 그림자 제거 */
    outline: none; /* 포커스 시 아웃라인 제거 */
    border-radius: 4px; /* 모서리 둥글게 */
}

input[type="password"]:focus {
    border-color: #007BFF; /* 포커스 시 테두리 색 변경 */
    background-color: #fff; /* 포커스 시 배경색 변경 */
}

input[type="password"][readonly] {
    background-color: #2a2a2a; /* 읽기 전용 배경색 */
    border: 1px solid #ced4da; /* 읽기 전용 테두리 */
    color: #495057; /* 읽기 전용 글자 색상 */
}

select {
    /*width: 200px;*/ /* 가로 너비 */
    height: 40px; /* 세로 높이 */
    padding: 8px; /* 내부 여백 */
    border: 1px solid #ccc; /* 테두리 색상 */
    border-radius: 4px; /* 모서리 둥글기 */
    background-color: #f9f9f9; /* 배경 색상 */
    color: #777; /* 텍스트 색상 */
    font-size: 16px; /* 글자 크기 */
    /*appearance: none;*/ /* 기본 드롭다운 화살표 제거 */
    outline: none; /* 포커스 시 아웃라인 제거 */
}

select:disabled {
    background-color: #2a2a2a; /* Disabled 상태 색상 */
    color: lightblue; /* Disabled 상태 텍스트 색상 */
    cursor: not-allowed; /* 마우스 커서 변경 */
}

select:focus {
    border-color: #007BFF; /* 포커스 시 테두리 색상 */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* 포커스 시 그림자 효과 */
}
.submit-button {
    background-color: #2a2a2a; /* 버튼 배경색 */
    border:  1px solid #ccc; 
    color: white; /* 글자색 */
    padding: 15px 32px; /* 상하 좌우 패딩 */
    text-align: center; /* 텍스트 정렬 */
    text-decoration: none; /* 글자 장식 제거 */
    display: inline-block; /* 블록 간격 조정 */
    font-size: 16px; /* 글꼴 크기 */
    margin: 4px 2px; /* 마진 조정 */
    cursor: pointer; /* 커서 모양 변경 */
    border-radius: 12px; /* 둥근 경계선 */
    transition: background-color 0.3s; /* 배경색 변환 효과 */
}

/* 버튼에 마우스를 올렸을 때의 스타일 */
.submit-button:hover {
    background-color: #45a049; /* 배경색 변화 */
}
.hidden {
    display: none;
}

/* Row hover and selected state for tables - use more specific selectors to override other rules */
table tr.row-hover, .report-table tbody tr.row-hover { background-color: #1a2a1a !important; }
table tr.row-selected, .report-table tbody tr.row-selected { background-color: rgb(20,80,140) !important; }

/* Global NXT badge style to ensure consistent appearance across pages */
.nxt-badge, .badge-nxt {
    display: inline-block;
    font-size: 0.62em;
    font-weight: bold;
    color: #00e5c8;
    background: #0a2440;
    border: 1px solid #00a896;
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.05em;
}

