
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f1f1f1;
    overflow: hidden;
}
.admin-bar {
    background: #23282d;
    color: #fff;
    padding: 10px;
    text-align: right;
}
.wp-admin {
    display: flex;
}
.sidebar {
    width: 200px;
    background: #23282d;
    color: #fff;
    padding-top: 10px;
    height: 100vh;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    padding: 10px 20px;
    cursor: pointer;
}
.sidebar ul li.active, .sidebar ul li:hover {
    background-color: #0073aa;
}
.main-area {
    flex-grow: 1;
    padding: 20px;
}
header nav {
    margin-top: 10px;
}
header nav button {
    margin-right: 10px;
    padding: 6px 12px;
    cursor: pointer;
}
.plugin-tab {
    display: none;
    margin-top: 20px;
}
.plugin-tab.active {
    display: block;
}

.admin-bar {
    background: #23282d;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-bar .site-name {
    font-weight: bold;
    padding-left: 10px;
}

.admin-bar .howdy {
    padding-right: 10px;
}
/* General container styling for the settings page */
.wrap {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Center the content horizontally */
    max-width: 1100px; /* Restrict maximum width */
    width: 90%; /* Make it responsive */
    box-sizing: border-box;
}

/* Center the heading */
.wrap h1 {
    text-align: center;
    font-size: 24px;
    color: #333;
    padding-bottom: 30px;
}

/* Table styling */
#redirects-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Ensures columns adhere to specified widths */
    margin-bottom: 20px;
	margin-top: 10px;
}

#redirects-table thead {
    background: linear-gradient(to right, #1E88E5, #1565C0);
    color: #6e6e6e;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	font-size: 14px !important; 
}

#redirects-table th,
#redirects-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
	font-size: 14px !important; 
}

/* Adjust column widths */
#redirects-table th:first-child,
#redirects-table td:first-child,
#redirects-table th:nth-child(2),
#redirects-table td:nth-child(2) {
    width: 30%; /* Adjust column widths as needed */
    text-overflow: ellipsis;
    overflow: hidden;
}

#redirects-table th:nth-child(3),
#redirects-table td:nth-child(3) {
    width: 15%;
    text-align: center;
}

#redirects-table th:nth-child(4),
#redirects-table td:nth-child(4) {
    width: 10%;
    text-align: center;
}

#redirects-table th:last-child,
#redirects-table td:last-child {
    width: 10%;
    text-align: center;
}

/* Input fields */
#redirects-table input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Dropdown Styling */
/* Style the dropdown container */
.redirect-type {
    width: 100%;
    padding: 10px;
    border: 1px solid #1E88E5; /* Modern blue border */
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #1565C0;
    transition: all 0.3s ease-in-out;
    appearance: none; /* Remove default system styling */
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    position: relative;
}

/* Custom arrow instead of the default system dropdown arrow */
.redirect-type {
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 30px; /* Ensure space for custom arrow */
}

/* Dropdown hover effect */
.redirect-type:hover {
    border-color: #1565C0;
}

/* When focused (clicked), add glow effect */
.redirect-type:focus {
    outline: none;
    border-color: #0D47A1;
    box-shadow: 0 0 10px rgba(13, 71, 161, 0.2);
}

/* Dropdown options styling */
.redirect-type option {
    background: white;
    color: #1565C0;
    font-size: 14px;
    padding: 10px;
}

/* Style the dropdown when open (Chrome/Edge fix) */
.redirect-type::-ms-expand {
    display: none; /* Hide default arrow in Edge */
}

/* On mobile, make it more user-friendly */
@media (max-width: 768px) {
    .redirect-type {
        font-size: 16px;
        padding: 12px;
    }
}


/* Checkbox styling */
#redirects-table td input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 auto;
    display: block;
    appearance: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

#redirects-table td input[type="checkbox"]:checked {
    background-color: #10ff26;
    border-color: #005177;
}

#redirects-table td input[type="checkbox"]:checked::after {
    content: '\\2713'; /* Unicode checkmark */
    color: white;
    font-size: 14px;
    position: absolute;
    top: 1px;
    left: 4px;
}

/* Buttons */
button {
    cursor: pointer;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    background-color: #0073aa;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #005177;
}

.export-button {
	margin-top: 10px;
	margin-bottom: 10px;
    cursor: pointer;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #4CAF50, #388E3C);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.clear-button {
    cursor: pointer;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #f87272, #e01616);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.clear-button:hover {
    background: #8d0000;
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.export-button:hover {
    background: #0a9400;
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

button.remove-row {
    cursor: pointer;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #f87272, #e01616);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

button.remove-row:hover {
    background: #8d0000;
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

#add-row {
    margin-top: 30px;
    margin-bottom: -10px;
    cursor: pointer;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #1E88E5, #1565C0);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

#add-row:hover {
    background: #0D47A1;
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

#submit {
	margin-top: 30px;
	margin-bottom: -10px;
    cursor: pointer;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #1ee561, #21c015);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

#submit:hover {
    background: #0a9400;
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Tab Navigation */
.nav-tab-wrapper {
    margin-bottom: 20px;
    border-bottom: 2px solid #1565C0;
}

.nav-tab {
    text-decoration: none;
    padding: 12px 25px;
    margin-right: 5px;
    border: 2px solid transparent;
    background: #F5F5F5;
    color: #1565C0;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 6px 6px 0 0;
}

.nav-tab-active {
    background: linear-gradient(to right, #1E88E5, #1565C0);
    color: #ffffff;
    font-weight: bold;
    border-bottom: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-tab:hover {
    background: #E3F2FD;
    color: #1565C0;
}

/* Prevent hover effect on active tab */
.nav-tab-active:hover {
    background: linear-gradient(to right, #1E88E5, #1565C0);
    color: #ffffff;
}

/* General tab content */
.tab-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Style for the popup buttons container */
#confirmation-popup button {
    display: inline-block;
    width: 100px; /* Ensures both buttons have the same width */
    padding: 4px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

/* Default style for the 'Yes' button */
#confirm-clear {
    background: transparent;
    border: 1px solid #d61c1c;
    color: #d61c1c;
}

/* Hover effect for the 'Yes' button */
#confirm-clear:hover {
    background: #d61c1c;
    color: #fff;
}

/* Cancel button remains as it is */
#cancel-clear {
    background: #f4f4f4;
    border: 1px solid #ccc;
    color: #333;
}

/* Optional: Hover effect for the 'Cancel' button if needed */
#cancel-clear:hover {
    background: #eaeaea;
}

/* Hide admin notices only on the Redirect Manager settings page */
body.admin_page_redirect-manager .notice,
body.admin_page_redirect-manager .updated,
body.admin_page_redirect-manager .error {
    display: none !important;
}

#analytics-table-head {
    background: linear-gradient(to right, #1E88E5, #1565C0);
    color: #6e6e6e;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	border-collapse: collapse;
}

#analyitics-table {
	width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Ensures columns adhere to specified widths */
    margin-bottom: 20px;
	margin-top: 10px;
}

#analyitics-table th,
#analyitics-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.widefat thead tr th {
	color: #fff;
}

/* Adjust column widths */
#analyitics-table th:first-child,
#analyitics-table td:first-child,
#analyitics-table th:nth-child(2),
#analyitics-table td:nth-child(2) {
    width: 30%; /* Adjust column widths as needed */
    text-overflow: ellipsis;
    overflow: hidden;
}

#analyitics-table th:nth-child(3),
#analyitics-table td:nth-child(3) {
    width: 10%;
    text-align: center;
}

#analyitics-table th:nth-child(4),
#analyitics-table td:nth-child(4) {
    width: 10%;
    text-align: center;
}

/* Toggle Switch Wrapper */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

/* Hide Default Checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Toggle Background */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

/* Small Circle Inside Toggle */
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* When Checkbox is Checked (Active State) */
input:checked + .slider {
    background-color: #4CAF50;
}

/* Move the Small Circle Right */
input:checked + .slider:before {
    transform: translateX(18px);
}

/* Add a Glowing Effect When Active */
input:checked + .slider {
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

/* Align Buttons Side by Side */
.button-container {
    display: flex;
    align-items: center; /* Align vertically */
    gap: 10px; /* Space between buttons */

}

/* Styling for Import & Export Buttons */
.redirect-buttons-general {
    display: flex !important;
    justify-content: flex-end !important; /* Force it */
    align-items: center !important;
    gap: 15px;
    margin: 10px 0; /* Prevent margin collapse */
    min-height: 45px; /* Ensures enough space */
	padding-top: 20px;
}

/* Export Redirects Button */
.export-redirects-button,
.import-redirects-button {
    min-width: 100px;
    height: 28px; /* Standard height */
    text-align: center;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Prevents overflow */
    margin: 0 !important; /* Prevent any shifting */
	background: linear-gradient(to right, #1ee561, #21c015);
}

/* Button Hover Effect */
.export-redirects-button:hover, .import-redirects-button:hover {
    background: #0D47A1;
}

.export-analytics {
	display: flex;
	justify-content: flex-end;
}

.license-key-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 12px 18px;
    border-radius: 6px;
    margin: 30px 0 0;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 60%;
}

.license-key-label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-right: 15px;
    white-space: nowrap;
}

#rm-license-key-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease-in-out;
}

#rm-license-key-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 8px rgba(0, 124, 186, 0.3);
    outline: none;
}

#rm-license-activate-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 6px;
    margin-left: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#rm-license-activate-btn:hover {
    background: #005a9e;
}

#rm-license-activate-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#rm-license-message {
    margin-top: 10px;
    font-weight: bold;
    color: #007cba;
}

.table-header{
	position: sticky;
    top: 30px;
	z-index: 5;
	background: linear-gradient(to right, #1E88E5, #1565C0) !important;
	color: #fff !important;
}

.table-header-an{
	background: linear-gradient(to right, #1E88E5, #1565C0) !important;
	color: #fff !important;
}

#prev-page {
	margin-top: 30px;
    margin-bottom: -10px;
    cursor: pointer;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #1E88E5, #1565C0);
    transition: all 0.3sease-in-out;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
 #next-page {
	margin-top: 30px;
    margin-bottom: -10px;
    cursor: pointer;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #1E88E5, #1565C0);
    transition: all 0.3sease-in-out;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.redirect-search-container {
  text-align: left;
  margin-bottom: 1rem;
  margin-top: -60px;
}

#redirect-search {
  padding: 0.7rem 1.2rem;
  width: 50%;
  max-width: 400px;
  border: 2px solid #1E88E5;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  outline: none;
}

#redirect-search:focus {
  border-color: #1ee561;
  box-shadow: 0 0 10px rgb(35 200 24 / 50%);
}

button.import-redirects-button[disabled] {
  background-color: #ccc !important;
  color: #666 !important;
  border: 1px solid #aaa !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  box-shadow: none !important;
  pointer-events: none;
  transition: none;
}

#rm-license-deactivate-btn{
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 6px;
    margin-left: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.wrap {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

h1.wp-heading-inline {
    font-size: 24px;
    margin: 0 0 20px;
}

.nav-tab-wrapper {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.nav-tab {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-bottom: none;
    background: #f1f1f1;
    color: #0073aa;
    text-decoration: none;
    margin-right: 4px;
}

.nav-tab-active {
    background: #fff;
    border-bottom: 1px solid #fff;
    font-weight: bold;
}

.form-table {
    width: 100%;
    max-width: 700px;
    border-spacing: 0;
}

.form-table th {
    text-align: left;
    padding: 8px 10px;
}

.form-table td {
    padding: 8px 10px;
}

.regular-text {
    width: 100%;
    padding: 6px;
}

.button {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    border-radius: 2px;
    font-size: 13px;
}

.button-primary {
    background: #0073aa;
    color: #fff;
    border-color: #006799;
}

.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wp-list-table th,
.wp-list-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.wp-list-table tr:nth-child(even) {
    background: #f9f9f9;
}

.redirect-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.redirect-table th,
.redirect-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.redirect-table thead {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.redirect-controls,
.footer-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 16px 0;
    gap: 10px;
}

.footer-controls {
    justify-content: flex-start;
}

.btn {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.btn-export,
.btn-import {
    background: green;
    color: white;
}

.btn-add {
    background: #0073aa;
    color: white;
}

.btn-save {
    background: #00c853;
    color: white;
}

.btn-delete {
    background: #d32f2f;
    color: white;
    font-weight: bold;
}

/* Inputs and Selects */
.redirect-table input[type="text"],
.redirect-table select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 30px;
    transition: .4s;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #00c853;
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

/* Delete Button */
.btn-danger {
    background-color: #e53935;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.btn-danger:hover {
    background-color: #c62828;
}

/* Action Buttons */
.export-btn, .import-btn {
    background-color: #00c853;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}
.export-btn:hover, .import-btn:hover {
    background-color: #00b342;
}
.add-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.add-btn:hover {
    background-color: #006799;
}
.save-btn {
    background-color: #4caf50;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.save-btn:hover {
    background-color: #449d48;
}

.license-settings {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    max-width: 700px;
}

.license-settings input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.license-settings .license-btn {
    background-color: #dcdcdc;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: not-allowed;
    font-weight: bold;
    font-size: 14px;
}

.outdated-demo-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
    margin-bottom: 20px;
}

.outdated-demo-note {
    padding: 20px;
    background: #fff3cd;
    border-left: 6px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
    max-width: 850px;
    width: 90%;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.search-bar-wrapper {
    max-width: 300px;
    margin-bottom: -40px !important;
    padding-top: 20px;
}

.pagination-second-div{
    margin-top: 15px;
}