/* Hibtalk 메신저 스타일 */

/* 회원탈퇴 모달 스타일 */
.delete-account-modal {
    text-align: center;
    padding: 20px;
}

.delete-account-modal .warning-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.delete-account-modal .warning-list {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.delete-account-modal .warning-list p {
    margin: 8px 0;
    color: #856404;
    display: flex;
    align-items: center;
}

.delete-account-modal .warning-list i {
    margin-right: 8px;
    color: #dc3545;
}

.delete-account-modal .confirmation-input {
    margin-top: 20px;
    text-align: left;
}

.delete-account-modal .confirmation-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.delete-account-modal .confirmation-input input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.delete-account-modal .confirmation-input input:focus {
    outline: none;
    border-color: #dc3545;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-danger:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* 고객지원 화면 스타일 - 특정 화면에서만 적용 */
#customer-support-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f5f7fa;
}

#customer-support-screen .customer-support-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#customer-support-screen .customer-support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    border-radius: 8px 8px 0 0;
}

#customer-support-screen .customer-support-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

#customer-support-screen .customer-support-header h2 i {
    color: #ad8db8;
    margin-right: 10px;
}

#customer-support-screen .customer-support-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

#customer-support-screen .inquiry-list {
    max-width: 800px;
    margin: 0 auto;
}

#customer-support-screen .list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#customer-support-screen .list-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

#customer-support-screen .filter-tabs {
    display: flex;
    gap: 10px;
}

#customer-support-screen .filter-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

#customer-support-screen .filter-tab:hover {
    background: #f8f9fa;
}

#customer-support-screen .filter-tab.active {
    background: #ad8db8;
    color: white;
    border-color: #ad8db8;
}

#customer-support-screen .inquiry-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#customer-support-screen .inquiry-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#customer-support-screen .inquiry-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

#customer-support-screen .inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

#customer-support-screen .inquiry-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    flex: 1;
    margin-right: 15px;
}

#customer-support-screen .inquiry-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

#customer-support-screen .inquiry-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

#customer-support-screen .inquiry-status.answered {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#customer-support-screen .inquiry-status.closed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#customer-support-screen .inquiry-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

#customer-support-screen .inquiry-category {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

#customer-support-screen .inquiry-preview {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

#customer-support-screen .inquiry-reply-preview {
    display: flex;
    align-items: center;
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
}

#customer-support-screen .inquiry-reply-preview i {
    margin-right: 5px;
}

#customer-support-screen .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

#customer-support-screen .empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

#customer-support-screen .empty-state p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* 문의 작성 모달 스타일 - 모달 내에서만 적용 */
.new-inquiry-modal {
    padding: 20px;
}

.new-inquiry-modal .inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.new-inquiry-modal .form-group {
    display: flex;
    flex-direction: column;
}

.new-inquiry-modal .form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.new-inquiry-modal .form-group select,
.new-inquiry-modal .form-group input,
.new-inquiry-modal .form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.new-inquiry-modal .form-group select:focus,
.new-inquiry-modal .form-group input:focus,
.new-inquiry-modal .form-group textarea:focus {
    outline: none;
    border-color: #ad8db8;
}

.new-inquiry-modal .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.new-inquiry-modal .char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 문의 상세 모달 스타일 - 모달 내에서만 적용 */
.inquiry-detail-modal {
    padding: 20px;
    max-width: 600px;
}

.inquiry-detail-modal .inquiry-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.inquiry-detail-modal .inquiry-detail-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    flex: 1;
    margin-right: 15px;
}

.inquiry-detail-modal .inquiry-detail-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.inquiry-detail-modal .inquiry-detail-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.inquiry-detail-modal .inquiry-detail-content {
    margin-bottom: 25px;
}

.inquiry-detail-modal .inquiry-detail-content h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
}

.inquiry-detail-modal .content-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.inquiry-detail-modal .inquiry-detail-reply {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ad8db8;
}

.inquiry-detail-modal .inquiry-detail-reply h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.inquiry-detail-modal .inquiry-detail-reply h4 i {
    margin-right: 8px;
    color: #ad8db8;
}

.inquiry-detail-modal .reply-meta {
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.inquiry-detail-modal .reply-content {
    line-height: 1.6;
    white-space: pre-wrap;
}

.inquiry-detail-modal .inquiry-detail-no-reply {
    text-align: center;
    padding: 30px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

.inquiry-detail-modal .inquiry-detail-no-reply i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 15px;
}

.inquiry-detail-modal .inquiry-detail-no-reply p {
    margin: 0;
    font-size: 14px;
}

/* 관리자 답변 섹션 스타일 - 모달 내에서만 적용 */
.inquiry-detail-modal .admin-reply-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.inquiry-detail-modal .admin-reply-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.inquiry-detail-modal .admin-reply-section h4 i {
    margin-right: 8px;
    color: #28a745;
}

.inquiry-detail-modal .admin-reply-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s;
}

.inquiry-detail-modal .admin-reply-section textarea:focus {
    outline: none;
    border-color: #28a745;
}

.inquiry-detail-modal .inquiry-user {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}
/* 프로필 화면 스타일 */
.profile-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f5f7fa;
}

.profile-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ad8db8;
}

.profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.profile-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-title h2 {
    color: #333;
    font-size: 24px;
    margin: 0;
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ad8db8;
    object-fit: cover;
}

/* 친구 화면 스타일 */
.friends-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f5f7fa;
}

.friends-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    border-radius: 8px 8px 0 0;
}

.friends-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.friends-header h2 i {
    margin-right: 10px;
}

.friends-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.friends-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.friends-list .list-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.friends-search {
    position: relative;
    display: flex;
    align-items: center;
}

.friends-search input {
    padding: 8px 12px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    width: 250px;
}

.friends-search i {
    position: absolute;
    left: 12px;
    color: #666;
    font-size: 14px;
}

.friends-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.friend-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.friend-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.friend-avatar {
    margin-right: 15px;
}

.friend-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.friend-username {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.friend-status {
    color: #999;
    font-size: 13px;
}

.friend-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .friends-container {
        margin: 0;
    }
}

/* 친구 추가 모달 스타일 */
.search-section {
    margin-bottom: 20px;
}

.search-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.search-input-container .search-icon {
    position: absolute;
    left: 12px;
    color: #666;
    font-size: 14px;
}

.search-input-container input {
    flex: 1;
    padding: 12px 12px 12px 35px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-btn {
    margin-left: 10px;
    padding: 12px 20px;
    background: #ad8db8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.search-filters {
    display: flex;
    gap: 20px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-option input {
    margin-right: 8px;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
}

.user-avatar {
    margin-right: 15px;
}

.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-username {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.user-status {
    color: #999;
    font-size: 13px;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.unblock-btn {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    transition: all 0.3s ease;
}

.unblock-btn:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.unblock-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(40, 167, 69, 0.3);
}

.empty-search {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-search i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 15px;
}

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f5f7fa;
    overflow: hidden;
}

/* 공통 클래스 */
.hidden {
    display: none !important;
}

.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 인증 화면 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ad8db8 0%, #9b7aa0 100%);
    padding: 20px;
    text-align: center;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
    margin: 0 auto;
    position: relative;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.auth-header h1 {
    font-size: 2.5rem;
    color: #ad8db8;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    color: #666;
    font-size: 1rem;
}

.auth-form {
    display: none;
    width: 100%;
    text-align: center;
}

.auth-form.active {
    display: block;
    width: 100%;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #ad8db8;
    background: white;
    box-shadow: 0 0 0 3px rgba(173, 141, 184, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ad8db8 0%, #9b7aa0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 20px auto;
    display: block;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(173, 141, 184, 0.3);
}

.auth-switch {
    text-align: center;
    color: #666;
    width: 100%;
    margin: 0 auto;
}

.auth-switch a {
    color: #ad8db8;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* 메인 앱 화면 */
.app-container {
    display: flex;
    height: 100vh;
    background: #f5f7fa;
}

/* 사이드바 */
.sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid #e1e5e9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    position: relative;
    margin-right: 12px;
}

.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #ad8db8;
    border-radius: 50%;
    border: 2px solid white;
}

.user-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.user-details p {
    font-size: 12px;
    color: #666;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.sidebar-actions button {
    width: 40px;
    height: 40px;
    border: none;
    background: #e1e5e9;
    border-radius: 10px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-actions button:hover {
    background: #ad8db8;
    color: white;
    transform: translateY(-1px);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

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

/* 기본적으로 모바일 헤더는 숨김 */
.list-header .mobile-header {
    display: none;
}

/* 모바일 화면일 때 (768px 이하) */
@media (max-width: 768px) {
    /* 데스크톱 헤더를 숨김 */
    .list-header .desktop-header {
        display: none;
    }

    /* 모바일 헤더를 보여줌 */
    .list-header .mobile-header {
        display: block;
        font-size: 24px;
        font-weight: 600;
        color: #333;
    }
}

.list-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.list-header button {
    width: 32px;
    height: 32px;
    border: none;
    background: #ad8db8;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-header button:hover {
    background: #9b7aa0;
    transform: scale(1.05);
}

/* 대화방 목록 */
.conversation-item {
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    position: relative;
}

.conversation-item:hover {
    background: #f8f9fa;
}

.conversation-item.active {
    background: #ad8db8;
    color: #333;
}

.conversation-item.active .conversation-name {
    color: #333;
}

.conversation-item.active .conversation-meta {
    color: #666;
}

.conversation-item.active .conversation-last-message {
    color: #666;
}

.conversation-avatar {
    position: relative;
    margin-right: 12px;
}

.conversation-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

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

.conversation-last-message {
    font-size: 13px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.conversation-time {
    font-size: 11px;
    opacity: 0.7;
}

.unread-badge {
    background: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* 설정 화면 */
.settings-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f5f7fa;
}

.settings-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ad8db8;
}

.settings-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.settings-section {
    background: #ffffff; /* 카드 배경색 */
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e1e5e9; /* 카드 테두리 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 카드 그림자 효과 */
    transition: all 0.3s ease; /* 부드러운 전환 효과 */
}

.settings-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.settings-section h3 {
    padding: 15px 20px 10px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-primary);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item.clickable {
    cursor: pointer;
}

.setting-item.clickable:hover {
    background: var(--hover-bg);
}

.setting-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.setting-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.setting-text {
    flex: 1;
    min-width: 0;
}

.setting-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.setting-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.setting-control {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.setting-control select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

.setting-control select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(173, 141, 184, 0.1);
}

.setting-control i.fa-chevron-right {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 토글 스위치 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--inactive-color, #ccc);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* 위험 영역 */
.danger-section .setting-item.danger-item {
    color: #ff4757;
}

.danger-section .setting-info i {
    color: #ff4757;
}

.danger-section .setting-title {
    color: #ff4757;
}

.conversation-item.active .unread-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* 메인 콘텐츠 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
}

/* 채팅 화면 */
.chat-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(to bottom, #f8f6fc, #f5f2fa);
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid #e8e4f0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    justify-content: space-between;
}

.chat-info {
    display: flex;
    align-items: center;
}

.chat-avatar {
    position: relative;
    margin-right: 15px;
}

.chat-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.chat-details p {
    font-size: 13px;
    color: #666;
}

.chat-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 100000;
}

.chat-actions button {
    width: 45px;
    height: 45px;
    border: none;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-actions button:hover {
    background: #ad8db8;
    color: white;
}

/* 채팅 메시지 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.welcome-icon {
    font-size: 4rem;
    color: #ad8db8;
    margin-bottom: 20px;
}

.welcome-message h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.welcome-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: #ad8db8;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.welcome-btn:hover {
    background: #9b7aa0;
    transform: translateY(-1px);
}

/* 메시지 버블 */
/* 메시지 컨테이너 */
.message {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 내 메시지 - 오른쪽 정렬 */
.message.me {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* 상대방 메시지 - 왼쪽 정렬 */
.message.other {
    flex-direction: row;
    justify-content: flex-start;
}

/* 프로필 아바타 */
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(173, 141, 184, 0.15);
    background: #fff;
}

.message.me .message-avatar {
    border-color: #ad8db8;
}

/* 메시지 콘텐츠 영역 */
.message-content {
    max-width: 65%;
    min-width: 80px;
    display: flex;
    flex-direction: column;
}

.message.me .message-content {
    align-items: flex-end;
}

.message.other .message-content {
    align-items: flex-start;
}

/* 발신자 이름 */
.message-sender {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    padding: 0 4px;
}

.message.me .message-sender {
    display: none; /* 내 메시지는 이름 숨김 */
}

/* 메시지 말풍선 */
.message-bubble {
    padding: 12px 16px;
    border-radius: 20px;
    word-wrap: break-word;
    position: relative;
    max-width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1.4;
}

/* 상대방 메시지 말풍선 */
.message.other .message-bubble {
    background: #ffffff;
    color: #333;
    border-bottom-left-radius: 4px;
    border: 1px solid #f0f0f0;
    position: relative;
}

.message.other .message-bubble::after {
    content: '';
    position: absolute;
    left: -6px;
    bottom: 6px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 12px 8px 0;
    border-color: transparent #ffffff transparent transparent;
    filter: drop-shadow(-1px 1px 1px rgba(0, 0, 0, 0.05));
}

/* 내 메시지 말풍선 */
.message.me .message-bubble {
    background: linear-gradient(135deg, #ad8db8, #9b7aa0);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(173, 141, 184, 0.3);
    position: relative;
}

.message.me .message-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 6px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #9b7aa0;
    transform: rotate(0deg);
}

/* 메시지 시간 */
.message-time {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
    padding: 0 4px;
    white-space: nowrap;
}

.message.me .message-time {
    text-align: right;
}

.message.other .message-time {
    text-align: left;
}

/* 시스템 메시지 */
.message-system {
    justify-content: center;
    margin: 20px 0;
}

.message-system .message-bubble {
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    border-radius: 16px;
    text-align: center;
    font-size: 12px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-system .message-bubble::after {
    display: none;
}

/* 연속 메시지 처리 */
.message.continuous {
    margin-bottom: 4px;
}

.message.continuous .message-avatar {
    opacity: 0;
}

.message.continuous .message-sender {
    display: none;
}

/* 호버 효과 */
.message-bubble:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.message.me .message-bubble:hover {
    box-shadow: 0 4px 16px rgba(173, 141, 184, 0.4);
}

/* 메시지 입력 */
.chat-input {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e8e4f0;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    gap: 12px;
}

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

.input-actions button {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.input-actions button:hover:not(:disabled) {
    background: #e1e5e9;
    color: #333;
}

.input-field {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 5px;
    min-width: 0;
}

.input-field input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .input-field input {
        padding: 10px 5px;
        font-size: 12px;
    }
}

.input-field input:disabled {
    color: #999;
}

#send-button {
    width: 40px;
    height: 40px;
    border: none;
    background: #ad8db8;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#send-button:hover:not(:disabled) {
    background: #9b7aa0;
    transform: scale(1.05);
}

#send-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* 반응형 디자인 */
/* 모바일 네비게이션 시스템 */
.mobile-nav-header {
    display: none;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e8e4f0;
    backdrop-filter: blur(10px);
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-back-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #ad8db8;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-back-btn:hover {
    background: rgba(173, 141, 184, 0.1);
    transform: scale(1.1);
}

.mobile-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

/* 모바일 화면 전환 애니메이션 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-page-enter {
    animation: slideInRight 0.3s ease-out;
}

.mobile-page-exit {
    animation: slideOutRight 0.3s ease-out;
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
        position: relative;
    }

    .sidebar {
        display: flex; /* 모바일에서 사이드바 강제 표시 */
        width: 100% !important;
        height: calc(100vh - 60px) !important; /* 하단 탭바 높이 제외 */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1;
        flex-direction: column;
        overflow: hidden; /* 사이드바 자체는 스크롤 없음 */
        background: #ffffff;
    }

    /* 모바일 하단 탭바 */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #ffffff;
        border-top: 1px solid #e1e5e9;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #666;
        text-decoration: none;
        min-width: 50px;
    }

    .mobile-nav-item.active {
        color: #1976d2;
    }

    .mobile-nav-icon {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .mobile-nav-label {
        font-size: 10px;
        font-weight: 500;
        text-align: center;
    }

    /* 메인 콘텐츠 영역 조정 */
    .main-content {
        padding-bottom: 60px; /* 하단 탭바 공간 확보 */
    }

    /* 모바일 사이드바 헤더 */
    .sidebar-header {
        display: none;
    }

    /* 모바일 사이드바 콘텐츠 영역 */
    .sidebar-content {
        flex: 1;
        overflow: hidden; /* 부모에서 스크롤 제어 */
        display: flex;
        flex-direction: column;
        background: #ffffff;
        padding: 0;
    }

    /* 모바일 대화방 목록 */
    .conversation-list {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .conversations {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 20px; /* 하단 여백 추가 */
        /* 스크롤바 스타일링 */
        scrollbar-width: thin;
        scrollbar-color: #ccc #f5f5f5;
    }

    .conversations::-webkit-scrollbar {
        width: 6px;
    }

    .conversations::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 3px;
    }

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

    .conversations::-webkit-scrollbar-thumb:hover {
        background: #999;
    }

    .conversation-list {
        display: flex !important;
    }

    .conversations {
        display: none;
    }

    .conversations.active {
        display: block;
    }

    /* 모바일 채팅방 헤더 */
    .mobile-chat-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #ffffff;
        border-bottom: 1px solid #e1e5e9;
        display: flex;
        align-items: center;
        padding: 0 16px;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        cursor: pointer;
        color: #1976d2;
        font-size: 18px;
        margin-right: 12px;
        border-radius: 50%;
        transition: background 0.2s ease;
    }

    .mobile-back-btn:hover {
        background: #f5f5f5;
    }

    .mobile-chat-title {
        flex: 1;
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

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

    .mobile-chat-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        cursor: pointer;
        color: #666;
        font-size: 18px;
        border-radius: 50%;
        transition: background 0.2s ease;
    }

    .mobile-chat-action-btn:hover {
        background: #f5f5f5;
    }

    /* 채팅방이 열릴 때 헤더 표시 */
    .chat-screen.mobile-chat-open .mobile-chat-header {
        display: flex;
    }

    .chat-screen.mobile-chat-open {
        padding-top: 60px; /* 헤더 공간 확보 */
    }

    /* 모바일에서 각 화면을 전체 화면으로 표시 */
    .chat-screen,
    .profile-screen,
    .friends-screen,
    .settings-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 10;
        background: linear-gradient(to bottom, #f8f6fc, #f5f2fa);
        display: flex;
        flex-direction: column;
        overflow-y: auto; /* 스크롤 추가 */
    }

    .profile-screen,
    .friends-screen,
    .settings-screen {
        padding-bottom: 60px; /* 하단 탭바 공간 확보 */
    }

    /* 모바일에서 화면별 헤더 표시 */
    .chat-screen .mobile-nav-header,
    .profile-screen .mobile-nav-header,
    .friends-screen .mobile-nav-header {
        display: flex;
    }

    /* 모바일에서 메인 화면은 전체 표시 */
    .main-content {
        flex: 1;
        overflow: hidden;
    }

    /* 채팅 화면 조정 */
    .chat-header {
        display: none;
    }

    .chat-messages {
        padding: 15px;
    }

    .chat-input {
        padding: 15px;
    }

    .main-content {
        flex: 1;
        min-height: 0;
    }

    .auth-card {
        margin: 0 auto;
        border-radius: 15px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 30px 25px;
        max-width: 90%;
        width: 90%;
    }

    .auth-container {
        padding: 15px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* 토스트 알림 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

.toast.success {
    background: #ad8db8;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* 모달 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 20px 0;
    border-bottom: 1px solid #e1e5e9;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-content {
    padding: 0 20px 20px;
}

.modal-actions {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ad8db8;
    color: white;
}

.btn-primary:hover {
    background: #9b7aa0;
}

.btn-secondary {
    background: #e1e5e9;
    color: #333;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* 그룹 생성 모달 스타일 */
.create-group-modal {
    max-height: 70vh;
    overflow-y: auto;
}

.group-info-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.friends-selection-section {
    margin-bottom: 25px;
}

.friends-selection-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.friends-list-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px;
}

.friend-select-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.2s ease;
    cursor: pointer;
}

.friend-select-item:hover {
    background: #f8f9fa;
    border-color: #ad8db8;
}

.friend-select-item:last-child {
    margin-bottom: 0;
}

.friend-checkbox {
    display: flex;
    align-items: center;
    margin-right: 12px;
    cursor: pointer;
}

.friend-checkbox input[type="checkbox"] {
    display: none;
}

.friend-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.friend-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #ad8db8;
    border-color: #ad8db8;
}

.friend-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.friend-select-item .friend-avatar {
    position: relative;
    margin-right: 12px;
}

.friend-select-item .friend-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-select-item .friend-info {
    flex: 1;
}

.friend-select-item .friend-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.friend-select-item .friend-status {
    font-size: 12px;
    color: #666;
}

.selected-friends {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.selected-friends h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.no-selection {
    color: #666;
    font-style: italic;
    font-size: 13px;
    margin: 0;
}

.selected-friend-tag {
    display: inline-flex;
    align-items: center;
    background: #ad8db8;
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px 4px 2px 0;
}

.selected-friend-tag .remove-friend {
    background: none;
    border: none;
    color: white;
    margin-left: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.selected-friend-tag .remove-friend:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background: initial;
}

/* 파일/이미지 메시지 스타일 */
.media-bubble {
    padding: 8px !important;
    max-width: 350px;
}

.message-image {
    margin-bottom: 8px;
}

.message-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.message-image img:hover {
    opacity: 0.9;
}

.image-info {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.message-file {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 250px;
}

.message-file:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.file-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.download-icon {
    color: #ad8db8;
    font-size: 18px;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.message-file:hover .download-icon {
    opacity: 1;
}

/* 이미지 미리보기 모달 */
.image-preview-modal {
    text-align: center;
}

.image-preview-container {
    margin-bottom: 15px;
    max-height: 60vh;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.preview-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.image-info .file-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.image-info .file-size {
    color: #666;
    font-size: 14px;
}

/* 전체화면 이미지 모달 */
.full-image-modal {
    text-align: center;
}

.full-image-container {
    margin-bottom: 20px;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.full-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.image-actions {
    text-align: center;
}

/* 이모지 피커 */
.emoji-picker {
    max-height: 400px;
    overflow-y: auto;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 5px;
    padding: 10px;
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.emoji-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

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

/* 다크모드 대응 */
.message.me .file-name {
    color: white;
}

.message.me .file-size {
    color: rgba(255, 255, 255, 0.8);
}

.message.me .message-file {
    background: rgba(255, 255, 255, 0.1);
}

.message.me .message-file:hover {
    background: rgba(255, 255, 255, 0.2);
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ad8db8;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease;
}

.change-avatar-btn:hover {
    background: #9b7aa0;
}

.profile-info-section {
    margin-bottom: 30px;
}

.profile-field {
    margin-bottom: 20px;
}

.profile-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.field-value input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.field-value input:focus {
    outline: none;
    border-color: #ad8db8;
}

.field-value span {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    color: #333;
}

.field-note {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.profile-actions .btn {
    flex: 1;
    min-width: 120px;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-weight: 700;
    color: #ad8db8;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.friends-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 2px solid #ad8db8;
}

/* 반응형 대응 */
@media (max-width: 768px) {
    .media-bubble {
        max-width: 280px;
    }

    .message-image img {
        max-height: 200px;
    }

    .message-file {
        min-width: 200px;
    }

    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
    }

    .emoji-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .preview-image,
    .full-image {
        max-height: 50vh;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 15px 0;
        border-bottom: 1px solid #e1e5e9;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .list-header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        border-bottom: 2px solid #ad8db8;
    }

    .profile-header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        border-bottom: 2px solid #ad8db8;
    }

    .friends-header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        border-bottom: 2px solid #ad8db8;
    }

    .settings-header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        border-bottom: 2px solid #ad8db8;
    }

    .profile-container {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }

    .profile-content {
        padding: 15px;
    }

    .settings-content {
        padding: 15px;
    }
}

/* 프로필 이미지 변경 모달 스타일 */
.profile-image-change-modal {
    max-width: 600px;
    margin: 0 auto;
}

.current-profile-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.current-profile-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.current-profile-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ad8db8;
    object-fit: cover;
}

.image-change-options {
    display: grid;
    gap: 25px;
}

.option-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e1e5e9;
}

.option-section h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.avatar-option {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.avatar-option:hover {
    background: white;
    border-color: #ad8db8;
    transform: translateY(-2px);
}

.avatar-option.selected {
    background: white;
    border-color: #ad8db8;
    box-shadow: 0 4px 12px rgba(173, 141, 184, 0.3);
}

.avatar-option img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 5px;
    transition: transform 0.2s ease;
}

.avatar-option:hover img {
    transform: scale(1.1);
}

.avatar-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.avatar-option.selected .avatar-label {
    color: #ad8db8;
    font-weight: 600;
}

.btn-outline {
    background: white;
    color: #ad8db8;
    border: 1px solid #ad8db8;
}

.btn-outline:hover {
    background: #ad8db8;
    color: white;
}

.selected-file-info {
    margin-top: 10px;
    padding: 8px 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    font-size: 14px;
}

.selected-file-info i {
    margin-right: 8px;
}

#save-profile-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 친구 메뉴 스타일 */
.friend-menu {
    min-width: 200px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item.danger {
    color: #dc3545;
}

.menu-item.danger:hover {
    background-color: #f8d7da;
}

.menu-item i {
    width: 16px;
    text-align: center;
}

/* 친구 프로필 모달 스타일 */
.friend-profile {
    text-align: center;
    padding: 20px;
}

.friend-profile .profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.friend-profile .profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ad8db8;
    object-fit: cover;
}

.friend-profile .online-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #28a745;
    border: 3px solid white;
    border-radius: 50%;
}

.friend-profile h3 {
    margin: 10px 0 5px 0;
    color: #333;
    font-size: 20px;
}

.friend-profile .username {
    color: #666;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.friend-profile .status-message {
    color: #555;
    margin: 0 0 20px 0;
    font-style: italic;
}

.profile-stats {
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: #555;
}

.stat-value {
    color: #333;
}

/* 기본 유틸리티 클래스 */
.hidden {
    display: none !important;
}

/* 뒤로가기 버튼 스타일 */
.back-btn {
    background: #ad8db8;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.back-btn:hover {
    background: #9b7aa0;
    transform: translateY(-1px);
}

.back-btn:active {
    transform: translateY(0);
}

.back-btn i {
    font-size: 14px;
}

/* 반응형 - 모바일에서 아바타 그리드 조정 */
@media (max-width: 768px) {
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .avatar-option img {
        width: 50px;
        height: 50px;
    }

    .current-profile-image img {
        width: 80px;
        height: 80px;
    }

    /* 햄버거 메뉴 모바일 조정 */
    .chat-menu {
        right: 5px !important;
        min-width: 250px;
        position: fixed !important;
        z-index: 100001 !important;
        background: #ffffff !important;
    }

    /* 다크 테마 모바일 메뉴 */
    [data-theme="dark"] .chat-menu {
        background: #2d2d2d !important;
    }

    .invite-modal-content {
        width: 95%;
        max-width: 400px;
    }

    /* 모바일에서 대화방 레이아웃 조정 */
    .conversation-item {
        padding: 12px 15px;
    }

    .conversation-avatar {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }

    .conversation-name {
        font-size: 15px;
    }

    .conversation-last-message {
        font-size: 13px;
    }

    .conversation-time {
        font-size: 11px;
    }

    /* 모바일에서 설정 화면 조정 */
    .settings-container {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }

    .settings-section {
        border-radius: 0;
        margin-bottom: 10px;
    }

    .setting-item {
        padding: 12px 15px;
    }

    .setting-info i {
        margin-right: 12px;
    }
}

/* 채팅 메뉴 스타일 */
.chat-menu {
    position: fixed;
    top: auto;
    right: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 99999;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

.chat-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.chat-menu-item:last-child {
    border-bottom: none;
}

.chat-menu-item:hover {
    background: var(--hover-bg);
}

.chat-menu-item i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.chat-menu-item.danger i {
    color: #ff4757;
}

.chat-menu-item .menu-text {
    flex: 1;
}

.chat-menu-item .menu-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.chat-menu-item.danger .menu-title {
    color: #ff4757;
}

.chat-menu-item .menu-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 초대하기 모달 스타일 */
.invite-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.invite-modal-content {
    background: var(--bg-secondary);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.invite-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.invite-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.invite-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.invite-modal-header .close-btn:hover {
    background: var(--hover-bg);
}

.invite-modal-body {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.invite-friend-list {
    padding: 0;
}

.invite-friend-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.invite-friend-item:last-child {
    border-bottom: none;
}

.invite-friend-item:hover {
    background: var(--hover-bg);
}

.invite-friend-item.selected {
    background: rgba(173, 141, 184, 0.1);
}

.invite-friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;
}

.invite-friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invite-friend-info {
    flex: 1;
    min-width: 0;
}

.invite-friend-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.invite-friend-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.invite-friend-checkbox {
    margin-left: 10px;
}

.invite-friend-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.invite-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.invite-modal-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.invite-modal-footer .btn-cancel {
    background: var(--hover-bg);
    color: var(--text-secondary);
}

.invite-modal-footer .btn-cancel:hover {
    background: var(--border-color);
}

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

.invite-modal-footer .btn-invite:hover {
    background: #9b7aa0;
}

.invite-modal-footer .btn-invite:disabled {
    background: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.selected-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-right: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 다크 테마에서 채팅 메뉴 개선 */
[data-theme="dark"] .chat-menu {
    background: #2d2d2d !important;
    border-color: #444444 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .chat-menu-item {
    background: #2d2d2d !important;
    color: #ffffff !important;
    border-bottom-color: #444444 !important;
}

[data-theme="dark"] .chat-menu-item:hover {
    background: #3a3a3a !important;
}

[data-theme="dark"] .chat-menu-item.danger .menu-title {
    color: #ff6b6b !important;
}

[data-theme="dark"] .chat-menu-item.danger i {
    color: #ff6b6b !important;
}

/* 웰컴 메시지 스타일 개선 */
.welcome-message {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f6fc 0%, #f5f2fa 100%);
    text-align: center;
    padding: 40px;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

.welcome-message.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.welcome-content {
    max-width: auto;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #c8a2d1;
}

.welcome-content h2 {
    color: #ad8db8;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

.welcome-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.welcome-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-btn {
    background: #ad8db8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-btn:hover {
    background: #9b7aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(173, 141, 184, 0.3);
}

.welcome-btn i {
    font-size: 1.1rem;
}

/* 대화방이 열렸을 때 웰컴 메시지 숨김 */
/* 웰컴 메시지가 메시지와 함께 표시되도록 허용 */
/* .chat-messages:has(.message) .welcome-message {
    display: none !important;
} */

/* 다크 테마에서 웰컴 메시지 */
[data-theme="dark"] .welcome-message {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
}

[data-theme="dark"] .welcome-content h2 {
    color: #ad8db8;
}

[data-theme="dark"] .welcome-content p {
    color: #cccccc;
}

[data-theme="dark"] .welcome-btn {
    background: #ad8db8;
}

[data-theme="dark"] .welcome-btn:hover {
    background: #9b7aa0;
}

/* 시스템 메시지 스타일 */
.system-message {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    padding: 0 20px;
}

.system-message-content {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(173, 141, 184, 0.1);
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(173, 141, 184, 0.2);
}

.system-message-content i {
    color: #ad8db8;
    font-size: 0.8rem;
}

.system-message-time {
    display: none; /* 시스템 메시지는 시간 표시하지 않음 */
}

/* 다크 테마에서 시스템 메시지 */
[data-theme="dark"] .system-message-content {
    background: rgba(173, 141, 184, 0.15);
    color: #cccccc;
    border-color: rgba(173, 141, 184, 0.3);
}

[data-theme="dark"] .system-message-content i {
    color: #ad8db8;
}

/* 비밀번호 변경 모달 스타일 */
.change-password-modal {
    max-width: 500px;
    margin: 0 auto;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-container input:focus {
    outline: none;
    border-color: #ad8db8;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ad8db8;
}

.password-strength,
.password-match {
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 16px;
}

.password-tips {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ad8db8;
}

.password-tips h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #333;
}

.password-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.password-tips li {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

/* 다크 테마에서 비밀번호 변경 모달 */
[data-theme="dark"] .form-group label {
    color: #cccccc;
}

[data-theme="dark"] .input-container input {
    background: #2d2d2d;
    border-color: #444;
    color: #ffffff;
}

[data-theme="dark"] .input-container input:focus {
    border-color: #ad8db8;
}

[data-theme="dark"] .password-toggle {
    color: #cccccc;
}

[data-theme="dark"] .password-toggle:hover {
    color: #ad8db8;
}

[data-theme="dark"] .password-tips {
    background: #2d2d2d;
    border-left-color: #ad8db8;
}

[data-theme="dark"] .password-tips h4 {
    color: #cccccc;
}

[data-theme="dark"] .password-tips ul {
    color: #aaaaaa;
}

/* 비밀번호 변경 버튼 상태 */
#change-password-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
    color: #666 !important;
}

#change-password-btn:disabled:hover {
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 다크 테마에서 비밀번호 변경 버튼 상태 */
[data-theme="dark"] #change-password-btn:disabled {
    background: #555 !important;
    color: #888 !important;
}

[data-theme="dark"] #change-password-btn:disabled:hover {
    background: #555 !important;
}

/* 친구 초대 모달 스타일 */
.invite-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.invite-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.invite-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invite-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.invite-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}

.invite-modal-header .close-btn:hover {
    background: #f0f0f0;
}

.invite-modal-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.invite-friend-list {
    padding: 0;
}

.invite-friend-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.invite-friend-item:hover {
    background: #f8f9fa;
}

.invite-friend-item.selected {
    background: #e8f4fd;
}

.invite-friend-avatar {
    position: relative;
    margin-right: 15px;
}

.invite-friend-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.invite-friend-info {
    flex: 1;
    min-width: 0;
}

.invite-friend-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.invite-friend-status {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invite-friend-checkbox {
    margin-left: 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.invite-friend-checkbox:hover {
    background-color: rgba(173, 141, 184, 0.1);
}

.invite-friend-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ad8db8;
    cursor: pointer;
    margin: 0;
}

.invite-modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.selected-count {
    font-size: 0.9rem;
    color: #666;
}

.invite-modal-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.invite-modal-footer .btn-cancel {
    background: #e9ecef;
    color: #495057;
}

.invite-modal-footer .btn-cancel:hover {
    background: #dee2e6;
}

.invite-modal-footer .btn-invite {
    background: #ad8db8;
    color: white;
}

.invite-modal-footer .btn-invite:hover {
    background: #9b7aa0;
}

.invite-modal-footer .btn-invite:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* 다크 테마에서 친구 초대 모달 */
[data-theme="dark"] .invite-modal-content {
    background: #2d2d2d;
    border-color: #444444;
}

[data-theme="dark"] .invite-modal-header {
    border-bottom-color: #444444;
}

[data-theme="dark"] .invite-modal-header h3 {
    color: #ffffff;
}

[data-theme="dark"] .invite-friend-item {
    border-bottom-color: #444444;
}

[data-theme="dark"] .invite-friend-item:hover {
    background: #3a3a3a;
}

[data-theme="dark"] .invite-friend-item.selected {
    background: #1e3a5f;
}

[data-theme="dark"] .invite-friend-name {
    color: #ffffff;
}

[data-theme="dark"] .invite-friend-status {
    color: #cccccc;
}

[data-theme="dark"] .invite-modal-footer {
    background: #3a3a3a;
    border-top-color: #444444;
}

[data-theme="dark"] .selected-count {
    color: #cccccc;
}

/* 배경색 선택기 스타일 */
.background-color-picker {
    padding: 20px;
}

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

.color-picker-header h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.color-picker-header p {
    color: #666;
    font-size: 0.9rem;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.color-option:hover {
    border-color: #ad8db8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(173, 141, 184, 0.2);
}

.color-option.selected {
    border-color: #ad8db8;
    background: #f8f6fc;
    box-shadow: 0 4px 12px rgba(173, 141, 184, 0.3);
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.color-preview.default {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
}

.color-preview.default::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-weight: bold;
    font-size: 14px;
}

.color-option.selected .color-preview {
    border-color: #ad8db8;
    transform: scale(1.1);
}

.color-option span {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.current-selection {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.current-selection span {
    color: #666;
    font-size: 0.9rem;
}

#current-color-name {
    font-weight: 600;
    color: #ad8db8;
}

/* 다크 테마에서 배경색 선택기 */
[data-theme="dark"] .color-picker-header h4 {
    color: #ffffff;
}

[data-theme="dark"] .color-picker-header p {
    color: #cccccc;
}

[data-theme="dark"] .color-option {
    background: #2d2d2d;
    border-color: #444444;
}

[data-theme="dark"] .color-option:hover {
    border-color: #ad8db8;
    background: #3a3a3a;
}

[data-theme="dark"] .color-option.selected {
    background: #1e3a5f;
    border-color: #ad8db8;
}

[data-theme="dark"] .color-option span {
    color: #ffffff;
}

[data-theme="dark"] .current-selection {
    background: #3a3a3a;
    border-color: #444444;
}

[data-theme="dark"] .current-selection span {
    color: #cccccc;
}

/* 채팅 메시지 영역에 커스텀 배경색 적용 */
.chat-messages.custom-background {
    transition: background-color 0.3s ease;
}

/* 배경색 선택기 모달 크기 조정 */
.modal-content .background-color-picker {
    max-width: 500px;
    margin: 0 auto;
}

/* 대화방 정보 모달 스타일 */
.conversation-info {
    max-width: 600px;
    margin: 0 auto;
}

.conversation-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f6fc 0%, #f5f2fa 100%);
    border-radius: 12px;
    margin-bottom: 25px;
}

.conversation-icon {
    width: 60px;
    height: 60px;
    background: #ad8db8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 24px;
}

.conversation-details h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.4rem;
}

.conversation-type {
    margin: 0 0 4px 0;
    color: #666;
    font-size: 0.9rem;
}

.participant-count {
    margin: 0;
    color: #ad8db8;
    font-weight: 600;
    font-size: 0.9rem;
}

.conversation-settings {
    margin-bottom: 25px;
}

.conversation-settings h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    color: #666;
    font-weight: 500;
}

.setting-value {
    color: #333;
    font-weight: 600;
}

.participants-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.participants-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.participant-item:last-child {
    border-bottom: none;
}

.participant-item:hover {
    background-color: #f8f9fa;
}

.participant-item.me {
    background-color: #f8f6fc;
    border-left: 3px solid #ad8db8;
}

.participant-avatar {
    position: relative;
    margin-right: 15px;
}

.participant-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.online-status.online {
    background-color: #28a745;
}

.online-status.offline {
    background-color: #6c757d;
}

.participant-info {
    flex: 1;
}

.participant-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
}

.me-badge {
    background: #ad8db8;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.participant-status {
    margin-bottom: 4px;
}

.online-text {
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 500;
}

.offline-text {
    color: #6c757d;
    font-size: 0.85rem;
}

.participant-role {
    margin-top: 4px;
}

.role-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-badge.owner {
    background: #dc3545;
    color: white;
}

.role-badge.admin {
    background: #fd7e14;
    color: white;
}

.role-badge.member {
    background: #6c757d;
    color: white;
}

.participant-joined {
    text-align: right;
}

.joined-date {
    color: #666;
    font-size: 0.8rem;
}

/* 다크 테마에서 대화방 정보 */
[data-theme="dark"] .conversation-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
}

[data-theme="dark"] .conversation-details h3 {
    color: #ffffff;
}

[data-theme="dark"] .conversation-type {
    color: #cccccc;
}

[data-theme="dark"] .participant-count {
    color: #ad8db8;
}

[data-theme="dark"] .conversation-settings h4,
[data-theme="dark"] .participants-section h4 {
    color: #ffffff;
}

[data-theme="dark"] .setting-item {
    border-bottom-color: #444444;
}

[data-theme="dark"] .setting-label {
    color: #cccccc;
}

[data-theme="dark"] .setting-value {
    color: #ffffff;
}

[data-theme="dark"] .participants-list {
    background: #2d2d2d;
    border-color: #444444;
}

[data-theme="dark"] .participant-item {
    border-bottom-color: #444444;
}

[data-theme="dark"] .participant-item:hover {
    background-color: #3a3a3a;
}

[data-theme="dark"] .participant-item.me {
    background-color: #1e3a5f;
    border-left-color: #ad8db8;
}

[data-theme="dark"] .participant-name {
    color: #ffffff;
}

[data-theme="dark"] .offline-text {
    color: #999999;
}

[data-theme="dark"] .joined-date {
    color: #999999;
}

/* 채팅 탭 스타일 */
.chat-tabs {
    padding: 0 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.tab-buttons {
    display: flex;
    gap: 0;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-button:hover {
    background: rgba(173, 141, 184, 0.1);
    color: #ad8db8;
}

.tab-button.active {
    color: #ad8db8;
    border-bottom-color: #ad8db8;
    background: rgba(173, 141, 184, 0.1);
}

.tab-button i {
    font-size: 0.8rem;
}

/* 채팅 검색 스타일 */
.chat-search {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 0.9rem;
    z-index: 1;
}

#chat-search-input {
    width: 100%;
    padding: 10px 12px 10px 35px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

#chat-search-input:focus {
    outline: none;
    border-color: #ad8db8;
    background: white;
    box-shadow: 0 0 0 2px rgba(173, 141, 184, 0.2);
}

.clear-search {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: #999;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #666;
}

/* 방 유형 선택 스타일 */
.room-type-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.room-type-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-type-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.room-type-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.room-type-option:hover {
    border-color: #ad8db8;
    background: rgba(173, 141, 184, 0.05);
}

.room-type-option input[type="radio"] {
    display: none;
}

.room-type-option input[type="radio"]:checked + .option-content {
    color: #ad8db8;
}

.room-type-option:has(input[type="radio"]:checked) {
    border-color: #ad8db8;
    background: rgba(173, 141, 184, 0.1);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.option-content i {
    font-size: 1.2rem;
    color: #ad8db8;
}

.option-text {
    flex: 1;
}

.option-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.option-description {
    font-size: 0.85rem;
    color: #666;
}

/* 빈 상태 스타일 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 10px;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* 다크 테마에서 채팅 탭 */
[data-theme="dark"] .chat-tabs {
    background: #2d2d2d;
    border-bottom-color: #444444;
}

[data-theme="dark"] .tab-button {
    color: #cccccc;
}

[data-theme="dark"] .tab-button:hover {
    background: rgba(173, 141, 184, 0.2);
    color: #ad8db8;
}

[data-theme="dark"] .tab-button.active {
    color: #ad8db8;
    border-bottom-color: #ad8db8;
    background: rgba(173, 141, 184, 0.2);
}

[data-theme="dark"] .chat-search {
    background: #2d2d2d;
    border-bottom-color: #444444;
}

[data-theme="dark"] #chat-search-input {
    background: #3a3a3a;
    border-color: #444444;
    color: #ffffff;
}

[data-theme="dark"] #chat-search-input:focus {
    background: #2d2d2d;
    border-color: #ad8db8;
}

[data-theme="dark"] .search-icon {
    color: #999999;
}

[data-theme="dark"] .room-type-section {
    border-top-color: #444444;
}

[data-theme="dark"] .room-type-section h4 {
    color: #ffffff;
}

[data-theme="dark"] .room-type-option {
    background: #2d2d2d;
    border-color: #444444;
}

[data-theme="dark"] .room-type-option:hover {
    background: rgba(173, 141, 184, 0.1);
}

[data-theme="dark"] .room-type-option:has(input[type="radio"]:checked) {
    background: rgba(173, 141, 184, 0.2);
}

[data-theme="dark"] .option-title {
    color: #ffffff;
}

[data-theme="dark"] .option-description {
    color: #cccccc;
}

[data-theme="dark"] .empty-state {
    color: #cccccc;
}

[data-theme="dark"] .empty-state i {
    color: #666666;
}

/* 방 인원수 선택 스타일 */
.room-capacity-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.room-capacity-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.capacity-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.capacity-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.capacity-option:hover {
    border-color: #ad8db8;
    background: rgba(173, 141, 184, 0.05);
}

.capacity-option input[type="radio"] {
    display: none;
}

.capacity-option:has(input[type="radio"]:checked) {
    border-color: #ad8db8;
    background: rgba(173, 141, 184, 0.1);
    color: #ad8db8;
}

.capacity-option span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* 친구 없음 알림 스타일 */
.no-friends-notice {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.no-friends-notice i {
    color: #ad8db8;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-friends-notice p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* 다크 테마에서 방 인원수 선택 */
[data-theme="dark"] .room-capacity-section {
    border-top-color: #444444;
}

[data-theme="dark"] .room-capacity-section h4 {
    color: #ffffff;
}

[data-theme="dark"] .capacity-option {
    background: #2d2d2d;
    border-color: #444444;
    color: #cccccc;
}

[data-theme="dark"] .capacity-option:hover {
    background: rgba(173, 141, 184, 0.1);
}

[data-theme="dark"] .capacity-option:has(input[type="radio"]:checked) {
    background: rgba(173, 141, 184, 0.2);
    color: #ad8db8;
}

[data-theme="dark"] .no-friends-notice {
    background: #3a3a3a;
}

[data-theme="dark"] .no-friends-notice p {
    color: #cccccc;
}

/* 방 만들기 모달 스타일 */
.create-room-modal {
    max-width: 500px;
    margin: 0 auto;
}

.room-info-section {
    padding: 20px;
}

.room-info-section .input-group {
    margin-bottom: 20px;
}

/* 아이콘 스타일 제거됨 */

.room-info-section .input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.room-info-section .input-group input:focus {
    outline: none;
    border-color: #ad8db8;
    box-shadow: 0 0 0 2px rgba(173, 141, 184, 0.2);
}

.room-type-section,
.room-capacity-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.room-type-section h4,
.room-capacity-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-type-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.room-type-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.room-type-option:hover {
    border-color: #ad8db8;
    background: rgba(173, 141, 184, 0.05);
}

.room-type-option input[type="radio"] {
    display: none;
}

.room-type-option:has(input[type="radio"]:checked) {
    border-color: #ad8db8;
    background: rgba(173, 141, 184, 0.1);
}

.room-type-option .option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.room-type-option .option-content i {
    font-size: 1.2rem;
    color: #ad8db8;
}

.room-type-option .option-text {
    flex: 1;
}

.room-type-option .option-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.room-type-option .option-description {
    font-size: 0.85rem;
    color: #666;
}

.capacity-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.capacity-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.capacity-option:hover {
    border-color: #ad8db8;
    background: rgba(173, 141, 184, 0.05);
}

.capacity-option input[type="radio"] {
    display: none;
}

.capacity-option:has(input[type="radio"]:checked) {
    border-color: #ad8db8;
    background: rgba(173, 141, 184, 0.1);
    color: #ad8db8;
}

.capacity-option span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* 다크 테마에서 방 만들기 모달 */
[data-theme="dark"] .room-info-section .input-group input {
    background: #2d2d2d;
    border-color: #444444;
    color: #ffffff;
}

[data-theme="dark"] .room-info-section .input-group input:focus {
    border-color: #ad8db8;
    background: #3a3a3a;
}

[data-theme="dark"] .room-type-section,
[data-theme="dark"] .room-capacity-section {
    border-top-color: #444444;
}

[data-theme="dark"] .room-type-section h4,
[data-theme="dark"] .room-capacity-section h4 {
    color: #ffffff;
}

[data-theme="dark"] .room-type-option {
    background: #2d2d2d;
    border-color: #444444;
}

[data-theme="dark"] .room-type-option:hover {
    background: rgba(173, 141, 184, 0.1);
}

[data-theme="dark"] .room-type-option:has(input[type="radio"]:checked) {
    background: rgba(173, 141, 184, 0.2);
}

[data-theme="dark"] .room-type-option .option-title {
    color: #ffffff;
}

[data-theme="dark"] .room-type-option .option-description {
    color: #cccccc;
}

[data-theme="dark"] .capacity-option {
    background: #2d2d2d;
    border-color: #444444;
    color: #cccccc;
}

[data-theme="dark"] .capacity-option:hover {
    background: rgba(173, 141, 184, 0.1);
}

[data-theme="dark"] .capacity-option:has(input[type="radio"]:checked) {
    background: rgba(173, 141, 184, 0.2);
    color: #ad8db8;
}

/* 공개 채팅방 스타일 */
.public-room-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.public-room-item:hover {
    border-color: #ad8db8;
    background: rgba(173, 141, 184, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(173, 141, 184, 0.2);
}

.public-room-item .conversation-avatar {
    background: linear-gradient(135deg, #ad8db8, #8b5a96);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.public-room-item .conversation-info {
    flex: 1;
}

.public-room-item .conversation-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.public-room-item .conversation-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #666;
}

.public-room-item .participant-count {
    color: #ad8db8;
    font-weight: 500;
}

.public-room-item .created-by {
    color: #888;
}

.public-room-item .conversation-last-message {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.public-room-item .conversation-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-room-item .join-button {
    background: #ad8db8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.public-room-item .join-button:hover {
    background: #8b5a96;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(173, 141, 184, 0.3);
}

.public-room-item .joined-badge {
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 다크 테마에서 공개 채팅방 */
[data-theme="dark"] .public-room-item {
    border-color: #444444;
    background: #2d2d2d;
}

[data-theme="dark"] .public-room-item:hover {
    border-color: #ad8db8;
    background: rgba(173, 141, 184, 0.1);
}

/* 유튜브 스타일 이모지 피커 */
.youtube-emoji-picker {
    width: 100%;
    max-width: 480px;
    max-height: 500px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 검색 바 */
.emoji-search-bar {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.emoji-search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 24px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.emoji-search-container:focus-within {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.emoji-search-icon {
    color: #666;
    margin-right: 8px;
    font-size: 14px;
}

#emoji-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 4px 0;
    background: transparent;
}

.clear-emoji-search {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-emoji-search:hover {
    background: #f0f0f0;
    color: #333;
}

/* 선택된 이모지 섹션 */
.selected-emojis-section {
    padding: 16px; /* 패딩 증가 */
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    min-height: 80px; /* 최소 높이 증가 */
    max-height: 140px; /* 최대 높이 설정 */
    overflow-y: auto; /* 세로 스크롤 추가 */
}

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

.selected-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.selected-count {
    font-size: 12px;
    color: #666;
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 12px;
}

.selected-emojis-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* 간격 증가 */
    min-height: 32px; /* 최소 높이 증가 */
    padding: 4px 0; /* 상하 패딩 추가 */
    align-items: flex-start; /* 상단 정렬 */
}

.selected-emoji {
    display: inline-flex;
    align-items: center;
    background: #1976d2;
    color: white;
    padding: 6px 10px; /* 패딩 증가 */
    border-radius: 18px; /* 둥근 모서리 증가 */
    font-size: 16px; /* 폰트 크기 증가 */
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeInScale 0.3s ease;
    min-height: 32px; /* 최소 높이 보장 */
    line-height: 1.2; /* 라인 높이 조정 */
}

.selected-emoji:hover {
    background: #1565c0;
    transform: scale(1.05);
}

.remove-emoji {
    margin-left: 8px; /* 간격 증가 */
    font-size: 14px; /* 폰트 크기 증가 */
    opacity: 0.8;
    transition: opacity 0.2s ease;
    padding: 2px; /* 터치 영역 확대 */
    border-radius: 50%; /* 원형 버튼 */
    cursor: pointer;
}

.selected-emoji:hover .remove-emoji {
    opacity: 1;
}

.empty-selection {
    color: #999;
    font-size: 13px;
    font-style: italic;
}

/* 카테고리 탭 */
.emoji-category-tabs {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    overflow-y: visible; /* 세로 오버플로우 허용 */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
    padding: 8px 0; /* 상하 패딩 추가 */
    min-height: 70px; /* 최소 높이 보장 */
}

.emoji-category-tabs::-webkit-scrollbar {
    height: 6px;
}

.emoji-category-tabs::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.emoji-category-tabs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.emoji-category-tabs::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px 12px 6px; /* 하단 패딩 증가 */
    min-width: 50px;
    flex-shrink: 0; /* 탭이 줄어들지 않도록 */
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    height: auto; /* 높이 자동 조정 */
}

.category-tab:hover {
    background: #f5f5f5;
}

.category-tab.active {
    background: #f0f7ff;
    border-bottom-color: #1976d2;
}

.category-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.category-tab:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 9px;
    color: #666;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    max-width: 50px;
    overflow: visible; /* 오버플로우 허용 */
    text-overflow: clip; /* ellipsis 대신 clip 사용 */
    margin-top: 2px; /* 아이콘과 텍스트 간격 */
    word-break: keep-all; /* 단어 단위로 줄바꿈 */
}

.category-tab.active .category-name {
    color: #1976d2;
    font-weight: 600;
}

/* 이모지 콘텐츠 영역 */
.emoji-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #ffffff;
    margin-top: 8px; /* 카테고리 탭과의 간격 */
    /* 커스텀 스크롤바 */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.emoji-content::-webkit-scrollbar {
    width: 8px;
}

.emoji-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.emoji-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.emoji-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    /* max-height와 overflow-y 제거 - 부모 컨테이너에서 스크롤 처리 */
}

.emoji-btn {
    width: 42px;
    height: 42px;
    border: 2px solid transparent;
    background: #ffffff;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.emoji-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
    border-color: #e0e0e0;
}

.emoji-btn.selected {
    background: #e3f2fd;
    border-color: #1976d2;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.emoji-btn.selected::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #1976d2;
    color: white;
    font-size: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 검색 결과 없음 */
.no-emoji-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* 애니메이션 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 다크 테마에서 유튜브 스타일 이모지 피커 */
[data-theme="dark"] .youtube-emoji-picker {
    background: #2d2d2d;
}

[data-theme="dark"] .emoji-search-bar {
    background: #1a1a1a;
    border-bottom-color: #444444;
}

[data-theme="dark"] .emoji-search-container {
    background: #2d2d2d;
    border-color: #555555;
}

[data-theme="dark"] .emoji-search-container:focus-within {
    border-color: #1976d2;
}

[data-theme="dark"] #emoji-search-input {
    color: #ffffff;
}

[data-theme="dark"] .emoji-search-icon {
    color: #cccccc;
}

[data-theme="dark"] .clear-emoji-search {
    color: #cccccc;
}

[data-theme="dark"] .clear-emoji-search:hover {
    background: #3a3a3a;
    color: #ffffff;
}

[data-theme="dark"] .selected-emojis-section {
    background: #1a1a1a;
    border-bottom-color: #444444;
}

[data-theme="dark"] .selected-header h4 {
    color: #ffffff;
}

[data-theme="dark"] .selected-count {
    background: #444444;
    color: #cccccc;
}

[data-theme="dark"] .empty-selection {
    color: #888888;
}

[data-theme="dark"] .emoji-category-tabs {
    background: #2d2d2d;
    border-bottom-color: #444444;
    scrollbar-color: #555 #3a3a3a;
    padding: 8px 0;
    min-height: 60px;
}

[data-theme="dark"] .emoji-category-tabs::-webkit-scrollbar-track {
    background: #3a3a3a;
}

[data-theme="dark"] .emoji-category-tabs::-webkit-scrollbar-thumb {
    background: #555;
}

[data-theme="dark"] .emoji-category-tabs::-webkit-scrollbar-thumb:hover {
    background: #777;
}

[data-theme="dark"] .category-tab:hover {
    background: #3a3a3a;
}

[data-theme="dark"] .category-tab.active {
    background: #1e3a5f;
}

[data-theme="dark"] .category-name {
    color: #cccccc;
}

[data-theme="dark"] .category-tab.active .category-name {
    color: #1976d2;
}

[data-theme="dark"] .emoji-content {
    background: #2d2d2d;
    scrollbar-color: #555 #3a3a3a;
}

[data-theme="dark"] .emoji-content::-webkit-scrollbar-track {
    background: #3a3a3a;
}

[data-theme="dark"] .emoji-content::-webkit-scrollbar-thumb {
    background: #555;
}

[data-theme="dark"] .emoji-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

[data-theme="dark"] .emoji-btn {
    background: #2d2d2d;
}

[data-theme="dark"] .emoji-btn:hover {
    background: #3a3a3a;
    border-color: #555555;
}

[data-theme="dark"] .emoji-btn.selected {
    background: #1e3a5f;
    border-color: #1976d2;
}

[data-theme="dark"] .no-emoji-results {
    color: #888888;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .youtube-emoji-picker {
        max-width: 100%;
        height: 80vh;
    }

    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
        /* max-height 제거 - 부모에서 스크롤 처리 */
    }

    .emoji-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .category-tab {
        min-width: 45px;
        padding: 6px 4px 10px 4px; /* 하단 패딩 증가 */
    }

    .category-icon {
        font-size: 16px;
    }

    .category-name {
        font-size: 8px;
        max-width: 45px;
        margin-top: 2px;
        line-height: 1.2;
    }

    .emoji-category-tabs {
        min-height: 55px; /* 모바일에서 최소 높이 */
        padding: 6px 0;
    }

    /* 모바일에서 선택된 이모지 섹션 개선 */
    .selected-emojis-section {
        padding: 12px;
        min-height: 70px;
        max-height: 120px;
    }

    .selected-emojis-display {
        gap: 6px;
        min-height: 28px;
    }

    .selected-emoji {
        padding: 4px 8px;
        font-size: 14px;
        min-height: 28px;
    }

    .remove-emoji {
        margin-left: 6px;
        font-size: 12px;
    }
}

/* 기존 멀티 선택 이모지 피커 스타일 (하위 호환성) */
.emoji-picker {
    max-width: 500px;
    max-height: 400px;
    overflow-y: auto;
}

.selected-emojis {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.selected-emojis h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
    font-weight: 600;
}

.selected-emojis-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 간격 증가 */
    min-height: 40px; /* 최소 높이 증가 */
    padding: 4px 0; /* 상하 패딩 추가 */
    align-items: flex-start; /* 상단 정렬 */
}

/* 다크 테마에서 이모지 피커 */
[data-theme="dark"] .selected-emojis {
    background: #2d2d2d;
    border-color: #444444;
}

[data-theme="dark"] .selected-emojis h4 {
    color: #e9ecef;
}

[data-theme="dark"] .emoji-btn {
    background: #2d2d2d;
    border-color: #444444;
    color: #e9ecef;
}

[data-theme="dark"] .emoji-btn:hover {
    background: #3d3d3d;
    border-color: #007bff;
}

[data-theme="dark"] .emoji-btn.selected {
    background: #007bff;
    border-color: #0056b3;
    color: white;
}

/* 대화방 정보 표시 스타일 */
.room-title {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
    font-weight: 500;
}

.participant-names {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
    font-weight: 500;
    line-height: 1.4;
}

/* 다크 테마에서 대화방 정보 */
[data-theme="dark"] .room-title {
    color: #ccc;
}

[data-theme="dark"] .participant-names {
    color: #e9ecef;
}

/* 방 삭제 버튼 스타일 */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

[data-theme="dark"] .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

[data-theme="dark"] .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 글꼴 크기 설정 */
.font-small {
    font-size: 12px;
}

/* 대화방 메시지 글꼴 크기 */
.font-small .message-content {
    font-size: 12px !important;
}

.font-small .message-text {
    font-size: 12px !important;
}

.font-small .message-bubble {
    font-size: 12px !important;
}

.font-small .conversation-name {
    font-size: 13px;
}

.font-small .conversation-last-message {
    font-size: 11px;
}

.font-medium {
    font-size: 14px;
}

.font-medium .message-content {
    font-size: 14px !important;
}

.font-medium .message-text {
    font-size: 14px !important;
}

.font-medium .message-bubble {
    font-size: 14px !important;
}

.font-medium .conversation-name {
    font-size: 15px;
}

.font-medium .conversation-last-message {
    font-size: 13px;
}

.font-large {
    font-size: 16px;
}

.font-large .message-content {
    font-size: 16px !important;
}

.font-large .message-text {
    font-size: 16px !important;
}

.font-large .message-bubble {
    font-size: 16px !important;
}

.font-large .conversation-name {
    font-size: 17px;
}

.font-large .conversation-last-message {
    font-size: 15px;
}

/* 대화방 메시지 세부 글꼴 크기 */
.font-small .message-bubble {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.font-small .message-time {
    font-size: 10px !important;
}

.font-small .message-sender {
    font-size: 11px !important;
}

.font-medium .message-bubble {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.font-medium .message-time {
    font-size: 11px !important;
}

.font-medium .message-sender {
    font-size: 12px !important;
}

.font-large .message-bubble {
    font-size: 16px !important;
    line-height: 1.4 !important;
}

.font-large .message-time {
    font-size: 12px !important;
}

.font-large .message-sender {
    font-size: 13px !important;
}

/* 다크 테마에서 글꼴 크기 */
[data-theme="dark"] .font-small {
    font-size: 12px;
}

[data-theme="dark"] .font-small .message-bubble {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

[data-theme="dark"] .font-small .message-time {
    font-size: 10px !important;
}

[data-theme="dark"] .font-small .message-sender {
    font-size: 11px !important;
}

[data-theme="dark"] .font-medium {
    font-size: 14px;
}

[data-theme="dark"] .font-medium .message-bubble {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

[data-theme="dark"] .font-medium .message-time {
    font-size: 11px !important;
}

[data-theme="dark"] .font-medium .message-sender {
    font-size: 12px !important;
}

[data-theme="dark"] .font-large {
    font-size: 16px;
}

[data-theme="dark"] .font-large .message-bubble {
    font-size: 16px !important;
    line-height: 1.4 !important;
}

[data-theme="dark"] .font-large .message-time {
    font-size: 12px !important;
}

[data-theme="dark"] .font-large .message-sender {
    font-size: 13px !important;
}

[data-theme="dark"] .public-room-item .conversation-name {
    color: #ffffff;
}

[data-theme="dark"] .public-room-item .conversation-meta {
    color: #cccccc;
}

[data-theme="dark"] .public-room-item .conversation-last-message {
    color: #cccccc;
}

/* 다크 테마에서 선택된 대화방 아이템 */
[data-theme="dark"] .conversation-item.active {
    background: #ad8db8;
    color: #333;
}

[data-theme="dark"] .conversation-item.active .conversation-name {
    color: #333;
}

[data-theme="dark"] .conversation-item.active .conversation-meta {
    color: #666;
}

[data-theme="dark"] .conversation-item.active .conversation-last-message {
    color: #666;
}

/* 빈 상태 힌트 스타일 */
.empty-hint {
    font-size: 0.9rem;
    color: #888;
    margin-top: 8px;
    line-height: 1.4;
}

[data-theme="dark"] .empty-hint {
    color: #aaa;
}

/* 약관/정책 리스트 스타일 */
.customer-policy-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.customer-policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    border-radius: 8px 8px 0 0;
}

.customer-policy-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.customer-policy-header h2 i {
    color: #ad8db8;
    margin-right: 10px;
}

.customer-policy-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.policy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.policy-item .policy-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.policy-item i.fa-file-lines, .policy-item i.fa-lock {
    font-size: 18px;
    color: #6b6b6b;
}

.policy-item .policy-title {
    font-weight: 600;
}

.policy-item .policy-meta {
    font-size: 12px;
    color: #888;
}

/* 본문 뷰어 */
.policy-viewer {
    max-height: 70vh;
    overflow: auto;
}

.policy-viewer-header h4 {
    margin: 0 0 6px;
}

.policy-viewer-body {
    line-height: 1.65;
    color: #333;
}

.policy-viewer-body h2, .policy-viewer-body h3 {
    margin-top: 1.25em;
}

.policy-viewer-body p {
    margin: 0.6em 0;
}