/* -------------------- 기본 스타일 -------------------- */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* -------------------- Navbar 스타일 -------------------- */
.navbar {
    background-color: #2c3e50;
    padding: 1rem;
}

.navbar .navbar-brand {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
}

.navbar .nav-links li a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background 0.3s ease;
}

.navbar .nav-links li a:hover {
    background-color: #34495e;
    border-radius: 5px;
}

/* 반응형 내비게이션 */
@media (max-width: 768px) {
    .navbar .nav-links {
        flex-direction: column;
    }
}

/* -------------------- 컨테이너 및 콘텐츠 박스 -------------------- */
.custom-container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.content-box {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-top: 0;
}

/* -------------------- 버튼 스타일 -------------------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #7f8c8d;
}

.btn-secondary:hover {
    background-color: #95a5a6;
}

/* 반응형 버튼 스타일 */
@media (max-width: 600px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* -------------------- 폼 요소 스타일 -------------------- */
input[type="text"], select, .form-control {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 1rem;
}

input[type="text"]:focus, select:focus,
.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.form-control {
    margin-bottom: 0 !important;
    line-height: normal !important;
}

/* -------------------- 테이블 스타일 -------------------- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
}

.table th {
    background-color: #ecf0f1;
}

.table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table tr:hover {
    background-color: #e1e1e1;
    transition: background 0.3s ease;
}

/* 반응형 테이블 */
@media (max-width: 768px) {
    .table th, .table td {
        padding: 0.5rem;
    }
}

/* -------------------- VOC 폼 및 요소 스타일 -------------------- */
.voc-form {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.voc-form .form-group label {
    font-weight: bold;
    margin-top: 1rem;
}

.voc-form #content,
.voc-form #progress {
    height: 100px;
}

.send-command {
    margin-top: 0;
}

#resultBox {
    border: 1px solid #ccc;
    padding: 10px;
    height: 150px;
    max-height: 150px;
    overflow-y: auto;
}

/* -------------------- Footer 스타일 -------------------- */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem;
    width: 100%;
    position: relative;
    margin-top: auto;
}

/* -------------------- 서브메뉴 스타일 -------------------- */
.submenu {
    display: none;
    background-color: #34495e;
    padding: 10px;
    border-top: 1px solid #34495e;
}

.submenu ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    display: flex;
}

.submenu ul li {
    margin-right: 20px;
}

.submenu ul li a {
    text-decoration: none;
    color: #007bff;
}

.submenu ul li a:hover {
    text-decoration: underline;
}

/* -------------------- 모달 및 기타 스타일 -------------------- */
.restore-list {
    max-height: 450px;
    overflow-y: auto;
}

.sort-header {
    cursor: pointer;
}

.modal-lg-custom {
    max-width: 90%;
}

/* -------------------- 반응형 설정 -------------------- */
@media (max-width: 768px) {
    .table th, .table td {
        padding: 0.5rem;
    }
}

/* -------------------- voc-form / form-group-inline 스타일 -------------------- */
/* form-group-inline 스타일 */
.form-group-inline {
    display: flex;
    align-items: center; /* label과 input을 수직 가운데 정렬 */
    gap: 0.5rem; /* label과 input 간의 간격 */
    margin-bottom: 1rem; /* 아래쪽 여백 추가 */
}

.form-group-inline label {
    min-width: 100px; /* label의 최소 너비를 설정해 균일한 간격 유지 */
    text-align: right; /* label 텍스트를 오른쪽 정렬 */
}

.form-group-inline .form-control {
    flex: 1; /* input이 남은 공간을 차지하도록 설정 */
    min-width: 200px; /* input의 최소 너비 설정 */
}

/* 버튼 그룹 스타일 */
.button-group {
    display: flex;
    justify-content: flex-end; /* 오른쪽 끝 정렬 */
    gap: 0.5rem; /* 버튼 간의 간격 */
    margin-top: 1rem; /* 위쪽 여백 */
}

.button-group .btn {
    width: 120px; /* 버튼의 너비를 기존보다 2배로 설정 */
    height: 35px; /* 높이를 균일하게 설정 */
    font-size: 1rem; /* 버튼 텍스트 크기 */
    border-radius: 5px; /* 둥근 모서리 */
    display: flex;
    align-items: center; /* 텍스트 수직 중앙 정렬 */
    justify-content: center; /* 텍스트 수평 중앙 정렬 */
}

/* 완료 여부 라벨과 체크박스 간의 간격 조정 */
.form-group-inline label[for="completion_status"] {
    margin-right: 10px; /* 라벨과 체크박스 사이에 간격 추가 */
}

/* 체크박스와 텍스트를 완전히 붙이기 */
.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 5px; /* 체크박스와 텍스트 간격 최소화 */
}

.checkbox-container input[type="checkbox"] {
    margin: 0; /* 기본 간격 제거 */
    width: auto; /* 체크박스 크기 자동 */
    height: auto;
}

/* -------------------- Device View 스타일 -------------------- */
.static-data {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.table-container {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.table {
    text-align: center;
    margin: auto;
}

.table th, .table td {
    text-align: center;
}

.container {
    margin-top: 20px;
}

#vocButton {
    margin-top: 20px;
}
.clickable {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.holiday {
    color: #e74c3c;
}

.hidden-row {
    display: none;
}