/* NanumSquareRound 폰트 설정 */
@font-face {
    font-family: 'NanumSquareRound';
    src: url('../fonts/NanumSquareRoundB.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NanumSquareRound';
    src: url('../fonts/NanumSquareRoundEB.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'NanumSquareRound', Arial, sans-serif; /* NanumSquareRound 폰트 적용 */
}

/* 공통 body 스타일 */
body {
    background-color: #f4f6f9;
    font-family: 'NanumSquareRound', Arial, sans-serif; /* 본문 전체에 NanumSquareRound 적용 */
}

/* 일반 버튼 스타일 */
.general-button {
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 10px; /* 검색 버튼을 검색 필드에서 조금 띄움 */
}

.general-button:hover {
    background-color: #0056b3;
}

/* 로그인 페이지 전용 스타일 */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f6f9;
}

.login-page .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.login-page .login-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.input-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #0056b3;
}

.message-container {
    margin-top: 15px;
    color: #d9534f;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .login-box {
        padding: 30px;
    }

    .login-button {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 20px;
    }

    .input-group input {
        padding: 8px;
        font-size: 0.85rem;
    }

    .login-button {
        padding: 8px;
        font-size: 0.85rem;
    }
}



/* 프로젝트 관리 페이지 스타일 */
.project-management {
    width: 100%; /* 전체 너비 사용 */
    margin: 0; /* 여백 제거 */
    /* text-align: center; */
}

.project-management h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.project-management .project-info,
.project-management .project-target-list {
    margin-bottom: 30px;
}

.project-management .project-info .info-group {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.project-management .project-info .info-group label {
    font-weight: bold;
    color: #333;
}

.project-management .project-info .info-group span {
    color: #555;
}

.project-management .project-target-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.project-management .project-target-list th,
.project-management .project-target-list td {
    padding: 12px;
    font-size: 1rem;
    border-bottom: 1px solid #ddd;
}

.project-management .project-target-list th {
    font-weight: bold;
    color: #333;
    text-align: left;
}

.project-management .project-target-list tr:hover {
    background-color: #f9f9f9;
}

.project-management form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-management .info-group {
    display: flex;
    flex-direction: column;
    width: calc(50% - 10px);
    margin-bottom: 15px;
}

.project-management .info-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.project-management .info-group input {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    height: 38px;
}

.save-button {
    padding: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: calc(50% - 10px); /* 인풋 필드와 같은 너비로 설정 */
    box-sizing: border-box;
    vertical-align: middle;
    height: 38px;
    margin-top: 30px;
}

.save-button:hover {
    background-color: #0056b3;
}

.project-template-button {
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.project-template-button:hover {
    background-color: #0056b3;
}

.left-controls {
    display: flex;
    gap: 10px;
}


/* 대시보드 페이지 상단 바 */
.dashboard-page .top-bar {
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-logo {
    height: 30px;
    max-width: 150px;
    padding: 5px 10px;
    background-color: #fff;
    border-radius: 4px;
}

.logout-button {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 12px;
    border: 1px solid #fff;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.logout-button:hover {
    background-color: #444;
    color: #e0e0e0;
}

/* 대시보드 페이지 스타일 */
.dashboard-page {
    display: flex;
    min-height: 100vh;
}

/* 사이드바 스타일 */
.sidebar {
    width: 220px;
    background-color: #f0f0f0; /* 밝은 회색 배경 */
    padding-top: 20px;
    flex-shrink: 0;
    height: 100vh;
    position: fixed;
    top: 50px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #ddd;
}

.sidebar button {
    width: 100%; /* 사이드바와 동일한 너비 */
    padding: 15px;
    background-color: #f0f0f0; /* 기본 배경색 회색 */
    border: none;
    color: #333; /* 기본 글자색 어두운 회색 */
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar button:hover {
    background-color: #333; /* 상단 바 색상과 동일 */
    color: #fff; /* 흰색 글자 */
}

/* 프로젝트 조회 게시판 스타일 */
.board-container {
    width: 100%; /* 전체 너비 사용 */
    margin: 0; /* 여백 제거 */
    text-align: center;
}

.board-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* 검색창을 프로젝트 현황 제목 아래에 배치 */
.search-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 검색창을 오른쪽 정렬 */
}

.search-container label {
    font-size: 1rem;
    margin-right: 8px;
    color: #333;
}

.search-dropdown {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px; /* 왼쪽 모서리만 둥글게 */
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    outline: none;
}

.search-box {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-left: none; /* 중간 경계 제거 */
    border-radius: 0 5px 5px 0; /* 오른쪽 모서리만 둥글게 */
}

/* 검색 버튼 스타일 */
.search-button {
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 10px; /* 검색 버튼을 검색 필드에서 조금 띄움 */
}

.search-button:hover {
    background-color: #0056b3;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.project-table th, .project-table td {
    border-bottom: 1px solid #ddd; /* 가로줄만 남김 */
    padding: 12px;
    font-size: 1rem;
    color: #333;
    background-color: transparent; /* 배경색 제거 */
}

.project-table th {
    font-size: 1.1rem; /* 제목 폰트 크기 증가 */
    font-weight: bold; /* 제목을 굵게 */
    text-align: left; /* 왼쪽 정렬 */
}

.project-table tr:hover {
    background-color: #f1f1f1;
}

.project-table td {
    text-align: left; /* 왼쪽 정렬 */
}

/* 가로줄 스타일 */
.divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0 20px; /* 위, 아래 여백 설정 */
}

/* 프로젝트 등록 페이지 스타일 */
.registration-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.registration-title {
    text-align: left;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    resize: none;
}

.submit-button {
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
}



/* 상세보기 열 중앙 정렬 */
.project-table th:last-child,
.project-table td:last-child {
    text-align: center;
    vertical-align: middle;
}

/* 상세보기 버튼 스타일 */
.detail-button {
    padding: 8px 12px;
    font-size: 0.9rem;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: inline-block;
}

.detail-button:hover {
    background-color: #0056b3;
}

/* 페이징 스타일 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination .page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination .page-link:hover {
    background-color: #f0f0f0;
}

.pagination .page-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 비활성화된 페이지 링크 */
.pagination .page-link.disabled {
    color: #ccc;
    border-color: #eee;
    pointer-events: none; /* 클릭되지 않도록 설정 */
    cursor: default;
}

/* 등록 페이지 드롭다운 및 달력 필드 스타일 */
.registration-form select,
.registration-form input[type="date"] {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    outline: none;
    width: 100%; /* 가로 너비를 100%로 설정 */
}

.registration-form select:focus,
.registration-form input[type="date"]:focus {
    border-color: #007bff;
}

/* 모달 창 스타일 */
.modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
}

.modal-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.modal-content button {
    padding: 10px 20px;
    font-size: 1rem;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:first-of-type {
    background-color: #007bff;
    color: #fff;
}

.modal-content button:last-of-type {
    background-color: #ddd;
    color: #333;
}

.modal-content button:first-of-type:hover {
    background-color: #0056b3;
}

.modal-content button:last-of-type:hover {
    background-color: #bbb;
}

/* 메일 템플릿 페이지 스타일 */
.template-container {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

.template-title {
    text-align: left;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.template-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.template-form-group {
    display: flex;
    flex-direction: column;
}

.template-form-group label {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.template-form-group input[type="text"],
.template-form-group textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.template-submit-button {
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.template-submit-button:hover {
    background-color: #0056b3;
}

.template-button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.template-preview-button,
.template-submit-button {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.template-preview-button {
    background-color: #6c757d;
    color: #fff;
}

.template-preview-button:hover {
    background-color: #5a6268;
}

.template-submit-button {
    background-color: #007bff;
    color: #fff;
}

.template-submit-button:hover {
    background-color: #0056b3;
}

/* 파일 업로드 페이지 스타일 */
.upload-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

.upload-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-input-group {
    display: flex;
    flex-direction: column;
}

.file-input-group label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.file-input-group input[type="file"] {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.upload-button {
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-button:hover {
    background-color: #0056b3;
}

/* 파일 제목 입력 필드 */
.file-input-group input[type="text"] {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-and-upload {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


/* Flash 메시지 스타일 */
.flash-messages {
    margin-top: 20px;
}

.flash-message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.attachment-dropdown {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    outline: none;
    width: 100%; /* 드롭다운 너비를 100%로 설정 */
}

.attachment-dropdown:focus {
    border-color: #007bff;
}



main {
    margin-left: 240px;
    margin-top: 60px;
    padding: 20px;
    width: calc(100% - 240px);
}

main section {
    margin-bottom: 40px;
}

main h2 {
    color: #333;
    margin-bottom: 10px;
}

main p {
    color: #666;
}