/**
 * 프리미엄 채팅 플랫폼 - 스타일시트
 * 엔터프라이즈급 디자인
 */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* 메인 컨테이너 */
.chat-container {
    display: flex;
    height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
    background: var(--bg-primary);
    box-shadow: var(--shadow-xl);
}

/* 사이드바 */
.sidebar {
    width: 350px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 14px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.nickname {
    font-size: 14px;
    font-weight: 500;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    color: inherit;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sidebar-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--secondary-color);
}

.room-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.room-list-container h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

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

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.room-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

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

.room-item-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.room-item-content p {
    font-size: 12px;
    color: var(--text-muted);
}

.room-item.active .room-item-content p {
    color: rgba(255, 255, 255, 0.8);
}

.unread-badge {
    background: var(--error-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 메인 콘텐츠 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.welcome-message {
    text-align: center;
    padding: 40px;
}

.welcome-message h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.welcome-message p {
    font-size: 16px;
    color: var(--text-secondary);
}

.chat-screen {
    display: none;
    flex-direction: row;
    height: 100vh;
    position: relative;
    transition: all 0.3s;
}

/* 드래그 오버 효과 */
.chat-screen.drag-over::before {
    content: '📁 이미지를 여기에 놓으세요';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(79, 70, 229, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    z-index: 1000;
    pointer-events: none;
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.chat-header {
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

.room-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.room-info h2.editing {
    background: var(--bg-tertiary);
    outline: 2px solid var(--primary-color);
}

.room-participants {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: 20px;
}

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

.room-notice {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #fbbf24;
    font-size: 14px;
}

.notice-icon {
    font-size: 18px;
}

.notice-text {
    flex: 1;
    color: var(--text-primary);
}

/* 채팅 메시지 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f9fafb;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    max-width: 70%;
    animation: slideIn 0.3s ease;
}

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

.message.own-message {
    align-self: flex-end;
    align-items: flex-end;
}

.message-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
}

.message-author {
    font-weight: 600;
    color: var(--primary-color);
}

.message-time {
    color: var(--text-muted);
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    word-wrap: break-word;
}

.own-message .message-content {
    background: var(--primary-color);
    color: white;
}

.message-content p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

/* 메시지 내 링크 */
.message-link {
    color: #3B82F6;
    text-decoration: underline;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.2s;
}

.message-link:hover {
    color: #2563EB;
    text-decoration: none;
}

.own-message .message-link {
    color: #BFDBFE;
}

.own-message .message-link:hover {
    color: white;
}

.message-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.message-image:hover {
    transform: scale(1.02);
}

/* 메시지 반응 */
.message-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 24px;
}

.reaction-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reaction-badge:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.reaction-badge.reacted {
    background: #e0e7ff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.reaction-picker {
    display: none; /* 기본적으로 숨김 - 길게 눌러서 메뉴로 접근 */
}

.reaction-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

/* 이미지 미리보기 */
.image-preview {
    display: none;
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.preview-header button {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

#preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* 다중 이미지 미리보기 그리드 */
.preview-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.preview-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
}

.preview-remove-btn:hover {
    background: var(--error-color);
    transform: scale(1.1);
}

/* 메시지 내 이미지 갤러리 */
/* 이미지 묶음 썸네일 그리드 (모든 이미지 표시) */
.message-image-gallery {
    display: grid;
    gap: 3px;
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    max-width: 450px;
}

.message-image-gallery:hover {
    opacity: 0.95;
}

/* 1장: 큰 이미지 */
.message-image-gallery.count-1 {
    grid-template-columns: 1fr;
}

.message-image-gallery.count-1 .message-image {
    height: 250px;
}

/* 2장: 2열 */
.message-image-gallery.count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.message-image-gallery.count-2 .message-image {
    height: 150px;
}

/* 3장: 2열 (첫 이미지가 전체 너비) */
.message-image-gallery.count-3 {
    grid-template-columns: repeat(2, 1fr);
}

.message-image-gallery.count-3 .message-image {
    height: 120px;
}

.message-image-gallery.count-3 .message-image:first-child {
    grid-column: 1 / -1;
    height: 180px;
}

/* 4장: 2x2 그리드 */
.message-image-gallery.count-4 {
    grid-template-columns: repeat(2, 1fr);
}

.message-image-gallery.count-4 .message-image {
    height: 120px;
}

/* 5-6장: 3열 */
.message-image-gallery.count-6 {
    grid-template-columns: repeat(3, 1fr);
}

.message-image-gallery.count-6 .message-image {
    height: 100px;
}

/* 7-9장: 3열 */
.message-image-gallery.count-9 {
    grid-template-columns: repeat(3, 1fr);
}

.message-image-gallery.count-9 .message-image {
    height: 90px;
}

/* 10장 이상: 4열 작은 썸네일 */
.message-image-gallery.many {
    grid-template-columns: repeat(4, 1fr);
}

.message-image-gallery.many .message-image {
    height: 80px;
}

.message-image {
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 4px;
}

.message-image:hover {
    transform: scale(1.05);
    z-index: 1;
}

/* 이미지 갤러리 모달 */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-modal.show {
    display: flex;
}

.gallery-modal-content {
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background: #1f2937;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-header {
    padding: 16px 24px;
    background: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
}

.gallery-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.gallery-actions {
    display: flex;
    gap: 12px;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-btn-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
}

.gallery-viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-main-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 36px;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

.gallery-thumbnails {
    padding: 16px;
    background: #111827;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-height: 120px;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumbnail:hover {
    opacity: 0.8;
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* 동영상 플레이어 */
.message-video {
    position: relative;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-top: 8px;
}

.message-video video {
    width: 100%;
    display: block;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 300px;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(79, 70, 229, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    transition: all 0.2s;
}

.video-placeholder:hover .video-play-btn {
    background: rgba(79, 70, 229, 1);
    transform: scale(1.1);
}

.video-info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
}

/* 메시지 입력 */
.message-input-container {
    padding: 20px 24px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#message-input {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    outline: none;
    min-height: 24px;
    max-height: 150px;
}

#message-input::placeholder {
    color: var(--text-muted);
}

.btn-send {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

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

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
    width: 18px;
    height: 18px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.invite-link-container {
    display: flex;
    gap: 12px;
}

.invite-link-container input {
    flex: 1;
}

/* 알림 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--error-color);
}

.notification-info {
    border-left: 4px solid var(--primary-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 모바일 전용 요소 */
.mobile-only {
    display: none;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--bg-tertiary);
}

/* 참여자 사이드바 */
.participants-sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 10;
}

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

.participants-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.participants-header span {
    color: var(--text-muted);
    font-size: 14px;
}

.btn-close-sidebar {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--text-secondary);
}

.participants-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.participant-item:hover {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.participant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.participant-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.participant-status.online {
    background: #10b981;
}

.participant-status.away {
    background: #f59e0b;
}

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

.participant-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-status-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* 타이핑 표시 */
.typing-indicator {
    padding: 12px 16px;
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #92400e;
}

.typing-text {
    font-weight: 500;
}

.typing-dots {
    display: inline-flex;
    gap: 3px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: #f59e0b;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* 모바일 참여자 버튼 */
.btn-participants {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 50;
    gap: 6px;
    align-items: center;
}

.btn-participants span {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 14px;
}

/* 반응형 - 모바일 최적화 */
@media (max-width: 768px) {
    .mobile-only {
        display: inline-block;
    }

    body {
        overflow: hidden;
        font-size: 14px;
    }

    .chat-container {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
    }

    .sidebar {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
    }

    .sidebar.hidden {
        display: none;
    }

    .sidebar-header {
        padding: 14px 16px;
    }

    .logo {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .user-info {
        padding: 8px 12px;
    }

    .nickname {
        font-size: 13px;
    }

    .chat-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        z-index: 100;
        background: var(--bg-primary);
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .chat-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    /* 모바일 참여자 사이드바 */
    .participants-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        z-index: 200;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-xl);
    }

    .participants-sidebar.open {
        right: 0;
    }

    .btn-participants {
        display: flex !important;
    }

    .typing-indicator {
        padding: 8px 12px;
        font-size: 12px;
    }

    .welcome-screen {
        padding: 20px;
        text-align: center;
    }

    .welcome-screen h2 {
        font-size: 22px;
    }

    .chat-header {
        padding: 10px 12px;
        flex-wrap: nowrap;
        flex-shrink: 0;
        background: white;
        border-bottom: 2px solid #e5e7eb;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .btn-back {
        padding: 6px 10px;
        font-size: 14px;
        margin-right: 6px;
        white-space: nowrap;
    }

    .room-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .room-info h2 {
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin: 0;
    }

    .room-participants {
        font-size: 11px;
        color: #6b7280;
    }

    .room-actions {
        gap: 2px;
        display: flex;
    }

    .room-actions .btn-icon {
        padding: 8px;
        font-size: 16px;
        min-width: 36px;
        min-height: 36px;
    }

    #edit-room-name {
        display: none !important; /* 모바일에서 방 이름 수정 숨김 */
    }

    .room-notice {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 12px;
    }

    .notice-text {
        font-size: 12px;
    }

    .chat-messages {
        padding: 10px;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
        background: #f9fafb;
    }

    .message {
        max-width: 75%;
        margin-bottom: 10px;
        animation: none;
    }

    .message-header {
        font-size: 11px;
        margin-bottom: 3px;
        gap: 6px;
    }

    .message-author {
        font-size: 12px;
        font-weight: 700;
    }

    .message-time {
        font-size: 10px;
    }

    .message-content {
        font-size: 14px;
        padding: 9px 12px;
        line-height: 1.5;
        border-radius: 16px;
    }

    .message-content p {
        font-size: 14px;
        margin: 0;
    }

    .message-image {
        max-height: 250px;
        border-radius: 12px;
    }

    .message-reactions {
        margin-top: 3px;
        gap: 4px;
    }

    .reaction-badge {
        font-size: 12px;
        padding: 2px 7px;
        border-radius: 10px;
    }

    .reaction-picker {
        display: none; /* 모바일에서도 숨김 */
    }

    .reaction-btn {
        font-size: 18px;
        padding: 6px 10px;
        border-radius: 8px;
        min-width: 40px;
        min-height: 40px;
    }

    .image-preview {
        flex-shrink: 0;
        max-height: 200px;
        padding: 8px 12px;
    }

    .preview-header {
        padding: 6px 0;
        font-size: 13px;
    }

    .preview-images {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
        max-height: 150px;
    }

    .preview-remove-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .message-input-container {
        padding: 8px 10px;
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        flex-shrink: 0;
        background: white;
        border-top: 2px solid #e5e7eb;
        position: relative;
        z-index: 10;
    }

    .input-wrapper {
        gap: 6px;
        align-items: flex-end;
    }

    .input-wrapper .btn-icon {
        min-width: 40px;
        min-height: 40px;
        padding: 8px;
        font-size: 18px;
    }

    #message-input {
        font-size: 16px;
        padding: 10px 12px;
        max-height: 100px;
        line-height: 1.4;
        border-radius: 20px;
    }

    .btn-send {
        padding: 10px 12px;
        font-size: 16px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 50%;
    }

    .modal {
        padding: 0;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .modal-header {
        padding: 16px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
        border-bottom: 1px solid #e5e7eb;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-close {
        font-size: 24px;
    }

    .modal-body {
        padding: 16px;
    }

    .form-group label {
        font-size: 13px;
        font-weight: 600;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }

    .modal-footer {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        gap: 8px;
    }

    .sidebar-actions {
        padding: 12px;
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        font-size: 15px;
        padding: 13px 18px;
        font-weight: 600;
        border-radius: 12px;
        min-height: 48px;
    }

    .room-list-container {
        padding: 0;
    }

    .room-list-container h3 {
        padding: 12px 16px;
        font-size: 14px;
    }

    .room-list {
        padding: 0 12px;
    }

    .room-item {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .room-item h4 {
        font-size: 14px;
    }

    .room-item p {
        font-size: 12px;
    }

    .unread-badge {
        font-size: 11px;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
    }
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* 참여자 컨텍스트 메뉴 */
.context-menu {
    display: none;
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    z-index: 99999;
    padding: 8px;
    animation: contextMenuFadeIn 0.15s ease-out;
    pointer-events: auto;
}

.context-menu.show {
    display: block;
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.context-menu-header {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.context-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #818CF8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

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

.context-menu-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.context-menu-status {
    font-size: 13px;
    color: var(--text-secondary);
}

.context-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
    color: var(--text-primary);
    font-size: 14px;
}

.context-menu-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.context-menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* 메시지 컨텍스트 메뉴 - 빠른 이모티콘 */
.context-menu-reactions {
    display: flex;
    gap: 8px;
    padding: 12px;
    justify-content: center;
    background: var(--bg-secondary);
}

.quick-reaction-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-reaction-btn:hover {
    transform: scale(1.15);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

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

/* 참여자 아이템 호버 효과 강화 */
.participant-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.participant-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.participant-item:active {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .context-menu {
        position: fixed;
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 320px;
        animation: contextMenuSlideUp 0.2s ease-out;
    }

    @keyframes contextMenuSlideUp {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
}

/* 스크롤 버튼 */
.scroll-btn {
    position: absolute;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top {
    bottom: 140px;
}

.scroll-to-bottom {
    bottom: 90px;
}

/* 읽음 표시 */
.message-read-status {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.message-read-status.read {
    color: var(--primary-color);
}

.read-count {
    font-weight: 500;
}

/* ========================================
   대화 내보내기 스타일
   ======================================== */

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ========================================
   검색 바 스타일
   ======================================== */

.search-bar {
    background: #f8fafc;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-results-info {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-results-info .btn-icon {
    padding: 2px 6px;
    font-size: 14px;
}

.message.search-highlight {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    animation: highlight-fade 0.3s ease;
}

.message.search-current {
    background: #fde68a;
    border-left: 3px solid #f59e0b;
}

@keyframes highlight-fade {
    from {
        background: #fbbf24;
    }
    to {
        background: #fef3c7;
    }
}

/* ========================================
   답글 미리보기 스타일
   ======================================== */

.reply-preview {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0.04) 100%);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reply-preview:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(79, 70, 229, 0.08) 100%);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
    transform: translateX(2px);
}

.reply-preview-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reply-preview-content {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.reply-preview-content span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.reply-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(79, 70, 229, 0.2);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 답글 미리보기 애니메이션 */
@keyframes reply-preview-appear {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-preview {
    animation: reply-preview-appear 0.3s ease;
}

/* ========================================
   검색 옵션 스타일
   ======================================== */

.search-options {
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.search-options input[type="date"] {
    font-size: 13px;
}

/* ========================================
   방장 배지 스타일
   ======================================== */

.owner-badge {
    display: inline-block;
    margin-left: 4px;
    font-size: 14px;
    animation: crown-shine 2s ease-in-out infinite;
}

@keyframes crown-shine {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

/* 등급 배지 스타일 */
.role-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.role-admin {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.role-moderator {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.role-vip {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

/* 라디오 버튼 그룹 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.radio-option:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.15);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    transform: scale(1);
    opacity: 1;
}

.radio-option input[type="radio"]:checked ~ .radio-label .radio-title {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    background: white;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0;
}

.radio-label {
    flex: 1;
}

.radio-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.radio-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 컴팩트 라디오 (인원수용) */
.radio-option.radio-compact {
    padding: 12px 16px;
    justify-content: center;
    min-width: 80px;
}

.radio-option.radio-compact .radio-custom {
    margin-right: 8px;
}

.radio-option.radio-compact .radio-title {
    font-size: 14px;
    margin-bottom: 0;
}

/* 선택된 라디오 옵션 스타일 */
.radio-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0.04) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* 대화 권한 없음 배지 */
.muted-badge {
    display: inline-block;
    margin-left: 4px;
    font-size: 14px;
    opacity: 0.7;
}

/* 방 이미지 업로드 스타일 */
.image-upload-container {
    margin-top: 8px;
}

.room-image-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.room-image-preview:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.room-image-preview .upload-placeholder {
    text-align: center;
    color: var(--text-secondary);
    pointer-events: none;
}

.room-image-preview .upload-placeholder p {
    margin: 8px 0 4px;
    font-weight: 500;
    color: var(--text-primary);
}

.room-image-preview .upload-placeholder small {
    display: block;
    font-size: 12px;
    opacity: 0.7;
}

.room-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-image-preview.has-image {
    border-style: solid;
}

.room-image-preview .image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.room-image-preview:hover .image-remove {
    opacity: 1;
}

.room-image-preview .image-remove:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* 모바일 채팅방 리스트 컴팩트 스타일 */
@media (max-width: 768px) {
    .room-list-item {
        padding: 12px !important;
        min-height: auto !important;
    }

    .room-list-item h3 {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }

    .room-list-item p {
        font-size: 12px !important;
        margin: 0 !important;
    }

    .room-list-item .room-meta {
        font-size: 11px !important;
        margin-top: 4px !important;
    }

    .sidebar {
        width: 100% !important;
    }

    .room-list {
        max-height: calc(100vh - 200px) !important;
    }
}
