/* Custom styles for iPole-golf application */

.filter-buttons {
	 display: flex;
	 justify-content: center;
	 width: 100%;
	margin-top: 10px;
}

.filter-btn {
	 padding: 5px 15px;
	 margin: 0 5px;
	 border: 1px solid #ccc;
	 background-color: white;
	 cursor: pointer;
	 border-radius: 5px;
	transition: all 0.3s ease;
}

.filter-btn.active {
	 background-color: #007bff;
	 color: white;
	 border-color: #007bff;
}

.filter-btn:hover {
	 background-color: #f8f9fa;
	 border-color: #007bff;
}

.filter-btn.active:hover {
	 background-color: #0056b3;
}

/* Channels Sidebar Styles */
.channels-sidebar {
	position: fixed;
	left: 0;
	top: 0;
	width: 240px;
	height: 100vh;
	background-color: #212529;
	color: white;
	z-index: 1000;
	overflow-y: auto;
	padding: 20px 0;
	box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.channels-header {
	padding: 0 20px 15px 20px;
	border-bottom: 1px solid #444;
	margin-bottom: 15px;
}

.channels-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
}

.channels-list {
	padding: 0;
}

.channel-item {
	display: flex;
	align-items: center;
	padding: 8px 20px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
}

.channel-item:hover {
	background-color: #2d3436;
}

.channel-item.active {
	background-color: #6c757d;
}

.channel-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	margin-right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	flex-shrink: 0;
}

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

.channel-name {
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
}

.channel-count {
	font-size: 12px;
	color: #aaa;
	margin: 2px 0 0 0;
}

/* Adjust main content when sidebar is visible */
body.channels-sidebar-visible .page-container2 {
	margin-left: 240px;
}

body.channels-sidebar-visible .public-header {
	margin-left: 240px;
	width: calc(100% - 240px);
}

/* Mobile responsive */
@media (max-width: 768px) {
	.channels-sidebar {
		transform: translateX(-100%);
		transition: transform 0.3s ease;
	}
	
	.channels-sidebar.mobile-open {
		transform: translateX(0);
	}
	
	body.channels-sidebar-visible .page-container2,
	body.channels-sidebar-visible .public-header {
		margin-left: 0;
		width: 100%;
	}
	
	.m-view-channels-toggle {
		margin-right: 10px;
		cursor: pointer;
		padding: 8px;
	}
	
	.m-view-channels-toggle i {
		font-size: 18px;
		color: #333;
	}
}

/* All channels button */
.all-channels-btn {
	display: flex;
	align-items: center;
	padding: 10px 20px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
	margin-bottom: 5px;
	border-bottom: 1px solid #444;
}

.all-channels-btn:hover {
	background-color: #2d3436;
}

.all-channels-btn.active {
	background-color: #6c757d;
}

.all-channels-btn .channel-name {
	font-size: 14px;
	font-weight: 600;
}

/* Mobile overlay */
.channels-sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
}

@media (max-width: 768px) {
	.channels-sidebar.mobile-open + .channels-sidebar-overlay {
		display: block;
	}
}

.filter-btn:hover {
	 background-color: #e9ecef;
}

.filter-btn.active {
	 background-color: #007bff;
	 color: white;
	 border-color: #007bff;
}

#listViewActiveVideos{
	margin-top: 30px;
}

#listViewStagedVideos{
	margin-top: 30px;
}

.tableWrapper{
	margin-top: 30px;
}