/* ---------------------------------------------------------
   notice_manage.css
   - 공지 · 일정 "관리" 페이지 전용 스타일
   - 사이트 공통 톤(다크 배경 + 흰 카드)과 통일
--------------------------------------------------------- */

/* 메인 영역 (홈/공지와 동일한 배경 사용) */
.notice-manage-main {
    background: inherit;
    padding: 18px 0 36px 0;
}

/* 안쪽 레이아웃 */
.notice-manage-page {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 상단 헤더 */
.notice-manage-header {
    margin-bottom: 4px;
}

.notice-manage-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 650;
    color: #111827;           
}

.notice-manage-subtitle {
    margin: 5/* “사진 파일 선택” 라벨 */
.upload-field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;   /* 짙은 회색 – 잘 보이게 */
}

/* 파일 인풋 주변 래퍼 */
.upload-file-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}px;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

/* 공통 카드 */
.notice-manage-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 20px 18px 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}

/* 카드 제목 */
.notice-card-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.notice-card-sub {
    margin: 0 0 10px 0;
    font-size: 12.5px;
    color: #6b7280;
}

/* ---------------------------------------------------------
   1) 입력 폼
--------------------------------------------------------- */

.notice-form {
    margin-top: 6px;
}

.notice-form-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-form-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.notice-form-row-textarea {
    align-items: flex-start;
}

.notice-form-label {
    flex: 0 0 70px;
    padding-top: 4px;
    font-weight: 500;
    color: #374151;
}

.notice-form-field {
    flex: 1;
}

.notice-form-field input[type="text"],
.notice-form-field input[type="date"],
.notice-form-field select,
.notice-form-field textarea {
    font-size: 13px;
    padding: 5px 7px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.notice-form-field input[type="text"],
.notice-form-field select {
    width: 60%;
    max-width: 420px;
}

.notice-form-field input[type="date"] {
    width: 160px;
}

.notice-form-field textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
}

.notice-form-field input:focus,
.notice-form-field select:focus,
.notice-form-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* 버튼 영역 */
.notice-form-buttons {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

/* 공통 버튼 스타일 */
.notice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    font-size: 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

/* 저장 버튼 */
.notice-btn-save {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #f9fafb;
    border: 1px solid #1d4ed8;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
    font-weight: 600;
}
.notice-btn-save:hover {
    background: linear-gradient(135deg, #1d4ed8, #1d4ed8);
    box-shadow: 0 12px 26px rgba(30, 64, 175, 0.6);
}

/* 새로작성 버튼 */
.notice-btn-reset {
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}
.notice-btn-reset:hover {
    background: #d4d4d8;
}

/* 폼 하단 버튼 영역 */
.notice-form-buttons {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start; /* 오른쪽 정렬이면 flex-end */
    gap: 10px;
}

/* 🔹 등록 / 새로작성(취소) 버튼 공통 크기 */
.notice-form-buttons .notice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 120px;   /* ✅ 두 버튼 가로폭 동일 */
    height: 32px;       /* ✅ 두 버튼 높이 동일 */

    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;

    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: 0.18s ease-in-out;
}

/* ---------------------------------------------------------
   2) 목록 테이블
--------------------------------------------------------- */

.notice-manage-card-list {
    margin-top: 2px;
}

.notice-list-header {
    margin-bottom: 6px;
}

.notice-table-wrap {
    margin-top: 4px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* 실제 테이블 */
.notice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    background: #ffffff;
}

.notice-table thead {
    background: #f3f4f6;
}

.notice-table th,
.notice-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    color: #111827;              /* ✅ 셀 기본 글자색 진한 남색 계열 */
}

.notice-table th {
    font-weight: 600;
    color: #374151;
}

.notice-table tr:last-child td {
    border-bottom: none;
}

.notice-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.notice-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* 컬럼 폭 */
.notice-table .col-type {
    width: 80px;
}
.notice-table .col-date {
    width: 95px;
}
.notice-table .col-place {
    width: 150px;
}
.notice-table .col-actions {
    width: 120px;
    text-align: center;
}
.notice-table-title {
    font-weight: 500;
}

/* 빈 데이터 */
.notice-table-empty {
    text-align: center;
    color: #6b7280;
    padding: 12px 10px;
}

/* 구분 태그 */
.notice-type-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.notice-type-notice {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.4);
}

.notice-type-event {
    background: #fef3c7;
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.5);
}

/* 관리 버튼들 */
.notice-actions {
    white-space: nowrap;
    text-align: center;
}

.notice-actions form {
    display: inline-block;
    margin: 0 2px;
}

.notice-btn-small {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
}

.notice-btn-edit {
    background: #e0f2fe;
    color: #0369a1;
}
.notice-btn-edit:hover {
    background: #bae6fd;
}

.notice-btn-del {
    background: #fee2e2;
    color: #b91c1c;
}
.notice-btn-del:hover {
    background: #fecaca;
}

/* ============================================
   1) 헤더–브레드크럼 간격 최소화
============================================ */
.breadcrumb-wrapper,
.breadcrumb {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

/* ============================================
   2) 설명 텍스트 가독성 강화
============================================ */
.notice-subtitle,
.notice-section-sub,
.description,
.page-subtitle {
    color: #374151 !important; 
    font-weight: 500 !important;
}

/* ============================================
   3) 중앙부 흰 카드 레이아웃 정돈
============================================ */
.notice-page-old {
    max-width: 1150px;
    margin: 0 auto !important;
    padding: 0 10px;
}

.notice-grid-old {
    gap: 18px;
    align-items: flex-start;
}


/* ---------------------------------------------------------
   3) 반응형
--------------------------------------------------------- */

@media (max-width: 900px) {
    .notice-form-field input[type="text"],
    .notice-form-field select {
        width: 100%;
        max-width: none;
    }

    .notice-form-row {
        flex-direction: column;
    }

    .notice-form-label {
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .notice-manage-main {
        padding-top: 16px;
    }

    .notice-manage-card {
        padding: 14px 14px 16px 14px;
    }

    .notice-table th,
    .notice-table td {
        padding: 6px 6px;
    }
}

