/* ===== 국제결혼 매칭 플랫폼 - 모바일 친화적 스타일시트 ===== */

/* ===== 색상 변수 ===== */
:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --bg-light: #f5f7fa;
    --bg-dark: #1a1a2e;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --header-height: 60px;
    --bottom-nav-height: 65px;
}

/* ===== 리셋 및 공통 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
}

/* 모바일에서 하단 네비게이션 공간 확보 */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }
}

a {
    color: var(--primary);
    text-decoration: none;
    touch-action: manipulation;
}

a:hover {
    text-decoration: underline;
}

/* ===== 레이아웃 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-sm {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-md {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 헤더 ===== */
.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 15px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.logo:hover {
    text-decoration: none;
}

/* 데스크톱 네비게이션 */
.nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.nav a:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

.nav a.active {
    background: rgba(255,255,255,0.2);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-user .user-name {
    font-weight: 500;
    font-size: 14px;
}

.notification-badge {
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 3px;
    min-width: 18px;
    text-align: center;
}

/* 모바일 햄버거 메뉴 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

/* 활성 상태: X 모양 (간단한 버전) */
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    display: none;
}

/* 모바일 하단 네비게이션 */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--bottom-nav-height);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    transition: color 0.2s;
    position: relative;
    min-height: 50px;
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
    stroke-width: 1.8;
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
}

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

.bottom-nav-item.active .bottom-nav-icon {
    stroke-width: 2.2;
}

.bottom-nav-item.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.bottom-nav-item .badge,
.bottom-nav-badge {
    position: absolute;
    top: 3px;
    right: 50%;
    transform: translateX(12px);
    background: var(--danger);
    color: white;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}

/* 메인 컨텐츠 영역 - 헤더 높이만큼 여백 */
.main,
.main-content {
    padding-top: calc(var(--header-height) + 15px);
    min-height: 100vh;
}

/* ===== 푸터 ===== */
.footer {
    background: var(--bg-dark);
    color: #aaa;
    padding: 30px 15px;
    margin-top: 30px;
}

.footer-inner {
    text-align: center;
    font-size: 13px;
}

.footer a {
    color: #aaa;
}

.footer a:hover {
    color: white;
}

/* ===== 카드 ===== */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 15px;
}

.card-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== 버튼 - 터치 친화적 ===== */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    touch-action: manipulation;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

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

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

.btn-warning {
    background: var(--warning);
    color: #333;
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 40px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
    min-height: 54px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ===== 폼 - 모바일 최적화 ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px; /* iOS 줌 방지 */
    transition: border-color 0.2s;
    background: white;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control.error {
    border-color: var(--danger);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
}

/* ===== 체크박스/라디오 - 터치 친화적 ===== */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    min-height: 44px;
}

.checkbox-item input,
.radio-item input {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

/* ===== 알림/플래시 메시지 ===== */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* ===== 배지 ===== */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #cce5ff;
    color: #004085;
}

.badge-groom {
    background: #cce5ff;
    color: #004085;
}

.badge-bride {
    background: #fce4ec;
    color: #880e4f;
}

.badge-secondary {
    background: #e0e0e0;
    color: #666;
}

/* ===== 프로필 카드 - 모바일 최적화 ===== */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.profile-card:active {
    transform: scale(0.98);
}

.profile-photo {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    position: relative;
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo.blur img {
    filter: blur(10px);
}

.profile-photo .no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 12px;
}

.profile-photo .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 3px 8px;
}

.profile-info {
    padding: 12px;
}

.profile-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.profile-meta span {
    margin-right: 8px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.profile-tags .tag {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.profile-actions {
    display: flex;
    gap: 8px;
}

.profile-actions .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
    min-height: 38px;
}

/* ===== 테이블 - 모바일 카드 형태 ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

/* ===== 페이지네이션 - 터치 친화적 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination a:hover,
.pagination a:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== 인증 페이지 ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.auth-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 30px 25px;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header .logo {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.auth-header h1 {
    font-size: 20px;
    color: var(--text-dark);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

/* ===== 유형 선택 카드 ===== */
.type-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.type-card {
    padding: 20px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.type-card:active {
    transform: scale(0.98);
}

.type-card.selected {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.08);
}

.type-card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.type-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.type-card p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== 대시보드 ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 12px;
}

/* ===== 탭 - 스크롤 가능 ===== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.tab:hover {
    color: var(--primary);
    text-decoration: none;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* ===== 필터 바 ===== */
.filter-bar {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-bar form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-bar .form-group {
    margin-bottom: 0;
}

.filter-bar .form-control {
    padding: 12px 14px;
}

/* ===== 메시지 채팅 ===== */
.chat-container {
    height: 50vh;
    min-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.chat-message {
    display: flex;
    margin-bottom: 12px;
}

.chat-message.sent {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 14px;
}

.chat-message.sent .chat-bubble {
    background: var(--primary);
    color: white;
}

.chat-time {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
}

/* ===== 언어 선택기 ===== */
.language-selector {
    position: relative;
}

.language-selector select {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 30px 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.language-selector select option {
    color: #333;
    background: white;
}

/* ===== 유틸리티 ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.d-flex { display: flex; }
.d-none { display: none; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

/* ===== 모바일 전용 스타일 (768px 이하) ===== */
@media (max-width: 768px) {
    /* 기본 네비게이션 숨김 */
    .nav {
        display: none;
    }

    /* 햄버거 버튼 표시 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* 하단 네비게이션 표시 */
    .bottom-nav {
        display: block;
    }

    /* 모바일 슬라이드 메뉴 */
    .nav.mobile-open {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 15px;
        overflow-y: auto;
        z-index: 998;
    }

    .nav.mobile-open a {
        display: block;
        padding: 15px;
        color: var(--text-dark);
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }

    .nav.mobile-open a:hover {
        background: #f5f5f5;
        text-decoration: none;
    }

    .nav.mobile-open .nav-user {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid #eee;
    }

    .nav.mobile-open .language-selector {
        margin-top: 15px;
        display: block;
    }

    .nav.mobile-open .language-selector-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }

    /* 메인 콘텐츠 여백 */
    .main {
        padding-bottom: calc(var(--bottom-nav-height) + 15px);
    }

    /* 로고 */
    .logo {
        font-size: 18px;
    }

    /* 컨테이너 */
    .container,
    .container-sm,
    .container-md {
        padding: 0 12px;
    }

    /* 제목 */
    h1 {
        font-size: 22px;
    }

    /* 카드 */
    .card {
        padding: 15px;
        border-radius: 10px;
    }

    /* 프로필 그리드 */
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .profile-info {
        padding: 10px;
    }

    .profile-name {
        font-size: 14px;
    }

    .profile-actions .btn {
        padding: 8px 6px;
        font-size: 11px;
        min-height: 36px;
    }

    /* 폼 */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* 대시보드 */
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card .stat-value {
        font-size: 24px;
    }

    /* 테이블을 카드 형태로 */
    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table tbody tr {
        display: block;
        background: white;
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 12px;
        box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    }

    .mobile-card-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-card-table tbody td:last-child {
        border-bottom: none;
    }

    .mobile-card-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
    }

    /* 인증 박스 */
    .auth-box {
        padding: 20px 15px;
        border-radius: 12px;
    }

    /* 푸터 숨김 (하단 네비로 대체) */
    .footer {
        display: none;
    }
}

/* ===== 아주 작은 화면 ===== */
@media (max-width: 360px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ===== 태블릿 ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== 데스크톱 ===== */
@media (min-width: 1025px) {
    .profile-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .profile-photo {
        height: 280px;
        aspect-ratio: auto;
    }

    .type-selection {
        flex-direction: row;
    }

    .type-card {
        flex: 1;
    }

    .filter-bar form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
    }
}

/* ===== 관리자 레이아웃 ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--bg-dark);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1001;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    color: white;
    font-size: 18px;
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--primary);
    color: white;
}

.admin-content {
    flex: 1;
    margin-left: 250px;
    padding: 25px;
    background: var(--bg-light);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    font-size: 24px;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
        padding: 15px;
    }
}

/* ===== 다국어 폰트 지원 ===== */
/* 미얀마어 */
[lang="my"] body,
.lang-my {
    font-family: 'Noto Sans Myanmar', 'Padauk', -apple-system, sans-serif;
}

/* 베트남어 */
[lang="vi"] body,
.lang-vi {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== 스크롤바 스타일 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ===== 안전 영역 (노치 디스플레이) ===== */
@supports (padding: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .auth-page {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}
