/* 모바일 웹앱 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #14b8a6;
    --secondary-color: #f97316;
    --blue-color: #3b82f6;
    --purple-color: #8b5cf6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
    line-height: 1.6;
    padding-bottom: 70px; /* 하단 탭바 공간 */
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 100%;
    padding: 0 16px;
}

/* 새로운 헤더 디자인 */
.app-header-new {
    background: white;
    color: var(--text-color);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-content-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo-new {
    font-size: 1.75rem;
}

.app-title-new h1 {
    font-size: 1.25rem;
    margin-bottom: 2px;
    color: var(--text-color);
}

.app-title-new p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.header-right {
    display: flex;
    gap: 8px;
}

.btn-icon-header {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-header:active {
    transform: scale(0.95);
    background: #e5e7eb;
}

/* 모달 닫기 버튼 */
.modal-close {
    position: relative;
}

.modal-close:hover {
    background: #fef3c7 !important;
    border-color: #fbbf24 !important;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important;
}

.modal-close:active {
    transform: scale(0.95);
    background: #fde68a !important;
}

/* 아이 선택 컴팩트 버전 (새 디자인) */
.child-selector-compact {
    background: #f9fafb;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
}

.child-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.child-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.btn-add-child {
    background: white;
    color: var(--primary-color);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-child:active {
    transform: scale(0.95);
    background: #f3f4f6;
}

/* 아이 목록 컴팩트 버전 (새 디자인) */
.children-list-compact {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.children-list-compact::-webkit-scrollbar {
    display: none;
}

.child-item-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.child-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

/* 모바일에서는 항상 표시 */
@media (max-width: 768px) {
    .child-actions {
        opacity: 1;
    }
}

.child-item-compact:hover .child-actions {
    opacity: 1;
}

.child-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    padding: 0;
}

.child-action-btn:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.child-action-btn:active {
    transform: scale(0.95);
}

.child-item-compact.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d9488 100%);
    border-color: var(--primary-color);
    color: white;
}

.child-item-compact.selected .child-actions {
    opacity: 1;
}

.child-item-compact.selected .child-action-btn {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.child-item-compact.selected .child-action-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* 전체보기 링크 */
.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    color: var(--blue-color);
    transform: translateX(4px);
}

.view-all-link:active {
    transform: scale(0.95);
}

.child-item-compact:active {
    transform: scale(0.98);
}

.child-avatar-compact {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.child-item-compact.selected .child-avatar-compact {
    background: rgba(255, 255, 255, 0.25);
}

.child-name-compact {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.child-item-compact.selected .child-name-compact {
    color: white;
}

.child-age-compact {
    font-size: 0.75rem;
    color: var(--text-light);
}

.child-item-compact.selected .child-age-compact {
    color: rgba(255, 255, 255, 0.9);
}

/* 배너 슬라이더 (카드 내부) */
.banner-slider {
    display: flex;
    gap: 12px;
    overflow-x: scroll;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 16px 8px 16px;
    margin: 12px -16px 0 -16px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.banner-slider::-webkit-scrollbar {
    display: none;
}

.banner-item {
    flex: 0 0 calc(100% - 32px);
    max-width: calc(100% - 32px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    user-select: none;
    -webkit-user-select: none;
}

.banner-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.banner-item:active {
    transform: scale(0.98);
}

.banner-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.banner-category {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.banner-summary {
    font-size: 0.875rem;
    opacity: 0.95;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* 배너 dots */
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s;
    cursor: pointer;
}

.banner-dot:hover {
    background: #9ca3af;
}

.banner-dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 3px;
}

/* 치료 사례 슬라이더 */
.cases-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.cases-slider::-webkit-scrollbar {
    display: none;
}

.case-card-home {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.case-card-home:active {
    transform: scale(0.98);
    border-color: var(--primary-color);
}

.case-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.case-gender-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.case-gender-badge.male {
    background: #dbeafe;
    color: #1e40af;
}

.case-gender-badge.female {
    background: #fce7f3;
    color: #be185d;
}

.case-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.case-summary {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.case-stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.case-stat-mini {
    background: #f9fafb;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
}

.case-stat-mini-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.case-stat-mini-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 모달 섹션 */
.modal-section {
    padding: 0 16px 16px 16px;
}

.modal-section:first-child {
    padding-top: 16px;
}

/* 아이 통계 카드 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 2px solid #bae6fd;
}

.stat-box.weight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-unit {
    font-size: 0.875rem;
    color: #64748b;
}

.stat-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.quick-action-btn {
    padding: 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-action-btn:active {
    transform: scale(0.98);
    background: #f8fafc;
}

/* 통계 슬라이더 */
.stats-slider-section {
    margin: 16px 0;
}

/* 통계 슬라이더 (카드 내부) */
.stats-slider {
    display: flex;
    gap: 12px;
    overflow-x: scroll;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 16px 8px 16px;
    margin: 12px -16px 0 -16px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.stats-slider::-webkit-scrollbar {
    display: none;
}

.stat-card {
    flex: 0 0 calc(100% - 32px);
    max-width: calc(100% - 32px);
    scroll-snap-align: center;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
    touch-action: manipulation;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-card-info {
    flex: 1;
}

.stat-card-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-card-unit {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.stat-card-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.stat-card-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #64748b;
}

.stat-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 게이지 차트 - 개선 버전 */
.gauge-chart {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 20px auto;
}

.gauge-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gauge-segments {
    position: relative;
    width: 100%;
    height: 100%;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.gauge-unit {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 4px;
}

/* 통계 카드 헤더 */
.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.stat-card-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
}

.stat-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 게이지 차트 */
.gauge-chart {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 20px auto;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.gauge-unit {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}

/* 백분위 정보 */
.percentile-info {
    text-align: center;
    margin-top: 16px;
}

.percentile-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #3b82f6;
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.percentile-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

/* 기존 스타일 제거 */

.gauge-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* 범위 정보 */
.range-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
}

.range-item {
    text-align: center;
    flex: 1;
}

.range-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
}

.range-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

/* 백분위 표시 */
.percentile-info {
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
}

/* 하단 탭 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-light);
    padding: 4px 0;
    transition: all 0.3s;
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.tab-item.active .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    font-size: 0.625rem;
    font-weight: 600;
}

/* 카카오톡 상담하기 스타일 */
#kakaoConsult {
    color: #3c1e1e;
}

#kakaoConsult .tab-icon {
    background: linear-gradient(135deg, #fee500 0%, #ffd500 100%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(254, 229, 0, 0.4);
    transition: all 0.3s ease;
}

#kakaoConsult:hover .tab-icon,
#kakaoConsult.active .tab-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.6);
}

#kakaoConsult .tab-label {
    color: #3c1e1e;
    font-weight: 700;
}

/* 메인 콘텐츠 */
.main-content {
    padding: 16px 0;
    min-height: calc(100vh - 140px);
}

/* 카드 스타일 */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

/* 버튼 */
.btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:active {
    background: #0d9488;
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:active {
    background: #ea580c;
    transform: scale(0.98);
}

/* 폼 요소 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
    font-size: 0.75rem;
}

/* 섹션 타이틀 */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* 통계 카드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* 로딩 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 터치 피드백 */
.touchable {
    cursor: pointer;
    transition: all 0.2s;
}

.touchable:active {
    transform: scale(0.97);
    opacity: 0.8;
}

/* 유틸리티 */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none; }

/* 스크롤 최적화 */
.scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* 아이 선택 카드 */
.child-selector-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid var(--blue-color);
}

.children-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.child-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.child-item.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

.child-item:active {
    transform: scale(0.98);
}

.child-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.child-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d9488 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.child-item.selected .child-avatar {
    background: linear-gradient(135deg, var(--blue-color) 0%, #2563eb 100%);
}

.child-details {
    flex: 1;
}

.child-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.child-meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

.child-actions {
    display: flex;
    gap: 4px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--white);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:active {
    transform: scale(0.95);
    background: var(--bg-color);
}

.child-item .btn-icon {
    background: var(--bg-color);
}

.child-item .btn-icon:active {
    background: var(--border-color);
}

/* 모달 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-color);
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:active {
    background: var(--border-color);
    transform: scale(0.95);
}
