/* Sidetalk Base Navigation + Side Panel - base-nav.css */

/* ==============================================
   1. Tab Navigation (7 files)
   ============================================== */
.sidetalk-navigation-wrap {
	display: flex;
	gap: 4px;
	border-top: 1px solid #ddd;
	margin-bottom: 0;
	flex-wrap: wrap;
}

.sidetalk-navigation-btn {
	display: inline-flex;
	align-items: center;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 500;
	color: var(--st-text-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	transition: color var(--st-transition-fast), border-color var(--st-transition-fast);
	white-space: nowrap;
	background: transparent;
	border-top: none;
	border-left: none;
	border-right: none;
}

.sidetalk-navigation-btn:hover {
	color: var(--st-text-primary);
}

.sidetalk-navigation-btn.active {
	color: var(--st-primary);
	/* border-bottom-color: var(--st-primary); */
	font-weight: 600;
}

/* Linked navigation (a tags) */
a.sidetalk-navigation-btn {
	/* same as above */
}

/* ==============================================
   2. Side Panel (7 files)
   ============================================== */
.custom-side-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 90vw;
	height: 100vh;
	background: var(--st-bg-primary);
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
	z-index: 10001;
	transform: translateX(100%);
	transition: transform var(--st-transition-smooth);
	display: none;
}

.custom-side-panel.is-open,
.custom-side-panel[style*="display: block"] {
	transform: translateX(0);
}

.custom-side-panel-content {
	padding: 24px;
	height: 100%;
	overflow-y: auto;
}

#sidetalk-dashboard-content .custom-side-panel-content>h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--st-text-primary);
	margin-bottom: 24px;
}

.custom-side-panel-content .form-field-group {
	/* inherits from base-form.css */
}

.custom-side-panel-controls {
	display: flex;
	gap: 8px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--st-border-light);
}

.custom-side-panel .close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 24px;
	cursor: pointer;
	color: var(--st-text-muted);
	background: none;
	border: none;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--st-radius-xl);
}

.custom-side-panel .close-btn:hover {
	background: var(--st-bg-secondary);
}

/* ==============================================
   3. Side Panel - Admin Bar / Banner Offsets
   ============================================== */
.admin-bar .custom-side-panel {
	top: 32px;
	height: calc(100vh - 32px);
}

.sidetalk-has-banner .custom-side-panel {
	top: 44px;
	height: calc(100vh - 44px);
}

.admin-bar.sidetalk-has-banner .custom-side-panel {
	top: 76px;
	height: calc(100vh - 76px);
}

@media (max-width: 782px) {
	.admin-bar .custom-side-panel {
		top: 46px;
		height: calc(100vh - 46px);
	}

	.admin-bar.sidetalk-has-banner .custom-side-panel {
		top: 90px;
		height: calc(100vh - 90px);
	}
}

/* ==============================================
   4. Side Panel Section Titles
   ============================================== */
.sidetalk-panel-section-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 10px;
	color: var(--st-text-primary);
}

.sidetalk-panel-inline-group {
	display: flex;
	gap: 8px;
	align-items: center;
}

/* Side panel .open support (JS uses .open class) */
.custom-side-panel.open {
	display: block;
	transform: translateX(0);
}