/* 屏幕共享平台样式 */

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar-brand {
    font-weight: 600;
}

/* 登录表单样式 */
.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 400px;
}

.auth-form h2 {
    color: #0d6efd;
    margin-bottom: 1.5rem;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.card-header {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

/* 视频容器样式 */
#video-container {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    min-height: 300px;
}

#shared-screen {
    border-radius: 8px;
    object-fit: contain;
}

/* 用户列表样式 */
.user-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #0d6efd;
}

.user-item.sharing {
    background: #d4edda;
    border-left-color: #28a745;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 0.75rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    margin: 0;
}

.user-status {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border: none;
}

/* 状态徽章 */
.badge {
    font-size: 0.8rem;
}

/* 连接状态指示器 */
.connection-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.connection-indicator.connected {
    background: #28a745;
}

.connection-indicator.connecting {
    background: #ffc107;
    animation: pulse 1.5s ease-in-out infinite;
}

.connection-indicator.disconnected {
    background: #dc3545;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .auth-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    #video-container {
        min-height: 200px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* 提示消息样式 */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 