/* Sidetalk Base Button - base-button.css */

/* ==============================================
   1. Base Button - .sidetalk-dashboard-button (175+ usages)
   ============================================== */

.sidetalk-dashboard-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--st-space-2);
	padding: 14px 16px;
	font-family: var(--st-font-family);
	font-size: var(--st-font-size-sm);
	font-weight: 500;
	line-height: 1.5;
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-xl);
	background: var(--st-bg-primary);
	color: var(--st-text-primary);
	cursor: pointer;
	transition: all var(--st-transition-fast);
	text-decoration: none;
	white-space: nowrap;
}

.sidetalk-dashboard-button:hover {
	background: var(--st-bg-hover);
}

.sidetalk-dashboard-button:disabled,
.sidetalk-dashboard-button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* ==============================================
   2. Primary Variant - .save-button
   ============================================== */

.sidetalk-dashboard-button.save-button {
	background: var(--st-primary);
	border-color: var(--st-primary);
	color: var(--st-text-inverse);
}

.sidetalk-dashboard-button.save-button:hover {
	background: var(--st-primary-hover);
	border-color: var(--st-primary-hover);
}

/* ==============================================
   3. Secondary Variant - .add-button
   ============================================== */

.sidetalk-dashboard-button.add-button {
	background: #fff;
	border-color: var(--st-border);
	color: var(--st-text-secondary);
}

.sidetalk-dashboard-button.add-button:hover {
	background: var(--st-bg-hover);
}

/* ==============================================
   4. Cancel Variant - .cancel-button
   ============================================== */

.sidetalk-dashboard-button.cancel-button {
	background: transparent;
	border-color: var(--st-border);
	color: var(--st-text-muted);
}

.sidetalk-dashboard-button.cancel-button:hover {
	background: var(--st-bg-hover);
}

/* ==============================================
   5. Delete Variant - button.delete-button
   ============================================== */

button.delete-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--st-space-1);
	padding: var(--st-space-2) var(--st-space-3);
	font-family: var(--st-font-family);
	font-size: var(--st-font-size-sm);
	font-weight: 500;
	line-height: 1.5;
	background: transparent;
	border: 1px solid var(--st-danger);
	border-radius: var(--st-radius-xl);
	color: var(--st-danger);
	cursor: pointer;
	transition: all var(--st-transition-fast);
	white-space: nowrap;
}

button.delete-button:hover {
	background: var(--st-danger-light);
	border-color: var(--st-danger-hover);
	color: var(--st-danger-hover);
}

button.delete-button:disabled,
button.delete-button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* ==============================================
   6. Small Button - .sidetalk-dashboard-small-button
   ============================================== */

.sidetalk-dashboard-small-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--st-space-1);
	padding: var(--st-space-2) var(--st-space-4);
	font-family: var(--st-font-family);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-xl);
	background: var(--st-bg-primary);
	color: var(--st-text-primary);
	cursor: pointer;
	transition: all var(--st-transition-fast);
	text-decoration: none;
	white-space: nowrap;
}

.sidetalk-dashboard-small-button:hover {
	background: var(--st-bg-hover);
}

.sidetalk-dashboard-small-button:disabled,
.sidetalk-dashboard-small-button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* ==============================================
   7. Utility Button - .sidetalk-btn (5 files)
   ============================================== */

.sidetalk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--st-space-1);
	padding: var(--st-space-2) var(--st-space-3);
	font-family: var(--st-font-family);
	font-size: var(--st-font-size-sm);
	font-weight: 500;
	line-height: 1.5;
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-xl);
	background: var(--st-bg-primary);
	color: var(--st-text-primary);
	cursor: pointer;
	transition: all var(--st-transition-fast);
	text-decoration: none;
	white-space: nowrap;
	height: 44px;
}

.sidetalk-btn:hover {
	background: var(--st-bg-hover);
}

.sidetalk-btn:disabled,
.sidetalk-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* ==============================================
   8. Icon Button - .dashboard-sidetalk-icon-btn
   ============================================== */

.dashboard-sidetalk-icon-btn {
	background: #fff !important;
	border: 1px solid #e2e8f0 !important;
	padding: 0 16px !important;
	border-radius: var(--st-radius-xl);
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	font-size: 14px !important;
	color: var(--st-text-main) !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
	margin-left: 0;
	white-space: nowrap !important;
	width: auto !important;
	height: 40px !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.dashboard-sidetalk-icon-btn:hover {
	border-color: var(--st-primary) !important;
	color: var(--st-primary) !important;
	background: var(--st-primary-light) !important;
	transform: translateY(-1px) !important;
}

/* ==============================================
   9. Button Container - .dynamic-position (46 files)
   ============================================== */

.dynamic-position {
	display: flex;
	gap: var(--st-space-2);
	margin-top: var(--st-space-4);
}

.dynamic-position.spread {
	justify-content: space-between;
	margin: 0 !important;
}

/* ==============================================
   10. Plan Change Button - .btn-change-plan
   ============================================== */

.btn-change-plan {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--st-space-1);
	padding: var(--st-space-1) var(--st-space-2);
	font-family: var(--st-font-family);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	background: transparent;
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-xs);
	color: var(--st-text-muted);
	cursor: pointer;
	transition: all var(--st-transition-fast);
	text-decoration: none;
	white-space: nowrap;
}

.btn-change-plan:hover {
	border-color: var(--st-primary);
	color: var(--st-primary);
}

/* ==============================================
   11. Create Chatbot Button (sidebar)
   ============================================== */
.sidetalk-btn-create-chatbot {
	margin-top: 20px;
	width: 100%;
}

.sidetalk-btn-member-info {
	width: 100%;
	background: var(--st-primary);
	color: var(--st-text-inverse);
	border-color: var(--st-primary);
}

.sidetalk-btn-member-info:hover {
	background: var(--st-primary-hover);
	border-color: var(--st-primary-hover);
}

.sidetalk-nav-footer {
	margin-top: auto;
	margin-bottom: 20px;
}

/* ==============================================
   11b. Floating Guide Button
   ============================================== */
.sidetalk-floating-guide-btn {
	position: fixed;
	bottom: 100px;
	left: 20px;
	z-index: 9999;
	padding: 14px 42px;
	box-shadow: 0 4px 12px rgba(0, 176, 237, 0.3);
	transition: background var(--st-transition-fast), box-shadow var(--st-transition-fast), bottom 0.25s ease;
}

.sidetalk-floating-guide-btn:hover {
	box-shadow: 0 6px 16px rgba(0, 176, 237, 0.4);
}

.sidetalk-floating-guide-btn i {
	font-size: 16px;
}

@media (max-width: 768px) {
	.sidetalk-floating-guide-btn span {
		display: none;
	}

	.sidetalk-floating-guide-btn {
		padding: 12px;
		border-radius: 50%;
	}

	.sidetalk-floating-guide-btn i {
		font-size: 20px;
	}
}

/* ==============================================
   12. Mini Button - .sidetalk-mini-btn (csv-upload)
   ============================================== */
.sidetalk-mini-btn {
	padding: 2px 8px;
	font-size: 12px;
	line-height: 1.4;
	height: auto;
	min-height: 24px;
}

/* ==============================================
   12. Reset Buttons
   ============================================== */
.sidetalk-reset-btn,
.sidetalk-reset-default-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--st-space-1);
	padding: 6px 12px;
	font-size: var(--st-font-size-sm);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-xl);
	background: var(--st-bg-primary);
	color: var(--st-text-muted);
	cursor: pointer;
	transition: all var(--st-transition-fast);
}

.sidetalk-reset-btn:hover,
.sidetalk-reset-default-btn:hover {
	background: var(--st-bg-hover);
	color: var(--st-text-primary);
}

/* ==============================================
   13. Toast Message
   ============================================== */
.sidetalk-dashboard-toast-message {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 100001;
	padding: 12px 20px;
	border-radius: var(--st-radius-xl);
	background: var(--st-text-primary);
	color: var(--st-text-inverse);
	font-size: var(--st-font-size-sm);
	font-weight: 500;
	box-shadow: var(--st-shadow-lg);
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.3s, transform 0.3s;
	pointer-events: none;
}

.sidetalk-dashboard-toast-message.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* ==============================================
   14. Responsive
   ============================================== */

@media (max-width: 768px) {
	.dynamic-position {
		flex-wrap: wrap;
	}

	.sidetalk-dashboard-button,
	.sidetalk-dashboard-small-button {
		width: 100%;
		justify-content: center;
	}
}