/* style.css */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
}

.form-box {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-box label {
    display: block;
    margin-bottom: 10px;
    color: #555;
}

.form-box input[type="text"],
.form-box input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-box button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.form-box button:hover {
    background-color: #45a049;
}

.form-container {
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #555555;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #007BFF;
  outline: none;
}

.form-section {
  margin-bottom: 25px;
}

.form-section h3 {
  margin-bottom: 10px;
  color: #007BFF;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 5px;
}

.submit-button {
  width: 100%;
  padding: 12px;
  background-color: #007BFF;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #0056b3;
}

.button-group {
    display: flex;
    justify-content: space-between;
}
.button-group button {
    width: 48%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.modify-btn, .cancel-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

.modify-btn {
    background-color: #3498db;
}

.cancel-btn {
    background-color: #e74c3c;
}

/* 테이블 (Tabulator.js) */
/* 📌 Tabulator 헤더 스타일 */
.tabulator .tabulator-header {
    background-color: #f0f0f0;
    font-weight: bold;
    font-size: 14px;
}

/* Tabulator 셀 스타일 */
.tabulator-cell {
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center;     /* 세로 중앙 정렬 */
    padding: 0;              /* 필요시 패딩 제거 */
    overflow: hidden;        /* 내용이 길면 ...으로 줄임 */
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 📌 행 hover 시 배경 강조 */
.tabulator .tabulator-row:hover {
    background-color: #f9f9f9;
}

/* 행 간 구분선 명확히 */
.tabulator .tabulator-row {
    border-bottom: 1px solid #e0e0e0;
}

/* 페이지네이션 영역 가운데 정렬 */
.tabulator .tabulator-footer {
    display: flex;
    justify-content: center;  /* 가운데 정렬 */
    align-items: center;
    padding: 10px 0;
}

/* 페이지 버튼들 간격 약간 추가 */
.tabulator .tabulator-paginator button {
    margin: 0 4px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    cursor: pointer;
}

.tabulator .tabulator-paginator button:hover {
    background-color: #e9ecef;
}

.tabulator .tabulator-paginator button.active {
    background-color: #007bff !important;
    color: white !important;
    font-weight: bold;
    border: 1px solid #0056b3;
}

/* 레이아웃 */
.wrapper {
    display: flex;
    /* height: 100vh; */
}

/* 사이드바 */
.sidebar {
    position: fixed;
    top: 50px; /* top-bar 높이만큼 */
    left: 0;
    width: 200px;
    height: calc(100% - 50px); /* 화면 높이 - top-bar */
    background-color: #2c3e50;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 15px;
}

.sidebar nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar nav ul li a:hover {
    background-color: #34495e;
}

/* 메인 콘텐츠 */
.main-content {
    margin-left: 220px; /* sidebar 넓이만큼 */
    width: calc(100% - 220px);
    padding: 20px;
    overflow-y: auto;
}

.content {
    margin-top: 50px; /* top-bar 높이만큼 */
    padding: 20px;
}

/* 상단 바 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #2c3e50;
    color: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-info {
    font-size: 14px;
}

.user-info .link {
    color: #2980b9;
    cursor: pointer;
    margin-left: 10px;
    text-decoration: underline;
}

.user-info .link:hover {
    color: #1abc9c;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; /* 좌우 끝 정렬 */
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 0px solid #ddd;
  border-radius: 8px;
}

.filter-left > label,
.filter-left > select,
.filter-left > input,
.filter-left > button {
    margin-right: 8px; /* 좌측 요소 간격 */
}

/* 오른쪽에 버튼 하나만 위치 */
.filter-right {
}

.filter-container label {
  margin-right: 10px;
  font-weight: 500;
}

.filter-container input[type="radio"] {
  margin-right: 5px;
}

.filter-container select,
.filter-container input[type="text"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.filter-container button {
  padding: 7px 14px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-container button:hover {
  background-color: #0056b3;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

#example-table {
  border: 1px solid #ccc;
  border-radius: 8px;
}
