/*!
    
 =========================================================
 * WebEngine CMS
 * https://webenginecms.org/
 =========================================================
 * Licensed under the MIT license
 * http://opensource.org/licenses/MIT
 =========================================================
 
*/
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    border-top: none !important;
}

.table {
    margin-bottom: 0px;
}

a:focus, a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.form-control {
	background: #fafafa;
	border: 1px solid #e3e3e3;
	color: #666;
}
.form-control:focus {
	border: 1px solid #ccc;
}

/* http://stackoverflow.com/questions/19562903/remove-padding-from-columns-in-bootstrap-3 */
.nopadding {
   padding: 0 !important;
   margin: 0 !important;
}

/* http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3 */
.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.thumbnail {
    background-color: #f1f1f1;
    border: 1px solid #e3e3e3;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
  border-color: #ff0000;
}

.btn-primary {
    color: #3f6588;
    background-color: transparent;
	border-color: #3f6588;
	-moz-transition: all .1s ease-in;
    -o-transition: all .1s ease-in;
    -webkit-transition: all .1s ease-in;
    transition: all .1s ease-in;
	-moz-border-radius: 0px;
	border-radius: 0px;
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
    color: #fff !important;
    background-color: #3f6588 !important;
	border-color: #3f6588 !important;
}

.form-horizontal .control-label {
	text-align: left !important;
}

/* Streams panel (floating) */
#stream-fab {
	position: fixed;
	right: 16px;
	bottom: 16px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	z-index: 10000;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

#stream-fab:hover {
	transform: translateY(-2px);
	background: rgba(0, 0, 0, 0.75);
	border-color: rgba(255, 218, 138, 0.6);
}

#stream-fab .dot {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	border-radius: 999px;
	padding: 0 6px;
	background: #ffda8a;
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	font: 700 12px/1 'PT Sans', sans-serif;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.65);
}

#stream-panel {
	position: fixed;
	right: 16px;
	bottom: 84px;
	width: 360px;
	max-width: calc(100vw - 32px);
	max-height: 70vh;
	background: #ffffff;
	color: #333;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	z-index: 10000;
}

#stream-panel .sp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	background: #efefef;
	border-bottom: 1px solid #e3e3e3;
}

#stream-panel .sp-header strong {
	color: #3f6588;
}

#stream-panel .sp-body {
	padding: 8px;
	overflow: auto;
	max-height: calc(70vh - 44px);
}

/* Cards (scoped to stream panel to avoid side effects) */
#stream-panel .sp-card {
	display: flex;
	gap: 10px;
	padding: 8px;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e3e3e3;
	background: #fafafa;
	transition: all 0.2s ease;
	margin-bottom: 8px;
}

#stream-panel .sp-card:hover {
	background: #ffffff;
	border-color: #3f6588;
}

#stream-panel .sp-card.offline {
	opacity: 0.75;
}

#stream-panel .sp-card.offline:hover {
	opacity: 0.95;
}

#stream-panel .sp-card.unknown {
	opacity: 0.85;
}

#stream-panel .sp-card .thumb {
	width: 120px;
	height: 68px;
	background: #e3e3e3;
	border-radius: 4px;
	overflow: hidden;
	flex: 0 0 auto;
}

#stream-panel .sp-card .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#stream-panel .sp-card .meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
}

#stream-panel .sp-card .title {
	font-weight: bold;
	font-size: 13px;
	color: #000;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#stream-panel .sp-card .ch {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #777;
	font-size: 12px;
}

#stream-panel .badge {
	padding: 2px 6px;
	border-radius: 999px;
	font: 700 10px/1 'PT Sans', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #fff;
}

#stream-panel .badge.twitch {
	background: #9146ff;
}

#stream-panel .badge.youtube {
	background: #ff0033;
}

#stream-panel .badge.other {
	background: #777;
}

#stream-panel .viewers {
	margin-left: auto;
	color: #333;
}

#stream-panel .sp-empty,
#stream-panel .sp-loading,
#stream-panel .sp-error {
	padding: 12px;
	color: #777;
	text-align: center;
}

#stream-fab .fab-icon {
	width: 28px;
	height: 28px;
	display: block;
}

#stream-panel #sp-close {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#stream-panel #sp-close .close-icon {
	width: 18px;
	height: 18px;
	display: block;
	pointer-events: none;
}
