/* 
 * PWA 설치 버튼 스타일 
 */
.pwa-install-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.pwa-install-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.pwa-install-button.show {
    display: block;
    animation: slideUp 0.3s ease;
}

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

/* 
 * 채팅 스타일 개선 (모바일 친화적)
 */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 160px);
    }
    
    .chat-messages {
        padding: 10px;
    }
    
    .message-item {
        margin-bottom: 15px;
    }
    
    .message-content {
        max-width: 85%;
        word-wrap: break-word;
    }
    
    .file-upload-area {
        padding: 15px;
    }
    
    .chat-input-group {
        padding: 10px;
    }
}

/* 
 * 오프라인 표시기
 */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1001;
    display: none;
    font-weight: bold;
}

.offline-indicator.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 
 * 푸시 알림 권한 요청 배너
 */
.notification-banner {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
    display: none;
}

.notification-banner.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.notification-banner .close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
}

.notification-banner .close-btn:hover {
    opacity: 1;
}

.notification-banner .btn {
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.notification-banner .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
