/* dark.css - 전체 다크테마 스타일 */

/* 기본 body 배경, 텍스트 */
body, #nt_body {
    background-color: #000000 !important;
    color: #ddd !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 링크 */
a {
    color: #bb86fc;
    text-decoration: none;
}

a:hover, a:focus {
    color: #d0aaff;
    text-decoration: underline;
}

/* 헤더, 푸터 배경 */
header, footer {
    background-color: #1f1f1f !important;
    color: #ccc;
}

/* 입력 폼 */
input, textarea, select {
    background-color: #222 !important;
    color: #eee !important;
    border: 1px solid #444 !important;
}

input::placeholder, textarea::placeholder {
    color: #888 !important;
}

button {
    background-color: #333 !important;
    color: #eee !important;
    border: 1px solid #555 !important;
    cursor: pointer;
}

button:hover, button:focus {
    background-color: #444 !important;
}

/* 표 */
table {
    background-color: #1c1c1c !important;
    color: #e0e0e0 !important;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #333 !important;
    padding: 0.5rem;
}

/* 구분선 */
hr {
    border-color: #444 !important;
}

/* 본문 컨테이너 */
.nt-container {
    background-color: transparent !important;
}

/* 사이드 네비게이션 (LNB) */
#nt_lnb {
    background-color: #121212 !important;
    color: #ddd !important;
    border-right: 1px solid #333;
    padding-top: 1rem;
}

#nt_lnb a {
    color: #bbb !important;
    text-decoration: none;
}

#nt_lnb a:hover,
#nt_lnb a:focus {
    color: #bb86fc !important;
    text-decoration: underline;
}

#nt_lnb .nt-container {
    background-color: transparent !important;
}

#nt_lnb ul.float-left li,
#nt_lnb ul.float-right li {
    margin-bottom: 0.5rem;
}

#nt_lnb .dropdown a {
    cursor: pointer;
}

#nt_lnb h3.sr-only {
    color: transparent !important;
}

/* 네비게이션, 메뉴 바 */
nav, .navbar, .menu {
    background-color: #1f1f1f !important;
}

/* 컨텐츠 제목 스타일 */
h1, h2, h3, h4, h5, h6 {
    color: #bb86fc !important;
}

/* 위젯 제목, 게시판 제목 등 */
.h3.f-lg.en a,
.h3.f-lg.en {
    color: #bb86fc !important;
}

/* 리스트 아이템 */
.na-list li {
    color: #ccc !important;
}

/* 버튼 셋업 스타일 */
.btn-wset a.btn-setup {
    color: #888 !important;
    background-color: transparent !important;
    border: none !important;
}

.btn-wset a.btn-setup:hover {
    color: #bb86fc !important;
}

/* 캐러셀 컨트롤 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* 배너 */
.basic-banner .item .img-item img {
    border-radius: 0.25rem;
    transition: transform 0.3s ease;
}

.basic-banner .item .img-item img:hover {
    transform: scale(1.05);
}

/* 알림 배지 */
.nt-noti-label b {
    background-color: #bb86fc !important;
    color: #000 !important;
}

/* 기타 텍스트 밝기 조절 */
.text-muted {
    color: #888 !important;
}

/* 스크롤바 (크롬 계열) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1c1c1c;
}

::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}

/* 추가적으로 필요하면 여기에 확장 */

/* 예시: 링크 포함 위젯 리스트 등 세부 조정은 별도 요청해 주세요 */
#nt_title {
    background-color: #121212 !important; /* 다크 배경 */
    color: #bbb !important;              /* 밝은 회색 텍스트 */
    padding-bottom: 0.5rem;              /* 원래 pb-2 유지 */
}

#nt_title .page-title {
    color: #bb86fc !important;           /* 포인트 컬러 */
}

#nt_title a {
    color: #bb86fc !important;           /* 링크 색상 */
    text-decoration: none;
}

#nt_title a:hover,
#nt_title a:focus {
    color: #d0aaff !important;
    text-decoration: underline;
}

/* 빵부스러기(breadcrumb) 배경도 투명 유지 */
#nt_title .breadcrumb {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}


.wrapper {
    background-color: #121212 !important;
}


/* 사이드 메뉴, 일반 메뉴 링크 색상 */
#nt_lnb a,
#nt_lnb li a,
nav a,
.menu a {
    color: #ddd !important; /* 밝은 회색으로 변경 */
}

/* 호버 시 강조 */
#nt_lnb a:hover,
#nt_lnb li a:hover,
nav a:hover,
.menu a:hover {
    color: #bb86fc !important; /* 밝은 보라색 계열로 강조 */
}


/* 글쓰기 페이지 다크테마 최적화 */

/* 리스트 그룹 배경 및 테두리 */
.list-group-item {
    background-color: #121212 !important;
    color: #ddd !important;
    border-color: #333 !important;
}

/* 제목 input */
input.form-control,
textarea.form-control,
.custom-file-input ~ .custom-file-label,
.input-group-text {
    background-color: #222 !important;
    color: #ddd !important;
    border-color: #444 !important;
}

/* placeholder */
input::placeholder,
textarea::placeholder {
    color: #888 !important;
}

/* 버튼 기본 */
.btn-basic {
    background-color: #333 !important;
    color: #ddd !important;
    border-color: #444 !important;
}

/* 버튼 hover */
.btn-basic:hover,
.btn-basic:focus {
    background-color: #444 !important;
    color: #fff !important;
}

/* custom-checkbox 라벨 */
.custom-control-label span {
    color: #ddd !important;
}

/* 파일 업로드 input label */
.custom-file-label {
    background-color: #222 !important;
    color: #ddd !important;
    border-color: #444 !important;
}

/* input-group-append 버튼 아이콘 색상 */
.input-group-append .btn i {
    color: #bb86fc !important;
}

/* input-group-text 라벨 색상 */
.input-group-text {
    background-color: #333 !important;
    color: #ddd !important;
    border-color: #444 !important;
}

/* 파일 업로드 table background */
#variableFiles {
    background-color: #121212 !important;
}

/* table 내부 border 제거 또는 어두운색 */
#variableFiles td {
    border: none !important;
}


/* 반응형 영상 wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 비율 */
    padding-top: 25px;
    height: 0;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}


.list-thumb img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}



.hidden-thumbnail {
    display: none;
}



.img-wrap {
    overflow: hidden;
}


.custom-thumb .img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율, 필요시 조절 */
    background-color: #000000;
}

.custom-thumb .img-wrap .img-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.custom-thumb .img-wrap .img-item img.img-render {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: #000000;
}