@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Noto+Sans+KR:wght@400;500;700;800&display=swap');

/* =======================================
   OWNER 관리자 테마 (미드나잇 인디고 & 스카이 블루)
   ======================================= */

/* 1. 기본 배경 및 레이아웃 */
body { font-family: 'Noto Sans KR', sans-serif; background: #f5f7fa; color: #333; margin: 0; padding: 20px; }
body.login-page { padding: 0; height: 100vh; display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%); }

.container { max-width: 1500px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(43, 58, 85, 0.08); }
.form-box { background: #fff; padding: 40px; border-radius: 16px; width: 100%; max-width: 600px; margin: 40px auto; box-shadow: 0 10px 30px rgba(43, 58, 85, 0.08); }

/* 2. 헤더 및 타이틀 */
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 3px solid #2B3A55; padding-bottom: 20px; }
.header h2, .form-box h2 { margin: 0; color: #2B3A55; font-weight: 800; font-family: 'Montserrat', 'Noto Sans KR', sans-serif; display: flex; align-items: center; gap: 10px; font-size: 24px; }
.header h2 span { font-size: 14px; font-weight: 500; color: #7f8c8d; font-family: 'Noto Sans KR', sans-serif; }
.form-box h2 { border-bottom: 3px solid #f0f4f8; padding-bottom: 15px; margin-bottom: 20px; }

/* 3. 공통 버튼 디자인 */
.btn { padding: 10px 18px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; border: none; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; }
.btn-blue, .btn-submit, .btn-add { background: #4A90E2; box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3); }
.btn-blue:hover, .btn-submit:hover, .btn-add:hover { background: #357abd; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(74, 144, 226, 0.4); }
.btn-dark { background: #2B3A55; box-shadow: 0 4px 10px rgba(43, 58, 85, 0.2); }
.btn-dark:hover { background: #1a2533; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(43, 58, 85, 0.3); }
.btn-green { background: #27ae60; box-shadow: 0 4px 10px rgba(39, 174, 96, 0.2); }
.btn-green:hover { background: #219653; transform: translateY(-2px); }
.btn-red, .btn-del { background: #e74c3c; box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2); padding: 6px 12px; font-size: 12px; }
.btn-red:hover, .btn-del:hover { background: #c0392b; transform: translateY(-2px); }
.btn-cancel { background: #e4e8f0; color: #4a5568; }
.btn-cancel:hover { background: #cbd5e1; color: #2B3A55; transform: translateY(-2px); }
.btn-edit { background: #f39c12; padding: 6px 12px; font-size: 12px; border-radius: 6px; margin-right: 5px; color:#fff; text-decoration:none; display:inline-block; }

/* 4. 💡 수정됨: 검색창 및 필터 전용 레이아웃 */
.search-box { background: #ffffff; padding: 20px 25px; border-radius: 12px; margin-bottom: 20px; display: flex; gap: 20px; align-items: flex-end; border: 1px solid #e4e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.02); flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group label { margin: 0; font-size: 13px; font-weight: 700; color: #2B3A55; }
.date-range { display: flex; align-items: center; gap: 10px; }
.date-range input[type="date"], .filter-group select { width: auto; min-width: 130px; padding: 10px 12px; border: 2px solid #ecf0f1; border-radius: 8px; font-size: 13px; background: #fafbfc; color: #333; outline: none; transition: 0.3s; font-family: inherit; }
.date-range input[type="date"]:focus, .filter-group select:focus { border-color: #4A90E2; background: #fff; box-shadow: 0 0 0 3px rgba(74,144,226,0.15); }

/* 일반 폼 입력창 (글쓰기 등) */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { font-size: 13px; font-weight: 700; color: #2B3A55; margin-bottom: 8px; display: block; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #ecf0f1; border-radius: 8px; font-size: 14px; transition: 0.3s; background: #fafbfc; color: #333; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #4A90E2; outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15); }
.btn-group { display: flex; gap: 10px; margin-top: 30px; }
.btn-group .btn { flex: 1; padding: 15px; font-size: 16px; }

/* 5. 일괄 처리 바 */
.bulk-action-bar { background: #f0f4f8; border: 1px solid #d9e2ec; padding: 15px 20px; border-radius: 12px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.bulk-action-bar select { padding: 8px 12px; border-radius: 6px; border: 2px solid #bcccdc; font-size: 13px; font-weight: 600; color: #2B3A55; transition: 0.2s; }
.bulk-action-bar select:focus { border-color: #4A90E2; outline: none; }
.badge-count { background: #4A90E2; color: white; padding: 4px 12px; border-radius: 20px; font-weight: bold; font-size: 14px; box-shadow: 0 2px 8px rgba(74,144,226,0.3); }

/* 6. 테이블 및 체크박스 */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; border: 1px solid #e4e8f0; border-radius: 12px; overflow: hidden; table-layout: fixed; }
th { background: #f8fafc; padding: 15px 12px; border-bottom: 2px solid #2B3A55; text-align: center; font-size: 13px; font-weight: 800; color: #2B3A55; white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid #f0f4f8; font-size: 13px; vertical-align: middle; text-align: center; color: #4a5568; background: #fff; word-break: break-all; transition: background 0.2s; }
tr:hover td { background: #fdfefe; }
input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #4A90E2; }

/* 7. 상태 드롭다운 & 링크 & 파일 */
.status-select { padding: 6px 10px; border-radius: 6px; border: 2px solid #e2e8f0; font-weight: 700; font-size: 12px; cursor: pointer; color: #2B3A55; outline: none; transition: 0.2s; background: #fff; }
.status-select:focus { border-color: #4A90E2; box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1); }
.link-text { color: #4A90E2; text-decoration: none; font-weight: 600; border-bottom: 1px dashed #4A90E2; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: 0.2s; max-width: 150px; }
.link-text:hover { color: #2B3A55; border-bottom-color: #2B3A55; }
.file-wrap { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; align-items: center; }
.img-preview { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid #d9e2ec; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.folder-icon { font-size: 28px; text-decoration: none; line-height: 1; transition: transform 0.2s; }
.folder-icon:hover { transform: scale(1.1); }

/* 8. 페이징 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a { padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: #4a5568; font-size: 13px; font-weight: 600; transition: 0.2s; background: #fff; }
.pagination a.active { background: #2B3A55; color: #fff; border-color: #2B3A55; box-shadow: 0 4px 10px rgba(43,58,85,0.2); }
.pagination a:hover:not(.active) { background: #f0f4f8; color: #2B3A55; border-color: #bcccdc; }

/* 9. 뱃지 */
.role-badge, .badge { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: bold; color: #fff; display: inline-block; }
.role-superadmin { background: #e74c3c; } .role-admin { background: #8e44ad; } .role-agency { background: #27ae60; } .role-user { background: #95a5a6; }

/* 10. 💡 수정됨: 로그인 화면 및 로고 사이즈 고정 */
.login-wrapper { background: #ffffff; width: 100%; max-width: 400px; padding: 50px 40px; border-radius: 20px; box-shadow: 0 15px 35px rgba(43, 58, 85, 0.1); text-align: center; box-sizing: border-box; }
.logo-icon { width: 80px; height: 80px; margin: 0 auto 15px auto; background: linear-gradient(135deg, #2B3A55 0%, #4A90E2 100%); border-radius: 20px; display: flex; justify-content: center; align-items: center; box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3); }
/* 로고가 절대 커지지 않도록 강력하게 고정! */
.logo-icon svg { width: 44px !important; height: 44px !important; fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.brand-title { font-family: 'Montserrat', sans-serif; font-size: 34px; font-weight: 800; color: #2B3A55; margin: 0 0 5px 0; letter-spacing: 2px; }
.brand-subtitle { font-size: 14px; color: #7f8c8d; margin-bottom: 35px; font-weight: 500; }
.btn-login { width: 100%; padding: 16px; background: #2B3A55; color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.3s; margin-top: 10px; box-shadow: 0 4px 15px rgba(43, 58, 85, 0.2); }
.btn-login:hover { background: #4A90E2; box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3); transform: translateY(-2px); }
.error-msg { color: #e74c3c; font-size: 13px; font-weight: 500; margin-bottom: 20px; background: #fdf2f0; padding: 12px; border-radius: 8px; border-left: 4px solid #e74c3c; text-align: left; }