/* START KOL_APES_SIDEBAR_STYLES */

/* Light mode */
html.light-mode .kol-apes-sidebar {
	background: white;
	color: #1f2937;
	border-left: 1px solid #e5e7eb;
	box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

html.light-mode .kol-apes-sidebar-header {
	border-bottom: 1px solid #e5e7eb;
}

html.light-mode .kol-apes-sidebar-close {
	color: #1f2937;
}

html.light-mode .kol-apes-sidebar-close:hover {
	background: #f3f4f6;
}

html.light-mode .kol-apes-comments-list {
	background: white;
}

html.light-mode .kol-apes-comment {
	border-bottom: 1px solid #e5e7eb;
}

html.light-mode .kol-apes-comment-date {
	color: #6b7280;
}

html.light-mode .kol-apes-comment-input {
	background: #f9fafb;
	color: #1f2937;
	border: 1px solid #e5e7eb;
}

html.light-mode .kol-apes-comment-input:focus {
	background: white;
	border-color: #3b82f6;
}

html.light-mode .kol-apes-comment-submit {
	background: linear-gradient(to bottom, #e2e2e2, #d4d4d4);
	color: #2d2d2d;
	border-top: 1px solid #f0f0f0;
	border-left: 1px solid #f0f0f0;
	border-right: 1px solid #b0b0b0;
	border-bottom: 1px solid #b0b0b0;
}

html.light-mode .kol-apes-comment-submit:hover {
	background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
}

html.light-mode .kol-apes-no-comments,
html.light-mode .kol-apes-error {
	color: #6b7280;
}

html.light-mode .kol-apes-loading {
	color: #6b7280;
}

/* Dark mode */
html.dark-mode .kol-apes-sidebar {
	background: #1a1a1a;
	color: #e0e0e0;
	border-left: 1px solid #333;
	box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

html.dark-mode .kol-apes-sidebar-header {
	border-bottom: 1px solid #333;
}

html.dark-mode .kol-apes-sidebar-close {
	color: #e0e0e0;
}

html.dark-mode .kol-apes-sidebar-close:hover {
	background: #2a2a2a;
}

html.dark-mode .kol-apes-comments-list {
	background: #1a1a1a;
}

html.dark-mode .kol-apes-comment {
	border-bottom: 1px solid #333;
}

html.dark-mode .kol-apes-comment-date {
	color: #9ca3af;
}

html.dark-mode .kol-apes-comment-input {
	background: #2a2a2a;
	color: #e0e0e0;
	border: 1px solid #333;
}

html.dark-mode .kol-apes-comment-input:focus {
	background: #333;
	border-color: #3b82f6;
}

html.dark-mode .kol-apes-comment-submit {
	background: linear-gradient(to bottom, #383838, #343434);
	color: white;
	border-top: 1px solid #555555;
	border-left: 1px solid #555555;
	border-right: 1px solid #282828;
	border-bottom: 1px solid #282828;
}

html.dark-mode .kol-apes-comment-submit:hover {
	background: linear-gradient(to bottom, #404040, #363636);
}

html.dark-mode .kol-apes-no-comments,
html.dark-mode .kol-apes-error {
	color: #9ca3af;
}

html.dark-mode .kol-apes-loading {
	color: #9ca3af;
}

/* Common sidebar styles */
.kol-apes-sidebar {
	position: fixed;
	right: 0;
	top: 0;
	bottom: 0;
	width: 400px;
	z-index: 9999;
	overflow-y: auto;
	transition: transform 0.3s ease;
	transform: translateX(100%);
}

.kol-apes-sidebar.open {
	transform: translateX(0);
}

.kol-apes-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	position: sticky;
	top: 0;
	background: inherit;
}

.kol-apes-sidebar-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.kol-apes-sidebar-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.kol-apes-sidebar-content {
	padding: 0;
}

.kol-apes-comments-list {
	padding: 0;
	margin: 0;
}

.kol-apes-comment {
	padding: 15px;
	border-top: 1px solid;
	transition: background 0.2s ease;
}

.kol-apes-comment-header {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.kol-apes-comment-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.kol-apes-comment-info {
	flex: 1;
	min-width: 0;
}

.kol-apes-comment-author {
	font-weight: 600;
	display: block;
	text-decoration: none;
}

.kol-apes-comment-date {
	font-size: 12px;
	margin-top: 2px;
}

.kol-apes-comment-content {
	font-size: 14px;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.kol-apes-comment-form {
	padding: 15px;
	border-top: 1px solid;
	sticky: bottom 0;
}

.kol-apes-comment-input {
	width: 100%;
	min-height: 80px;
	padding: 10px;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	resize: vertical;
	margin-bottom: 10px;
	transition: border-color 0.2s ease;
}

.kol-apes-comment-input:focus {
	outline: none;
}

.kol-apes-comment-submit {
	width: 100%;
	height: 32px;
	padding: 0 15px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.kol-apes-comment-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.kol-apes-comment-submit:active {
	transform: translateY(0);
}

.kol-apes-no-comments,
.kol-apes-error,
.kol-apes-loading {
	padding: 20px;
	text-align: center;
	font-size: 14px;
}

.kol-apes-error {
	color: #ef4444;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.kol-apes-sidebar {
		width: 100%;
	}
}

/* END KOL_APES_SIDEBAR_STYLES */
