/**
 * ChangelogWP Settings Page Styles
 *
 * @package ChangelogWP
 */

.caas-settings-wrap {
	max-width: 1200px;
}

/* Header with logo */
.caas-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 30px;
	padding-top: 20px;
}

.caas-logo {
	height: auto;
	max-height: 60px;
}

.caas-header-content {
	margin: 0 0 5px;
	padding: 0;
	font-size: 28px;
	line-height: 1.2;
	color: #000;
}
.caas-header-content img {
	height: 40px;
	width: auto;
	margin-left: 10px;
	vertical-align: middle;
}

.caas-tagline {
	margin: 0;
	color: #646970;
	font-size: 14px;
}

/* Tabs */
.caas-settings-tabs .nav-tab-wrapper {
	margin-bottom: 0;
	border-bottom: 1px solid #c3c4c7;
}

.caas-settings-tabs .nav-tab {
	cursor: pointer;
}

.caas-tab-content {
	display: none;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-top: none;
	padding: 20px;
}

.caas-tab-content.active {
	display: block;
}

/* Badges Table */
.caas-badges-table {
	margin-top: 15px;
	border-collapse: collapse;
}

.caas-badges-table thead th {
	padding: 12px 10px;
	font-weight: 600;
	text-align: left;
	background: #f9f9f9;
}

.caas-badges-table tbody td {
	padding: 12px 10px;
	vertical-align: middle;
	border-bottom: 1px solid #f0f0f1;
}

.caas-badges-table tbody tr:last-child td {
	border-bottom: none;
}

.caas-badges-table .col-prefixes {
	width: 30%;
	position: relative;
}

.caas-badges-table .col-prefixes input {
	width: 100%;
}

.caas-badges-table .col-label {
	width: 15%;
}

.caas-badges-table .col-label input {
	width: 100%;
}

.caas-badges-table .col-color {
	width: 20%;
}

.caas-badges-table .col-emoji {
	width: 8%;
}

.caas-badges-table .col-emoji input {
	width: 50px;
	text-align: center;
}

.caas-badges-table .col-preview {
	width: 15%;
}

.caas-badges-table .col-actions {
	width: 5%;
	text-align: center;
}

/* Badge row states */
.badge-row {
	background: #fff;
}

/* Badge preview */
.caas-badge-preview {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
	white-space: nowrap;
}

/* Remove button */
.remove-badge {
	color: #b32d2e !important;
	padding: 0;
	cursor: pointer;
}

.remove-badge:hover {
	color: #a00 !important;
}

.remove-badge .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Add badge button */
.badges-actions {
	margin-top: 15px;
}

#add-badge .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	vertical-align: text-bottom;
	margin-right: 3px;
}

/* Color Picker */
.wp-picker-container {
	display: inline-block;
}

.wp-picker-container .wp-color-result.button {
	margin: 0;
}

/* Help Box */
.caas-help-box {
	background: #f0f6fc;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #72aee6;
	padding: 12px 15px;
	margin: 15px 0;
	border-radius: 0 4px 4px 0;
}

.caas-help-box h4 {
	margin: 0 0 10px;
	font-size: 14px;
}

.caas-help-box p {
	margin: 0 0 8px;
}

.caas-help-box p:last-child {
	margin-bottom: 0;
}

.caas-help-box ul {
	margin: 0 0 8px 20px;
	padding: 0;
}

.caas-help-box li {
	margin-bottom: 5px;
}

.caas-help-box code {
	background: #fff;
	padding: 2px 6px;
	border-radius: 3px;
}

/* Emoji Input */
.badge-emoji-input {
	width: 50px !important;
	text-align: center;
	font-size: 18px;
	cursor: pointer;
	background: #fff;
}

.badge-emoji-input:hover {
	border-color: #2271b1;
}

.badge-emoji-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

/* Emoji Picker Container */
#emoji-picker-container {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

#emoji-picker-container emoji-picker {
	--emoji-size: 1.4rem;
	--num-columns: 8;
	--category-emoji-size: 1.1rem;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.caas-badges-table {
		display: block;
		overflow-x: auto;
	}

	.caas-badges-table thead {
		display: none;
	}

	.caas-badges-table tbody tr {
		display: block;
		margin-bottom: 15px;
		padding: 15px;
		background: #f9f9f9;
		border: 1px solid #ddd;
	}

	.caas-badges-table tbody td {
		display: block;
		width: 100% !important;
		padding: 8px 0;
		border: none;
	}

	.caas-badges-table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		display: block;
		margin-bottom: 5px;
	}

	.caas-badges-table .col-prefixes input,
	.caas-badges-table .col-label input {
		width: 100%;
	}

	.caas-badges-table .col-emoji input {
		width: 60px;
	}
}
