body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.menu {
    background-color: #f4f4f4;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.menu ul li {
    margin: 0 10px;
}

.menu ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.menu ul li a:hover, .menu ul li a.active {
    background-color: #007BFF;
    color: #fff;
}

.menu ul li.right {
    margin-left: auto;
}

.content {
    flex-grow: 1;
    padding: 20px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.form-group input[type="submit"] {
    background-color: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
}

.form-group input[type="submit"]:hover {
    background-color: #0056b3;
}

.message {
    margin-bottom: 15px;
    color: red;
}

.success {
    color: green;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: center; /* 모든 정렬을 가운데로 */
}

th {
    background-color: #f4f4f4;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

input.error {
    border-color: red;
}

/* 페이지 번호 스타일 */
.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #007BFF; /* 바탕색을 파란색으로 변경 */
    color: white;
    border: 1px solid #007BFF;
}

/* 제목 부분의 정렬 버튼 스타일 */
th a {
    text-decoration: none; /* 밑줄 삭제 */
    color: inherit; /* 기본 텍스트 색상 상속 */
    transition: color 0.3s; /* 색상 전환 효과 */
}

th a:hover {
    color: #007BFF; /* 마우스 오버 시 색상 변경 */
}

/* 작업 열의 수정 및 삭제 버튼 스타일 */
td button {
    text-decoration: none;
    color: white;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-right: 5px; /* 버튼 사이 간격 추가 */
}

td button:last-child {
    margin-right: 0; /* 마지막 버튼의 오른쪽 마진 제거 */
}

td button:first-child {
    background-color: #28a745; /* 수정 버튼 색상 (녹색) */
}

td button:last-child {
    background-color: #dc3545; /* 삭제 버튼 색상 (빨간색) */
}

td button:hover {
    opacity: 0.8; /* 호버 시 투명도 변경 */
}

/* 검색, 삭제, 선택삭제 버튼 스타일 */
input[type="submit"], button, .delete-selected {
    cursor: pointer; /* 마우스 오버 시 손모양 커서 */
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #007BFF;
    color: white;
    transition: background-color 0.3s;
}

input[type="submit"]:hover, button:hover, .delete-selected:hover {
    background-color: #0056b3;
}

.password-input {
    height: 24px;
}

/* 모바일에서 보일 때 리스트를 서버코드, 기간설정, 서버네임, 작업 열만 보이게 */
@media (max-width: 768px) {
    th:nth-child(2), td:nth-child(2), /* NO */
    th:nth-child(6), td:nth-child(6), /* 디스코드 UID */
    th:nth-child(7), td:nth-child(7), /* 서버 아이피 */
    th:nth-child(8), td:nth-child(8), /* 런처MD5 */
    th:nth-child(9), td:nth-child(9), /* 서버 타입 */
    th:nth-child(10), td:nth-child(10)  /* 기타 */
    {
        display: none;
    }
}
