/* Modern Admin Theme */
.notifywise-admin-page {
	margin: 20px;
	max-width: 1640px;
	color: #1e1e1e;
}

/* Header Styling */
.notifywise-page-title {
	font-size: 1.75rem;
	font-weight: 600;
	color: #1e1e1e;
	margin-bottom: 2rem !important;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5e5e5;
}

/* Tab Navigation */
.notifywise-admin-page .nav-tab-wrapper {
	border-bottom: 1px solid #e2e4e7;
	padding: 0;
	margin-bottom: 2rem;	
}

.notifywise-admin-page .nav-tab {
	margin: 0 0.5rem 0 0;
	padding: 0.75rem 1.5rem;
	font-size: 14px;
	font-weight: 500;
	color: #646970;
	background: #f0f0f0;
	border: none;
	border-bottom: 2px solid transparent;
	transition: all 0.2s ease;
}

.notifywise-admin-page .nav-tab:hover,
.notifywise-admin-page .nav-tab:focus {
	color: #2271b1;
	background: #e1e1e1;
	border-bottom-color: #2271b1;
}

.notifywise-admin-page .nav-tab-active {
	color: #2271b1;
	border-bottom-color: #2271b1;
	font-weight: 600;
}

/* Card Styling */
.notifywise-admin-page .card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	margin-bottom: 20px;
	padding: 20px;
}

/* Form Elements */
.notifywise-admin-page input[type="text"],
.notifywise-admin-page input[type="email"],
.notifywise-admin-page input[type="number"],
.notifywise-admin-page select {
	border: 1px solid #8c8f94;
	border-radius: 4px;
	height: 40px;
	padding: 0 12px;
	min-width: 200px;
}

.notifywise-admin-page select {
	padding-right: 30px;
	background: #fff
		url('data:image/svg+xml;charset=US-ASCII,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M5 6l5 5 5-5 2 1-7 7-7-7 2-1z" fill="%23555"/></svg>')
		no-repeat right 5px top 55%;
	background-size: 16px 16px;
	-webkit-appearance: none;
	appearance: none;
}

/* Buttons */
.notifywise-admin-page .button {
	height: 40px;
	min-width: 80px;
	padding: 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 4px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.notifywise-admin-page .button-primary {
	background: #2271b1;
	border-color: #2271b1;
}

.notifywise-admin-page .button-primary:hover {
	background: #135e96;
	border-color: #135e96;
}

.notifywise-admin-page .button-secondary {
	background: #f6f7f7;
	border-color: #2271b1;
	color: #2271b1;
}

.notifywise-admin-page .button-secondary:hover {
	background: #f0f0f1;
	border-color: #0a4b78;
	color: #0a4b78;
}

/* Tables */
.notifywise-admin-page .wp-list-table {
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	margin: 1em 0;
}

.notifywise-admin-page .wp-list-table th {
	background: #f6f7f7;
	font-weight: 600;
	padding: 12px;
}

.notifywise-admin-page .wp-list-table td {
	padding: 12px;
	vertical-align: middle;
}

.notifywise-admin-page .form-table .select2-container .select2-selection {
	min-height: 40px !important;
	height: 40px !important;
	padding: 3px;
}

.notifywise-admin-page
	.form-table
	.select2-container
	.select2-selection
	.select2-selection__arrow {
	top: 50%;
	transform: translateY(-50%);
}

/* Header Actions */
.notifywise-admin-page .header-actions {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 16px;
	margin-bottom: 20px;
}

.notifywise-admin-page .filter-actions,
.notifywise-admin-page .search-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

/* Pagination */
.notifywise-admin-page .pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 40px;
	padding: 0 16px;
	margin: 0 4px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	color: #2271b1;
	text-decoration: none;
	transition: all 0.2s ease;
}

.notifywise-admin-page .pagination .current {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

/* Notifications */
.notifywise-admin-page .notice {
	border-left-width: 4px;
	padding: 12px;
	margin: 20px 0;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.notifywise-admin-page .notice-success {
	border-left-color: #00a32a;
}

.notifywise-admin-page .notice-error {
	border-left-color: #d63638;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
	.notifywise-admin-page .header-actions {
		flex-direction: column;
		gap: 15px;
	}

	.notifywise-admin-page .filter-actions,
	.notifywise-admin-page .search-actions {
		width: 100%;
	}

	.notifywise-admin-page input[type="text"],
	.notifywise-admin-page select {
		width: 100%;
	}
}

.notifywise-admin-page .notifywise-page-title {
	margin-bottom: 0.5em !important;
	padding-bottom: 0.5em !important;
	font-weight: 600 !important;
}

.notifywise-admin-page table .check-column {
	vertical-align: inherit;
	padding: 0 !important;
}

.notifywise-admin-page #toast-container .toast.toast-success {
	background-color: rgb(0, 114, 0) !important;
}

div#wpfooter {
	display: none;
}

.notifywise-admin-page #toast-container .toast.toast-error {
	background-color: rgb(206, 49, 49) !important;
}

.notifywise-admin-page #toast-container .toast {
	background-position: 12px center !important;
	background-repeat: no-repeat !important;
}

.notifywise-page-content {
	width: 100%;
	max-width: 1640px;
}

.notifywise-page-content form p.submit {
	padding-left: 10px;
}

.notifywise-page-content .form-table {
	width: 100%;
	border-collapse: collapse;
}

.notifywise-page-content .form-table th,
.notifywise-page-content .form-table td {
	padding: 10px;
}

.notifywise-page-content .form-table th {
	width: 30%;
	text-align: left;
}

.notifywise-page-content .form-table td {
	width: 70%;
}

.notifywise-page-content .form-table input[type="text"],
.notifywise-page-content:not(.mail-config-page-content, .notify-button-page-content) .form-table .ck.ck-editor,
.notifywise-page-content .form-table .select2-container,
.notifywise-page-content .form-table select {
	width: 400px !important;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

.notifywise-page-content
	.select2-container--default.select2-container--focus
	.select2-selection--multiple {
	border: 1px solid #ccc;
	border-radius: 4px;
}

.notifywise-page-content .form-table .submit {
	margin-top: 20px;
}

.notifywise-page-content .notify-button-design-settings .tab-content,
.notifywise-page-content .notify-button-general-settings {
	padding: 1em 0;
}

.notifywise-page-content .nav-tab {
	padding: 10px 15px;
	border: 1px solid #ccc;
	border-bottom: none;
	background-color: #f9f9f9;
	cursor: pointer;
}

.notifywise-page-content .nav-tab-active {
	background-color: #fff;
	font-weight: bold;
}

.notifywise-admin-page .filter-actions select.optional_field,
.notifywise-page-content .form-table tr.optional_field {
	display: none;
}

.notifywise-page-content .nav.inner-nav {
	display: flex;
	gap: 1rem;
	border-bottom: 1px solid #e2e4e7;
	padding: 0;
}

.notifywise-page-content button.nav-link {
	background: transparent;
	border: none !important;
	color: #646970;
	font-size: 14px;
	font-weight: 500;
	padding: 0.75rem 0;
	position: relative;
	transition: all 0.2s ease;
}

.notifywise-page-content button.nav-link:hover {
	color: #2271b1;
}

.notifywise-page-content button.nav-link.active {
	color: #2271b1;
	font-weight: 600;
}

.notifywise-page-content button.nav-link.active::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: #2271b1;
}

.notifywise-page-content .td-flex {
	display: flex;
	align-items: center;
	justify-content: start;
	gap: 20px;
}

.notifywise-page-content .td-small select {
	width: 120px;
}

.notifywise-page-content .td-small input {
	width: 80px !important;
}

.notifywise-page-content .td-small svg {
	width: 16px;
	vertical-align: -6px;
}

.notifywise-admin-page .wp-list-table tr td:not(.column-email) {
	text-transform: capitalize;
}

.notifywise-admin-page .form-table .banner-image-preview img {
	margin-top: 1em;
	width: 400px;
	height: auto;
}

.notifywise-admin-page .ck-editor__editable {
	font-size: 12px;
}

.notifywise-admin-page .ck.ck-toolbar .ck-toolbar__items .ck-button,
.ck.ck-toolbar .ck-toolbar__items .ck-dropdown {
	padding: 2px 4px;
}

.notifywise-admin-page .ck.ck-toolbar .ck-toolbar__items .ck-button__label,
.notifywise-admin-page .ck.ck-toolbar .ck-toolbar__items .ck-dropdown__label {
	font-size: 12px;
}

.notifywise-admin-page
	.ck.ck-toolbar
	> .ck-toolbar__items
	> :not(.ck-toolbar__line-break) {
	margin-bottom: 0 !important;
	margin-top: 0 !important;
}

#subscription_form_general_form .banner-image-preview img {
	display: none;
}

.subscription-form-custom-content-settings th {
	vertical-align: middle;
}

.notifywise-admin-page .divider-title th {
	font-size: 18px;
	line-height: 24px;
}

.notifywise-admin-page #add_custom_form_field {
	display: none;
}

.notifywise-admin-page .subscription-form-custom-settings th.column-required {
	width: 120px;
}

.notifywise-admin-page form .form_actions {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 12px;
}

.notifywise-admin-page .mail-config-custom-content {
	position: relative;
}

.placeholder-tag-list span.placeholder-tag {
	cursor: copy;
	font-weight: 500;
}

#copied_text {
	display: none;
	width: max-content;
	padding: 4px 12px;
	border-radius: 4px;
	color: green;
	font-weight: 400;
	position: absolute;
	border: 1px solid green;
	top: -36px;
	right: 10px;
}

.notifywise-admin-page div.mailer_type.optional_field {
	display: none;
}

.notifywise-admin-page div.mailer_type {
	padding: 24px;
	margin-top: 24px;
	border: 1px solid #c1b8b8;
	width: 820px;
	border-radius: 4px;
}

.notifywise-admin-page div.mailer_type input[type="text"],
.notifywise-admin-page div.mailer_type input[type="password"] {
	width: 80%;
}

.notifywise-admin-page div.mailer_type label {
	width: 28%;
	font-size: 14px;
	font-weight: 600;
}

.notifywise-admin-page div.mailer_type .input-field {
	width: 70%;
}

.notifywise-admin-page .external-integration .external-integration-card {
	padding: 24px;
	margin-top: 24px;
	border: 1px solid #c1b8b8;
	width: 500px;
	border-radius: 4px;
}

.switcher .switch {
	position: relative;
	display: inline-block;
	width: 45px;
	height: 24px;
}

.switcher .switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.switcher .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.switcher .slider:before {
	position: absolute;
	content: "";
	height: 14px;
	width: 14px;
	left: 6px;
	bottom: 5px;
	background-color: white;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.switcher input:checked + .slider {
	background-color: #2462fc;
}

.switcher input:focus + .slider {
	box-shadow: 0 0 1px #2462fc;
}

.switcher input:checked + .slider:before {
	-webkit-transform: translateX(20px);
	-ms-transform: translateX(20px);
	transform: translateX(20px);
}

.switcher td.shortcode.disable {
	opacity: 0.4;
	user-select: none;
	transition: 0.3s all ease;
}

.switcher .slider.round {
	border-radius: 34px;
}

.switcher .slider.round:before {
	border-radius: 50%;
}

.notifywise-subscriber-list-page .page-header button {
	vertical-align: 1px;
	padding: 2px 12px;
}

.notifywise-admin-page .pagination span,
.notifywise-admin-page .pagination a {
	padding: 4px 12px;
	border: 1px solid grey;
	border-radius: 4px;
	margin: 0 4px;
}

.notifywise-admin-page .mail-config-custom-content textarea.subject {
	min-height: 100px;
}

.notifywise-admin-page .notifywise-notification-list-page .search-actions input {
	height: 40px;
}

.notifywise-admin-page .notifywise-notification-list-page table .column-details .message {
	display: none;
}

.notifywise-admin-page .mail-config-custom-content .placeholder-tag-list {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.notifywise-admin-page
	.mail-config-custom-content
	.placeholder-tag-list
	.placeholder-tag {
	font-size: 12px;
	padding: 4px;
	border: 1px solid grey;
	border-radius: 4px;
}

.notifywise-admin-page .header-actions .filter-actions select {
	padding-top: 2px;
	padding-bottom: 2px;
	min-width: 240px;
}

.notifywise-admin-page .header-actions .filter-actions * {
	vertical-align: middle;
}

.notifywise-admin-page .mail-config-integration .row label {
	margin-top: 4px;
}

.notifywise-admin-page .mail-config-integration > table th {
	width: 23%;
}

.notifywise-admin-page select#list_id {
	margin-left: 12px;
}

.toast.toast-success {
	background-color: rgba(35, 145, 35, 0.842);
	color: white;
}
.toast.toast-error {
	background-color: rgba(199, 40, 40, 0.747);
	color: white;
}

/* Status Chips */
.status-chip {
	padding: 8px 16px;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 500;
	display: inline-block;
	text-align: center;
}

.status-chip.success {
	background-color: rgb(0 200 83 / 7%);
	color: #00c853;
}

.status-chip.error {
	background-color: rgba(244, 67, 54, 0.1);
	color: #f44336;
}

/* Action Buttons */
.action-buttons {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.action-btn {
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.action-btn.primary {
	background-color: #2271b1;
	color: white;
}

.action-btn.primary:hover {
	background-color: #135e96;
	color: white;
}

.action-btn.danger {
	background-color: #fff;
	border-color: #d63638;
	color: #d63638;
}

.action-btn.danger:hover {
	background-color: #d63638;
	color: white;
}

/* Form Styling Improvements */
.notifywise-admin-page .form-table {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	margin-top: 1.5rem;
}

.notifywise-admin-page .form-table tr {
	border-bottom: 1px solid #f0f0f1;
}

.notifywise-admin-page .form-table th,
.notifywise-admin-page .form-table td {
	align-content: center;
	margin: 0 !important;
	padding: 12px 20px !important;
}

.notifywise-admin-page .form-table tr:last-child th,
.notifywise-admin-page .form-table tr:last-child td {
	border-bottom: none;
}

.notifywise-admin-page .form-table th {
	width: 200px;
	color: #1d2327;
	font-weight: 600;
	font-size: 14px;
}

/* Input Fields */
.notifywise-admin-page .form-table input[type="text"],
.notifywise-admin-page .form-table input[type="number"],
.notifywise-admin-page .form-table select {
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	min-height: 36px;
	width: 100%;
	max-width: 400px;
	font-size: 14px;
}

.notifywise-admin-page .form-table input[type="color"] {
	padding: 2px;
	width: 60px;
	height: 36px;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
}

/* Submit Button */

.notifywise-admin-page .button-secondary,
.notifywise-admin-page .button-primary {
	padding: 0.5rem 1.5rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	height: auto;
	font-size: 14px;
	font-weight: 500;
	min-width: 120px;
}

/* Select2 Customization */
.notifywise-admin-page .select2-container--default .select2-selection--single,
.notifywise-admin-page .select2-container--default .select2-selection--multiple {
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	min-height: 36px;
}

.notifywise-admin-page
	.select2-container--default
	.select2-selection--multiple
	.select2-selection__choice {
	background: #f0f0f1;
	border: 1px solid #e2e4e7;
	border-radius: 3px;
	padding: 2px 8px;
	font-size: 13px;
}

/* Design Settings Form */
.notify-button-design-settings {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	padding: 1rem 2rem;
	margin-top: 1.5rem;
}

.notify-button-design-settings .tab-content {
	flex: 1;
}

/* Form Fields */
.notify-button-design-settings .form-table td.td-flex {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.notify-button-design-settings .form-table input[type="color"] {
	padding: 2px;
	width: 60px;
	height: 36px;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
}

.notify-button-design-settings .form-table input[type="number"] {
	width: 80px;
	padding: 0.5rem;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
}

/* Select2 Customization */
.notify-button-design-settings .select2-container {
	min-width: 160px;
}

.notify-button-design-settings
	.select2-container--default
	.select2-selection--single {
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	height: 36px;
}

.notify-button-design-settings
	.select2-container--default
	.select2-selection--single
	.select2-selection__rendered {
	line-height: 34px;
	padding-left: 12px;
}

.notify-button-design-settings
	.select2-container--default
	.select2-selection--single
	.select2-selection__arrow {
	height: 34px;
}

/* Subscriber List Table Actions */
.notifywise-admin-page .notifywise-subscriber-list-page .column-actions a#remove {
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid #d63638;
	background-color: #fff;
	color: #d63638;
	display: inline-block;
}

.notifywise-admin-page .notifywise-subscriber-list-page .column-actions a#remove:hover {
	background-color: #d63638;
	color: #fff;
}

.notifywise-page-content .form-table th.required-field::after {
	content: '*';
	color: #d63638;
	margin-left: 4px;
}

.notifywise-page-content .field-indicator {
	font-size: 12px;
	font-weight: normal;
	color: #666;
	margin-left: 8px;
	font-style: italic;
}

.notifywise-page-content .field-indicator.required {
	color: #d63638;
}

.notifywise-page-content .description.warning-text{
	color: #d63638;
	display: none;
}

@media screen and (max-width: 1600px) {
	.external-integration-page-content > .description{
		width: 55%;
	}
}

@media screen and (min-width: 1601px) {
	.external-integration-page-content > .description{
		width: 40%;
	}
}

.external-integration-page-content > .description p{
	font-size: 14px;
	line-height: 1.5;
	color: #323232;
}
