@charset "utf-8";
@import url('https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css');

.flexcenter {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 공통 스타일 */
.dday-board {
    width: 100%;
    margin: 0 auto;
    font-family: 'nanumsquare';
}

.dday-edit, .dday-del {
    display: inline-block;
    margin: 0 3px;
    color: #666;
}

/* 관리자 버튼 영역 */
.bo_fx {
    text-align: right;
}

.admin-buttons {
    margin-bottom: 20px;
}

.admin-buttons .btn {
    display: inline-block;
    padding: 4px 8px;
    background: #333;
    color: #eee;
    border-radius: 3px;
    font-size: 11px;
    text-decoration: none;
}

.admin-buttons .btn_admin {
    background: #510000;
}

/* 일괄 관리 */
.batch-manage {
    background-color: #1e1e1e;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    font-family: 'nanumsquare';
}

.batch-manage h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 500;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.batch-manage .tbl_wrap {
    margin-bottom: 20px;
}

.batch-manage table {
    width: 100%;
    border-collapse: collapse;
    background-color: #252525;
    border: 1px solid #333;
}

.batch-manage th {
    background-color: #333;
    color: #fff;
    padding: 5px 8px;
    font-weight: 500;
    text-align: center;
    font-size: 10px;
}

.batch-manage td {
    padding: 5px 3px;
    border: 1px solid #333;
    vertical-align: middle;
    text-align: center;
}

/* 순서와 공지 칼럼 너비 설정 */
.batch-manage .th_order,
.batch-manage .td_order {
    width: 20px !important;
}

.batch-manage .th_action,
.batch-manage .td_action {
    width: 80px !important;
}

.batch-manage .th_color {
    width: 100px;
}

.batch-manage .th_img {
	max-width: 200px;
}

/* 순서 입력 필드 스타일 */
.batch-manage .td_order input[type="text"] {
    width: 40px;
    text-align: center;
    box-sizing: border-box;
}

/* 입력 필드 스타일 */
.batch-manage .frm_input {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 4px;
    font-family: 'nanumsquare';
    font-size: 11px;
}

/* 체크박스 스타일 */
.batch-manage input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4a6bff;
}

/* 버튼 스타일 */
.batch-manage .btn_confirm {
    text-align: center;
    margin-top: 20px;
}

.batch-manage .btn_submit {
    background-color: #4a6bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.batch-manage .btn_submit:hover {
    background-color: #3a5bef;
}

.batch-manage .btn_cancel {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.batch-manage .btn_cancel:hover {
    background-color: #666;
}

.batch-manage .td_img {
    max-height: 40px;
    max-width: 200px;
    box-sizing: border-box;
}

/* 이미지 스타일 */
.batch-manage td img {
    height: auto;
	max-height: 40px;
    border-radius: 4px;
}

/* 빈 테이블 메시지 */
.batch-manage .empty_table {
    padding: 50px 0;
    color: #888;
}

/* 저장 버튼 스타일 */
.batch-manage .save-dday,
.batch-manage .delete-dday {
    border: none;
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.batch-manage .save-dday {
    background-color: #bbb;
    color: #333;
}

.batch-manage .delete-dday {
    background-color: #510000;
    color: #eee;
}

/* 저장 성공 효과 */
.batch-manage tr.saved {
    background-color: rgba(74, 107, 255, 0.2);
    transition: background-color 0.5s;
}

.batch-manage .save-status.complete {
    background-color: #285c28;
}

.save-status.error {
    background-color: #510000;
}

/* 저장 상태 표시 */
.save-status {
    background-color: #333;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}

/* 저장 중인 행 스타일 */
tr.saved {
    background-color: rgba(74, 107, 255, 0.2);
    transition: background-color 0.5s;
}

/* 버튼 비활성화 스타일 */
.btn_submit:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.pg_wrap .pg_current.pg_page {
    display: inline-flex;
    padding: 0;
    background: #333;
    color: #eee;
    border-radius: 3px;
    font-size: 11px;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    border: 0;
    height: 30px;
    width: 20px;
    line-height: 1;
    font-family: 'NanumSquare';
}

::-webkit-scrollbar {
    display: none;
}

.dday-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.dday-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: #fff;
}

.dday-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.dday-cover {
    width: 100%;
    background-size: cover;
    background-position: 50% 30%;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.dday-cover:hover {
    opacity: 0.9;
}

.dday-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 15px 10px;
    color: #f6f7ee;
    text-shadow: 0 0 3px #00a7c1, 0 0 5px #00a7c1;
    pointer-events: none; /* 오버레이는 클릭 이벤트를 차단하지 않음 */
}

.dday-title {
font-family: 'PFStardust';
    font-weight: bold;
    line-height: 1.2;
}

.dday-info {
font-family: 'PFStardust';
    text-align: right;
    align-self: flex-end;
}

.dday-number {
font-family: 'PFStardust';
    font-weight: bold;
}

.dday-date {
font-family: 'PFStardust';
    opacity: 1;
}

.dday-today {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .batch-manage table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .admin-buttons {
        display: none;
    }
    .dday-grid {
        display: grid;
        gap: 3px;
        margin-bottom: 0;
    }
    .dday-board .pg_wrap {
        display: none;
    }
}