* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 사이드바 */
.sidebar {
    width: 220px;
    background-color: #2c3e50;
    color: #ecf0f1;
    flex-shrink: 0;
}

.sidebar .logo {
    padding: 20px 15px;
    font-size: 18px;
    font-weight: bold;
    background-color: #1a252f;
    border-bottom: 1px solid #34495e;
}

.menu-list {
    list-style: none;
    padding-top: 10px;
}

                .menu-title {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: bold;
    color: #ecf0f1;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.menu-title i {
    width: 18px;
    margin-right: 6px;
    text-align: center;
}

.menu-title:hover,
.menu-title:focus,
.menu-title.is-active {
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sub-menu {
    list-style: none;
    background-color: #243342;
    display: none;
}

.sub-menu.is-open {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px 10px 40px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 13px;
}

.sub-menu li.active a,
.sub-menu li a:hover {
    color: #2ecc71;
    font-weight: bold;
}

.settings-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.04);
}

.settings-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: #edf6ff;
    border: 1px solid #cfe3ff;
    border-radius: 999px;
    color: #2b5aa8;
    font-size: 12px;
    font-weight: 700;
}

.settings-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.settings-panel {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.04);
    overflow: hidden;
}

.settings-panel .settings-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.settings-panel .settings-grid th {
    background: #2f4965;
    color: #fff;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #2a3e51;
}

.settings-panel .settings-grid td {
    padding: 12px 10px;
    border: 1px solid #e8edf3;
    color: #475569;
    text-align: center;
    background: #fff;
}

.settings-panel .settings-grid tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.settings-panel .settings-grid td:first-child {
    width: 90px;
    font-weight: 700;
    color: #1f2937;
}

/* 메인 영역 */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 헤더 */
.header {
    height: 45px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-size: 12px;
}

.header .toggle-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
}

.header .logout-btn {
    margin-left: 10px;
    color: #e74c3c;
    text-decoration: none;
}

/* 본문 콘텐트 */
.content-area {
    padding: 15px;
}

.breadcrumb-bar {
    font-size: 13px;
    color: #2980b9;
    margin-bottom: 10px;
}

.breadcrumb-bar .active {
    color: #333;
}

/* 필터 영역 */
.filter-container {
    background: #fff;
    padding: 10px 15px;
    border: 1px solid #dcdcdc;
    margin-bottom: 15px;
    border-radius: 3px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

select, input[type="text"], input[type="date"] {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

/* 버튼 스타일 */
.btn {
    height: 30px;
    padding: 0 10px;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
}

.action-buttons {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.btn-navy { background-color: #34495e; }
.btn-mint { background-color: #1abc9c; }
.btn-cyan { background-color: #16a085; }
.btn-orange { background-color: #e67e22; }
.btn-blue { background-color: #3498db; }
.btn-search { background-color: #2980b9; }

.total-count {
    font-size: 13px;
    font-weight: bold;
    color: #2980b9;
    margin-left: 10px;
}

/* 테이블 영역 */
.table-wrapper {
    background: #fff;
    border: 1px solid #dcdcdc;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
}

.data-table th {
    background-color: #34495e;
    color: #fff;
    padding: 10px 5px;
    border: 1px solid #2c3e50;
    white-space: nowrap;
}

.data-table td {
    padding: 8px 5px;
    border: 1px solid #e9ecef;
    color: #495057;
    white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* 페이징 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 3px;
}

.page-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.page-btn.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* DB 목록 화면 */
:root { --screen-navy: #263e54; --screen-line: #d9dee3; --screen-text: #607b99; }
body { min-width: 1024px; background: #f4f5f6; font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; }
.admin-container { display: flex; min-height: 100vh; }
.sidebar { width: 196px; min-width: 196px; min-height: 100vh; background: #263e54; }
.sidebar .logo { display: block; padding: 13px 20px; background: #1e3449; color: #fff; font-size: 20px; text-decoration: none; }
.menu-list { padding-top: 4px; }
.menu-title { display: block; padding: 11px 20px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.menu-title i { width: 20px; margin-right: 5px; text-align: center; }
.menu-link:hover, .menu-link:focus { background: rgba(255,255,255,.08); color: #fff; }
.sub-menu { margin: 0; padding: 0; background: #20384e; list-style: none; }
.sub-menu a { display: block; padding: 10px 20px 10px 40px; color: #b8c7d5; text-decoration: none; }
.sub-menu .active a, .sub-menu a:hover { color: #18c4b1; font-weight: 700; }
.main-wrapper { min-width: 0; flex: 1; }
.header { height: 46px; padding: 0 18px 0 0; background: #fafafa; border-bottom: 1px solid #d2d7dc; color: #71849a; }
.toggle-btn { width: 44px; height: 46px; border: 0; border-right: 1px solid #d2d7dc; background: #f1f2f3; color: #4b708d; font-size: 20px; }
.logout-btn { color: #d8584c; text-decoration: none; }
.content-area { padding: 20px 12px 28px; }
.page-heading { margin: 0 0 10px 4px; color: #3977ac; font-size: 16px; font-weight: 700; }
.filter-panel, .table-panel { border: 1px solid #c9ced3; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.filter-panel { padding: 10px; margin-bottom: 10px; }
.filter-top { margin-bottom: 6px; }
.filter-panel .form-control, .filter-panel .form-select { min-height: 35px; border-color: #cbd1d6; color: #607080; font-size: 12px; }
.filter-panel .form-select { width: 132px; }
.filter-panel .date-input { width: 200px; }
.action-buttons .btn { min-height: 34px; border: 0; color: #fff; font-size: 12px; font-weight: 700; }
.btn-mms { background: #253e55; }.btn-download, .btn-upload { background: #24bfc2; }.btn-update { background: #efa943; }.btn-register { background: #4a8bc6; }
.search-btn { min-height: 35px; background: #4c8dc6; color: #fff; font-weight: 700; }
.total-count { color: #4387c1; font-weight: 700; white-space: nowrap; }
.table-panel { overflow: hidden; }.table-scroll { overflow-x: auto; }
.data-table { min-width: 1320px; margin: 0; color: var(--screen-text); text-align: center; font-size: 12px; }
.data-table thead th { padding: 8px 10px; background: #304a61; border-color: #405b70; color: #fff; white-space: nowrap; }
.data-table tbody td { height: 50px; padding: 8px 10px; border-color: #e2e6e9; white-space: nowrap; }
.data-table tbody tr:nth-child(odd) { background: #f1f1f1; }.data-table tbody tr:hover { background: #e4f0f7; }
.table-footer { min-height: 64px; align-items: center; }
.pagination .page-link { min-width: 34px; border-color: #d3d7db; color: #405b70; text-align: center; }
.pagination .active .page-link { background: #fff; border-color: #3489d0; color: #3489d0; }