table {
    border-collapse: collapse;
    border: 2px solid gray;
    background-color: #e8e8e8e8;
    margin: 5px;
    padding: 0px;
}

button {
    font-weight: 600;
    font-size: 16px;
    border: 1px solid blue;
    border-radius: 5px;
    color: blue;
    padding: 1px 5px;
}
img {
    border: 1px solid gray;
}
hr {
    /* height: 2px; */
    margin: 0px;
    padding: 0px;
    border: 1px solid gray;
    background-color: lightgray;
}
a {
    text-decoration: none; /* 밑줄 제거 */
    cursor: pointer;       /* 포인터 커서 */
    color: inherit;        /* 부모의 텍스트 색상 상속 (원하는 색상 지정 가능) */
}
a:visited {
    color: inherit; /* 클릭 후 색상 변경 방지 */
}

#selectOption {
    font-weight: 600;
    font-size: 16px;
    color: blue;
    background: white; //#e8e8e8e8;
    border: 1px solid blue;
    border-radius: 5px;
    text-align: justify;
    padding-left: 5px;
    margin: 2px;
}
#selectOption:focus {
    outline: none;         /* Remove default focus outline */
    border-color: #007bff; /* Change border color when focused */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Add a glow effect on focus */
}
#selectOption option {
    font-weight: bold;
    padding: 10px;         /* Padding inside each option */
    font-size: 16px;       /* Font size for options */
    background-color: white; /* Background color for options */
}
#selectOption option:hover {
    background-color: #e6f7ff; /* Hover effect for options */
}


#usrp {
    box-shadow: 0 0 10px #999;
    background-color: #e8e8e8e8;
    align-items: center;
    width: 530px;
    margin: 10px 10px;
    border-radius: 10px;
    padding: 10px 10px;
}

#cellCallsign {
    font-weight: 600;
    font-size: 20px;
    color: blue;
}
#cellDmrId {
    font-weight: 600;
    font-size: 16px;
    color: blue;
}
#cellDateTime {
    font-weight: 600;
    font-size: 16px;
    color: dimgray;
}
#cellGainValue {
    text-align: center;
    font-size: 18px;
    color: red;
}
#cellVolumeValue {
    font-weight: 600;
    font-size: 16px;
    color: blue;
}
#cellCallName {
    font-weight: 600;
    font-size: 16px;
    color: blue;
}
#cellCallAddress {
    font-weight: 600;
    font-size: 14px;
    color: blue;
    line-height: 1.0;
}
#cellRxDuration {
    font-weight: 600;
    font-size: 18px;
    color: red;
}

#cellVolumeBar {
    -webkit-appearance: none;   /* 브라우저 기본 스타일 제거 */
    appearance: none;
    width: 95px;                /* 슬라이더 길이 */
    height: 20px;               /* 슬라이더 폭 */
    transform: rotate(-90deg);  /* 슬라이더를 수직으로 회전 */
    transform-origin: center;   /* 회전 중심 */
    margin: 5px;                /* 가운데 정렬 */
    display: block;             /* block 요소로 변경 */
}

/* 슬라이더 트랙 스타일 */
#cellVolumeBar::-webkit-slider-runnable-track {
    width: 8px;                   /* 폭 설정 */
    height: 16px;                 /* 길이 설정 */
    background: dimgray;          /* 트랙 색상 */
    border-radius: 4px;           /* 둥근 모서리 */
}

/* 슬라이더 핸들 스타일 */
#cellVolumeBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;                  /* 핸들 크기 */
    height: 16px;
    background: gold;             /* 핸들 색상 */
    border-radius: 50%;           /* 핸들 둥글게 */
    cursor: pointer;
}

/* 다른 브라우저 호환성을 위한 스타일 */
#cellVolumeBar::-moz-range-thumb,
#cellVolumeBar::-ms-thumb {
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#cellGainBar {
   padding-right: 0px;
   margin-top: 5px;
}

/* historyTable ----------------------------- */
#historyTable {
    width: 520px;
    border-collapse: collapse;
    margin-bottom: 10px;
}

#historyTable th, #historyTable td {
    border: 1px solid black;
    padding: 3px;
    text-align: center;
    font-size: 16px;
}

#historyTable thead {
    /* background-color: lightblue; */
    display: table;
    background-color: dimgray;
    color: white;
    /* width: 398px; /* 스크롤바 너비 감안 */ */
}

/* tbody에서 최대 높이를 설정하고 스크롤바 적용 */
#historyTable tbody {
    display: block;
    max-height: 405px; /* 12개의 행 정도에 맞는 높이 설정 */
    overflow-y: auto; /* 세로 스크롤 활성화 */
    /* width: 100%; */
}

/* tbody 내의 각 행은 테이블처럼 정렬 */
#historyTable tbody tr {
    display: table;
    /* width: 390px; */
    /* table-layout: fixed; /* 열 너비 고정 */ */
}

#historyTable td {
    font-weight: bold;
}

#historyTable td:hover {
    background-color: aqua;
    cursor: pointer;
}

/* thead는 고정되지만 열 너비를 tbody와 동일하게 */
#historyTable thead th:nth-child(1), #historyTable tbody td:nth-child(1) {
    width: 180px; /* Timestamp 열 너비 */
}

#historyTable thead th:nth-child(2), #historyTable tbody td:nth-child(2) {
    width: 60px; /* Flag 열 너비 */
}

#historyTable thead th:nth-child(3), #historyTable tbody td:nth-child(3) {
    width: 100px; /* Call 열 너비 */
}

#historyTable thead th:nth-child(4), #historyTable tbody td:nth-child(4) {
    width: 60px; /* Gain 열 너비 */
}

#historyTable thead th:nth-child(5), #historyTable tbody td:nth-child(5) {
    width: 60px; /* Sec 열 너비 */
}

#DateABBR {
    color: white;
    font-weight: 600;
}
#ABBR {
    color: red;
    font-weight: 600;
}

#title {
    font-weight: 600;
    font-size: 20px;
    color: black;
}
#text-red {
    font-weight: 600;
    font-size: 18px;
    color: red;
}
#guide {
    font-weight: 600;
    font-size: 16px;
    color: blue;
    margin-bottom: 10px;
}
#foot {
    font-weight: 600;
    font-size: 12px;
    color: dimgray;
    margin: 0px;
    padding: 0px;
}
