/* 频道管理器样式 */

.channel-management-trigger {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.channel-management-trigger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

/* 频道列表样式 */
.channels-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.channel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.channel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.channel-email {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.channel-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.authenticated {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

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

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state p {
    margin: 8px 0;
    font-size: 16px;
}

/* 频道操作按钮样式 */
.channel-actions .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.channel-actions .btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.channel-actions .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.channel-actions .btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.channel-actions .btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.channel-actions .btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
}

.channel-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.channel-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.channel-actions .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.channel-actions .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}

/* 频道操作区域样式 */
.channel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 表单样式增强 */
#addChannelForm .form-group {
    margin-bottom: 20px;
}

#addChannelForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

#addChannelForm input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#addChannelForm input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .channel-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .channel-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .channel-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.channel-item {
    animation: fadeInUp 0.3s ease;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

