/* 社交专注功能样式 */
.social-focus-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.focus-session, .invite-friends, .join-session {
    display: flex;
    gap: 10px;
}

.focus-session input, .invite-friends input, .join-session input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.active-session {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.session-info {
    margin-bottom: 15px;
}

.session-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.session-code {
    font-size: 14px;
    color: #666;
}

.session-members {
    margin-bottom: 15px;
}

.session-members h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

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

.member-name {
    font-weight: 500;
}

.member-status {
    color: #666;
}

.session-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 6px;
    padding: 10px;
}

.session-stats .stat-item {
    text-align: center;
    flex: 1;
}

.session-stats .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #6c63ff;
}

.session-stats .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
}

.sync-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #6c63ff;
}

input:focus + .slider {
    box-shadow: 0 0 1px #6c63ff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 聊天容器样式 */
.chat-container {
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.chat-container h4 {
    margin: 0;
    padding: 10px 15px;
    background-color: #f0f0f0;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
}

.chat-messages {
    height: 200px;
    overflow-y: auto;
    padding: 10px 15px;
}

.chat-message {
    margin-bottom: 10px;
    max-width: 80%;
}

.chat-message.self {
    margin-left: auto;
    text-align: right;
}

.chat-message.other {
    margin-right: auto;
}

.message-sender {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.message-content {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    margin: 0;
    font-size: 14px;
    word-break: break-word;
}

.chat-message.self .message-content {
    background-color: #6c63ff;
    color: #fff;
    border-top-right-radius: 0;
}

.chat-message.other .message-content {
    background-color: #f0f0f0;
    color: #333;
    border-top-left-radius: 0;
}

.message-time {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.chat-input-container {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input-container input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.chat-input-container button {
    padding: 10px 15px;
    background-color: #6c63ff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-input-container button:hover {
    background-color: #5a52d5;
}

/* 会话操作按钮 */
.session-actions {
    display: flex;
    gap: 10px;
}

.session-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.danger-button {
    background-color: #ff4757;
    color: #fff;
}

.danger-button:hover {
    background-color: #e03444;
}

.secondary-button {
    background-color: #f0f0f0;
    color: #333;
}

.secondary-button:hover {
    background-color: #e0e0e0;
}

.primary-button {
    background-color: #6c63ff;
    color: #fff;
}

.primary-button:hover {
    background-color: #5a52d5;
}

/* 通知样式 */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background-color: #2ed573;
}

.notification.error {
    background-color: #ff4757;
}

.notification.info {
    background-color: #1e90ff;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .focus-session, .invite-friends, .join-session {
        flex-direction: column;
    }
    
    .session-stats {
        flex-wrap: wrap;
    }
    
    .session-stats .stat-item {
        flex: 0 0 50%;
        margin-bottom: 10px;
    }
    
    .session-actions {
        flex-direction: column;
    }
    
    .chat-messages {
        height: 150px;
    }
}