@import url('./colors.css');

.x4email-admin {
	font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
	background: var(--color-gray-50);
	color: var(--color-gray-900);
	margin: 0;
	padding: 0;
}

.x4email-admin #wpcontent {
	padding-left: 0 !important;
}

.x4email-admin .x4email-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 16px 0 rgba(17,24,39,0.08);
	padding: 2rem;
	margin-bottom: 2rem;
}

.x4email-admin .x4email-title {
	background-image: linear-gradient(to right, #2563eb, #60a5fa); /* from-blue-600 to-blue-400 */
	border-radius: 1rem; /* rounded-2xl */
	box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); /* shadow */
	padding: 2rem; /* p-8 */
	margin-bottom: 2rem; /* mb-8 */
	display: flex;
	flex-direction: column; /* flex-col */
	align-items: center;
	justify-content: space-between;
	color: white;

}

.x4email-admin .x4email-btn {
	display: inline-block;
	padding: 0.6em 1.5em;
	border-radius: 6px;
	border: none;
	font-size: 1rem;
	font-weight: 500;
	background: var(--color-primary);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 8px 0 rgba(25,118,210,0.10);
}
.x4email-admin .x4email-btn:hover, .x4email-admin .x4email-btn:focus {
	background: var(--color-blue-600);
	box-shadow: 0 4px 16px 0 rgba(25,118,210,0.15);
}
.x4email-admin .x4email-btn-secondary {
	background: var(--color-secondary);
}
.x4email-admin .x4email-btn-secondary:hover, .x4email-admin .x4email-btn-secondary:focus {
	background: #b8003a;
}

.x4email-admin .x4email-btn-outline {
	background: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
	box-shadow: none;
	padding: 0.6em 1.5em;
	border-radius: 6px;
	text-decoration: none;
	display: inline-block;
}
.x4email-admin .x4email-btn-outline:hover, .x4email-admin .x4email-btn-outline:focus {
	background: var(--color-blue-50, #f0f6ff);
	color: var(--color-blue-600);
	border-color: var(--color-blue-600);
	text-decoration: none;
}

.x4email-admin .x4email-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px 0 rgba(17,24,39,0.06);
	margin-bottom: 1.5rem;
}
.x4email-admin .x4email-table th, .x4email-admin .x4email-table td {
	padding: 0.75em 1em;
	border-bottom: 1px solid var(--color-blue-400);
	text-align: left;
}
.x4email-admin .x4email-table th {
	background: var(--color-blue-600);
	color: #fff;
	font-weight: 600;
}
.x4email-admin .x4email-table tr:last-child td {
	border-bottom: none;
}
.x4email-admin .x4email-table-striped tr:nth-child(even) {
	background: var(--color-gray-50);
}

.x4email-admin .x4email-alert {
	padding: 1em 1.5em;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.75em;
}
.x4email-admin .x4email-alert-success {
	background: #f0fdf4;
	color: var(--color-green-600);
	border: 1px solid var(--color-green-600);
}
.x4email-admin .x4email-alert-warning {
	background: #fefce8;
	color: var(--color-yellow-800);
	border: 1px solid var(--color-yellow-800);
}
.x4email-admin .x4email-alert-danger {
	background: #fef2f2;
	color: var(--color-red-600);
	border: 1px solid var(--color-red-600);
}

.x4email-admin .x4email-form-group {
	margin-bottom: 1.25rem;
}
.x4email-admin .x4email-label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.5em;
	color: var(--color-gray-900);
}

.x4email-input{
	width: 100%;
	padding: 0.6em 1em;
	border-radius: 6px;
}
.x4email-admin .x4email-select, .x4email-admin .x4email-textarea {
	width: 100%;
	padding: 0.6em 1em;
	border-radius: 6px;
	border: 1px solid var(--color-blue-400);
	font-size: 1rem;
	background: var(--color-gray-50);
	color: var(--color-gray-900);
	transition: border 0.2s;
}
.x4email-admin .x4email-select:focus, .x4email-admin .x4email-textarea:focus {
	border-color: var(--color-primary);
	outline: none;
}

.x4email-admin .x4email-box-shadow {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1),
	0 1px 2px rgba(0, 0, 0, 0.06);

}

.x4email-admin .x4email-flex {
	display: flex;
	gap: 1.5rem;
}
.x4email-admin .x4email-flex-col {
	flex-direction: column;
}
.x4email-admin .x4email-gap-lg {
	gap: 2.5rem;
}

.x4email-admin .x4email-mb-lg {
	margin-bottom: 2.5rem;
}
.x4email-admin .x4email-mb-md {
	margin-bottom: 1.5rem;
}
.x4email-admin .x4email-mb-sm {
	margin-bottom: 0.75rem;
}

.x4email-admin .x4email-card-header {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--color-primary);
}

.x4email-admin .x4email-divider {
	border: none;
	border-top: 1px solid var(--color-blue-400);
	margin: 2rem 0;
}

/* Modern Table Styles (from user) */
.x4email-admin table {
	width: 100%;
	border-collapse: collapse;
	font-family: 'Inter', sans-serif;
}

.x4email-admin thead {
	background-color: #f9fafb;
	position: sticky;
	top: 0;
	z-index: 10;
}

.x4email-admin th {
	padding: 12px 24px;
	text-align: left;
	font-size: 0.75rem;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 1px solid #e5e7eb;
	background-color: #f9fafb;
}

.x4email-admin tbody tr {
	background-color: #ffffff;
	transition: background-color 0.2s;
}

.x4email-admin tbody tr:hover {
	background-color: #f9fafb;
}

.x4email-admin td {
	padding: 16px 24px;
	font-size: 0.875rem;
	color: #111827;
	white-space: nowrap;
}

.x4email-admin td span.active {
	background-color: #d1fae5;
	color: #065f46;
	padding: 2px 8px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	display: inline-block;
}

.x4email-admin td span.expired {
	background-color: #fee2e2;
	color: #991b1b;
	padding: 2px 8px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	display: inline-block;
}

.x4email-admin button {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.x4email-admin button svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.x4email-admin button.text-primary {
	color: #3b82f6;
}

.x4email-admin button.text-primary:hover {
	color: #2563eb;
}

.x4email-admin button.text-red-600 {
	color: #dc2626;
}

.x4email-admin button.text-red-600:hover {
	color: #b91c1c;
}

.x4email-admin .x4email-table-responsive {
	width: 100%;
	overflow-x: auto;
}
.x4email-admin .x4email-table-responsive table {
	width: 100%;
}

/* Description column scrollable */
.x4email-admin .x4email-desc-col {
	max-width: 260px;
	min-width: 120px;
	overflow-x: auto;
	white-space: nowrap;
	display: block;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}
.x4email-admin .x4email-desc-col::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.x4email-admin .x4email-status-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: 8px;
	vertical-align: middle;
}
.x4email-admin .x4email-status-dot.active-dot {
	background: #22c55e;
}
.x4email-admin .x4email-status-dot.disabled {
	background: #ef4444;
}

.x4email-admin .x4email-modal-table-responsive {
	width: 100%;
	overflow-x: auto;
}
.x4email-admin .x4email-modal-table-responsive table {
	width: 100%;
}

.x4email-admin .x4email-locked-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(17,24,39,0.75);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	backdrop-filter: blur(2px);
}
.x4email-admin .x4email-locked-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1),
	0 1px 2px rgba(0, 0, 0, 0.06);
	padding: 2.5rem 2rem 2rem 2rem;
	max-width: 400px;
	width: 95%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.x4email-admin .x4email-locked-card h2 {
	color: var(--color-primary);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}
.x4email-admin .x4email-locked-card p {
	color: #111827;
	font-size: 1.1rem;
	margin-bottom: 2rem;
}
.x4email-admin .x4email-locked-card .x4email-btn {
	text-decoration: none;
	font-size: 1.1em;
	margin-top: 0.5rem;
}

.x4email-admin a.x4email-btn:hover {
	color: #fff;
}

.x4email-admin a.x4email-btn{
	text-decoration: none;
}

.x4email-admin .notice-error{
	overflow: auto;
}