* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}

body {
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-wrapper {
    background: #ffffff;
    width: 100%;
    max-width: 750px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
}

/* 검색창 스타일 */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e4ec;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #3498db;
}

.search-box button {
    padding: 0 24px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.search-box button:hover {
    background-color: #2980b9;
}

/* 2분할 레이아웃 메인 컨테이너 */
.result-container {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #fafbfc;
    overflow: hidden;
}

/* 좌측 사진 패널 (40%) */
.left-panel {
    flex: 4;
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-right: 1px solid #e2e8f0;
    min-height: 260px;
}

.left-panel img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    object-fit: cover;
}

/* 우측 정보 패널 (60%) */
.right-panel {
    flex: 6;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.info-row {
    display: flex;
    align-items: center;
    font-size: 16px;
    border-bottom: 1px dashed #edf2f7;
    padding-bottom: 8px;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.label {
    width: 90px;
    font-weight: bold;
    color: #718096;
}

.value {
    color: #2d3748;
    font-weight: 600;
}

/* 에러 메시지 */
.error-msg {
    color: #e53e3e;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
}

/* 목록 테이블 */
.list-container { margin-top: 10px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
#empTable { width: 100%; border-collapse: collapse; font-size: 15px; }
#empTable thead { background-color: #3498db; color: white; }
#empTable th, #empTable td { padding: 12px 16px; text-align: left; }
#empTable tbody tr { cursor: pointer; border-bottom: 1px solid #edf2f7; transition: background 0.15s; }
#empTable tbody tr:hover { background-color: #ebf5fb; }

/* 액션 버튼 행 */
.action-row { display: flex; gap: 10px; margin-top: 10px; }
.btn-delete { background: #e53e3e; color: white; border: none; padding: 8px 18px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.btn-delete:hover { background: #c0392b; }
.btn-back { background: #95a5a6; color: white; border: none; padding: 8px 18px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.btn-add { background: #27ae60; color: white; border: none; padding: 0 18px; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: bold; }
.btn-add:hover { background: #1e8449; }

/* 모달 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; z-index: 999; }
.modal-box { background: white; border-radius: 12px; padding: 30px; width: 360px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.modal-box h3 { margin-bottom: 20px; color: #2c3e50; }
.form-row { display: flex; flex-direction: column; margin-bottom: 14px; gap: 5px; font-size: 14px; color: #555; }
.form-row input, .form-row select { padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }

