@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Noto+Sans+KR:wght@400;700&display=swap');

:root {
    /* 메인 브랜드 컬러: Sky Blue */
    --primary: #00a8ff; 
    --primary-hover: #008ecc;
    /* 배경 및 텍스트 컬러 */
    --bg-color: #f4faff; /* 아주 연한 하늘색 배경으로 산뜻함 강조 */
    --white: #ffffff;
    --text-dark: #2c3e50; /* 가독성 좋은 진한 남색 계열 */
    --text-gray: #7f8c8d;
    /* 레이아웃 */
    --sidebar-width: 250px;
    --border-radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Black Han Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
}

/* 폰트 일괄 적용 (입력창 등 포함) */
h1, h2, h3, h4, h5, h6, th, td, input, select, button, a, textarea, .brand, .brand-logo {
    font-family: 'Black Han Sans', sans-serif;
    font-weight: normal;
}

/* --- Sidebar (왼쪽 메뉴) --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--white);
    box-shadow: 4px 0 15px rgba(0, 168, 255, 0.1); /* 스카이블루 빛 그림자 */
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    position: fixed;
    height: 100%;
    z-index: 100;
}

.brand {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0, 168, 255, 0.2);
}

.menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.menu a:hover, .menu a.active {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
    transform: translateX(5px); /* 호버 시 살짝 오른쪽으로 이동 */
}

/* --- Main Content (우측 본문) --- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 40px;
}

h2 {
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* --- Cards (대시보드 카드) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eef2f7;
}
.card::before { /* 카드 상단 포인트 라인 */
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--primary);
}
.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0, 168, 255, 0.15);
}

.card h3 { margin: 0 0 15px 0; font-size: 17px; color: var(--text-gray); }
.card .number { font-size: 36px; color: var(--text-dark); font-weight: bold; }

/* --- Tables (목록 테이블) --- */
table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0; 
    background: var(--white); 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    margin-bottom: 30px;
}
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid #f0f4f8; }
th { 
    background-color: #eaf6ff; /* 아주 연한 스카이블루 헤더 */
    color: var(--primary); 
    font-size: 15px; 
    text-transform: uppercase;
    letter-spacing: 1px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #f9fcff; }

/* --- Buttons & Forms (버튼 및 입력창) --- */
.btn { 
    padding: 12px 25px; border: none; border-radius: 8px; 
    cursor: pointer; color: white; text-decoration: none; 
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; transition: all 0.3s; font-family: 'Black Han Sans', sans-serif;
}
.btn-primary { background-color: var(--primary); box-shadow: 0 4px 10px rgba(0, 168, 255, 0.3); }
.btn-primary:hover { background-color: var(--primary-hover); box-shadow: 0 6px 15px rgba(0, 168, 255, 0.4); transform: translateY(-2px); }
.btn-danger { background-color: #ff6b6b; }
.btn-danger:hover { background-color: #ee5253; box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3); }
.btn-warning { background-color: #feca57; color: var(--text-dark); }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 6px; }

.form-group { background: var(--white); padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 30px; }
label { display: block; margin-bottom: 8px; color: var(--text-dark); font-size: 15px; }
input, select, textarea {
    width: 100%; padding: 12px 15px; margin-bottom: 20px;
    border: 2px solid #eef2f7; border-radius: 8px;
    background-color: #fcfdfe; transition: 0.3s;
    font-size: 15px; font-family: 'Noto Sans KR', sans-serif; /* 입력값은 가독성 고딕 */
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary); background-color: #fff; box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1); outline: none;
}

/* 유틸리티 */
.flex-row { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 20px; }