@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500&display=swap");
body,
html {
  scroll-behavior: smooth;
}

/* Styles pour l'accessibilité */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Styles de pagination */
.tools_page_url-rewrite-analyzer .tablenav {
  margin: 20px 0;
  font-family: "Ubuntu", sans-serif;
}

.tools_page_url-rewrite-analyzer .tablenav-pages {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tools_page_url-rewrite-analyzer .tablenav-pages .displaying-num {
  margin-right: 15px;
  font-weight: 300;
  color: #666;
}

.tools_page_url-rewrite-analyzer .tablenav-pages .pagination-links {
  display: flex;
  align-items: center;
}

.tools_page_url-rewrite-analyzer .tablenav-pages .pagination-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  margin: 0 5px;
  padding: 0 10px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  background-color: white;
  color: #021041;
}

.tools_page_url-rewrite-analyzer .tablenav-pages .pagination-links .page-numbers.current {
  background-color: #021041;
  color: white;
  border-color: #021041;
}

.tools_page_url-rewrite-analyzer .tablenav-pages .pagination-links .page-numbers:hover:not(.current) {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.tools_page_url-rewrite-analyzer .tablenav-pages .pagination-links .prev,
.tools_page_url-rewrite-analyzer .tablenav-pages .pagination-links .next {
  font-size: 18px;
  line-height: 1;
}

/* Variante dark mode */
.tools_page_url-rewrite-analyzer.dark .tablenav-pages .displaying-num {
  color: #bbb;
}

.tools_page_url-rewrite-analyzer.dark .tablenav-pages .pagination-links .page-numbers {
  background-color: #0a1a5e;
  border-color: #152987;
  color: white;
}

.tools_page_url-rewrite-analyzer.dark .tablenav-pages .pagination-links .page-numbers.current {
  background-color: white;
  color: #021041;
  border-color: white;
}

.tools_page_url-rewrite-analyzer.dark .tablenav-pages .pagination-links .page-numbers:hover:not(.current) {
  background-color: #152987;
  border-color: #2a3fad;
}

/* Base styles */
.tools_page_url-rewrite-analyzer {
  font-family: "Ubuntu", sans-serif;
  background: #f9f9f9;
}

/* Thème clair / Light theme */
.tools_page_url-rewrite-analyzer .modal-change-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools_page_url-rewrite-analyzer .modal-change-ui.open {
  opacity: 1;
  visibility: visible;
}
.tools_page_url-rewrite-analyzer .modal-change-ui form {
  background: white;
  padding: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.tools_page_url-rewrite-analyzer .modal-change-ui form .input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools_page_url-rewrite-analyzer .modal-change-ui form .input-wrapper .ui-select {
  background-color: aliceblue;
  color: black;
  padding: 40px;
  border-radius: 5px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-width: 2px;
  border-color: transparent;
  transition: all 0.2s ease;
}
.tools_page_url-rewrite-analyzer .modal-change-ui form .input-wrapper .ui-select.selected {
  border-color: black;
}
.tools_page_url-rewrite-analyzer .modal-change-ui form .input-wrapper input[type=radio] {
  display: none;
}
.tools_page_url-rewrite-analyzer .head-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: sticky;
  top: 32px;
  background-color: #f9f9f9;
}
.tools_page_url-rewrite-analyzer .head-wrapper.open {
  background: none;
}
.tools_page_url-rewrite-analyzer .head-wrapper h2 {
  font-family: "Ubuntu", sans-serif;
  color: #021041;
  padding-bottom: 0;
  margin: 0;
  font-size: 20px;
  margin-right: auto;
}
.tools_page_url-rewrite-analyzer .head-wrapper #flush-rewrite-rules,
.tools_page_url-rewrite-analyzer .head-wrapper #update-ui {
  position: sticky;
  top: 50px;
  background: transparent;
  padding: 15px;
  border: 2px solid #021041;
  border-radius: 5px;
  font-size: 14px;
  color: #021041;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.tools_page_url-rewrite-analyzer .head-wrapper #flush-rewrite-rules:hover,
.tools_page_url-rewrite-analyzer .head-wrapper #update-ui:hover {
  background-color: #021041;
  color: white;
}
.tools_page_url-rewrite-analyzer .head-wrapper #flush-rewrite-rules span,
.tools_page_url-rewrite-analyzer .head-wrapper #update-ui span {
  margin-right: 10px;
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
.tools_page_url-rewrite-analyzer .head-wrapper #flush-rewrite-rules.rotate svg,
.tools_page_url-rewrite-analyzer .head-wrapper #update-ui.rotate svg {
  animation: rotate 2s linear infinite;
}
.tools_page_url-rewrite-analyzer .head-wrapper #update-ui {
  margin-right: 20px;
}
.tools_page_url-rewrite-analyzer #_regex-search-bar {
  display: flex;
  padding-bottom: 20px;
}
.tools_page_url-rewrite-analyzer #_regex-search-bar .prefix-url {
  display: flex;
  align-items: center;
  background: white;
  font-family: "Ubuntu", sans-serif;
  font-size: 16px;
  font-weight: 300;
  padding: 20px;
  padding-right: 0;
  border-radius: 5px 0 0 5px;
}
.tools_page_url-rewrite-analyzer #_regex-search-bar #regex-tester {
  margin: 0;
  width: 100%;
  padding: 20px;
  padding-left: 0;
  border: none;
  background: white;
  color: black;
  font-family: "Ubuntu", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  border-radius: 0;
}
.tools_page_url-rewrite-analyzer #_regex-search-bar #regex-tester:focus {
  outline: none;
  box-shadow: none;
}
.tools_page_url-rewrite-analyzer #_regex-search-bar .clear {
  border: none;
  background: white;
  padding: 20px;
  border-left: 1px solid lightgrey;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  color: #3c434a;
}
.tools_page_url-rewrite-analyzer table {
  border-radius: 5px;
  border: none;
}
.tools_page_url-rewrite-analyzer table thead tr th {
  font-size: 15px;
  border-color: #dedede;
  background: aliceblue;
  padding: 20px;
}
.tools_page_url-rewrite-analyzer table thead tr th:nth-child(1) {
  border-radius: 5px 0 0 0;
}
.tools_page_url-rewrite-analyzer table thead tr th:nth-child(2) {
  border-radius: 0 5px 0 0;
}
.tools_page_url-rewrite-analyzer table tbody tr {
  transition: all 0.3s ease;
  cursor: pointer;
}
.tools_page_url-rewrite-analyzer table tbody tr td {
  border-bottom: 1px solid #dedede;
  padding: 20px;
  line-height: 1;
  vertical-align: middle;
  font-weight: 300;
}
.tools_page_url-rewrite-analyzer table tbody tr td span {
  font-size: 15px;
}
.tools_page_url-rewrite-analyzer table tbody tr td:last-child {
  display: flex;
  flex-direction: column;
}
.tools_page_url-rewrite-analyzer table tbody tr td:last-child .queryvar-public {
  padding-bottom: 10px;
}
.tools_page_url-rewrite-analyzer table tbody tr td:last-child .queryvar-public:last-child {
  padding-bottom: 0;
}
.tools_page_url-rewrite-analyzer table tbody tr:hover {
  background-color: aliceblue;
}
.tools_page_url-rewrite-analyzer .urap-btt-wrapper {
  position: fixed;
  right: 0;
  bottom: 20px;
  transition: all 0.3s ease;
  transform: translateX(100%);
}
.tools_page_url-rewrite-analyzer .urap-btt-wrapper button {
  background: white;
  border: none;
  color: #021041;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tools_page_url-rewrite-analyzer .urap-btt-wrapper.open {
  transform: translateX(-30px);
}

/* Thème sombre / Dark theme */
.tools_page_url-rewrite-analyzer.dark {
  background-color: #021041;
}
.tools_page_url-rewrite-analyzer.dark .modal-change-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools_page_url-rewrite-analyzer.dark .modal-change-ui.open {
  opacity: 1;
  visibility: visible;
}
.tools_page_url-rewrite-analyzer.dark .modal-change-ui form {
  background: white;
  padding: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.tools_page_url-rewrite-analyzer.dark .modal-change-ui form .input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools_page_url-rewrite-analyzer.dark .modal-change-ui form .input-wrapper .ui-select {
  background-color: aliceblue;
  color: black;
  padding: 40px;
  border-radius: 5px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-width: 2px;
  border-color: transparent;
  transition: all 0.2s ease;
}
.tools_page_url-rewrite-analyzer.dark .modal-change-ui form .input-wrapper .ui-select.selected {
  border-color: black;
}
.tools_page_url-rewrite-analyzer.dark .modal-change-ui form .input-wrapper input[type=radio] {
  display: none;
}
.tools_page_url-rewrite-analyzer.dark .head-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: sticky;
  top: 32px;
  background: #021141;
}
.tools_page_url-rewrite-analyzer.dark .head-wrapper.open {
  background: none;
}
.tools_page_url-rewrite-analyzer.dark .head-wrapper h2 {
  font-family: "Ubuntu", sans-serif;
  color: white;
  padding-bottom: 0;
  margin: 0;
  font-size: 20px;
  margin-right: auto;
}
.tools_page_url-rewrite-analyzer.dark .head-wrapper #flush-rewrite-rules,
.tools_page_url-rewrite-analyzer.dark .head-wrapper #update-ui {
  position: sticky;
  top: 50px;
  background: transparent;
  padding: 15px;
  border: 2px solid white;
  border-radius: 5px;
  font-size: 14px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.tools_page_url-rewrite-analyzer.dark .head-wrapper #flush-rewrite-rules:hover,
.tools_page_url-rewrite-analyzer.dark .head-wrapper #update-ui:hover {
  background-color: white;
  color: black;
}
.tools_page_url-rewrite-analyzer.dark .head-wrapper #flush-rewrite-rules span,
.tools_page_url-rewrite-analyzer.dark .head-wrapper #update-ui span {
  margin-right: 10px;
}
.tools_page_url-rewrite-analyzer.dark .head-wrapper #flush-rewrite-rules.rotate svg,
.tools_page_url-rewrite-analyzer.dark .head-wrapper #update-ui.rotate svg {
  animation: rotate 2s linear infinite;
}
.tools_page_url-rewrite-analyzer.dark .head-wrapper #update-ui {
  margin-right: 20px;
}
.tools_page_url-rewrite-analyzer.dark #_regex-search-bar {
  display: flex;
  padding-bottom: 20px;
}
.tools_page_url-rewrite-analyzer.dark #_regex-search-bar .prefix-url {
  display: flex;
  align-items: center;
  background: aliceblue;
  font-family: "Ubuntu", sans-serif;
  font-size: 16px;
  font-weight: 300;
  padding: 20px;
  padding-right: 0;
  border-radius: 5px 0 0 5px;
}
.tools_page_url-rewrite-analyzer.dark #_regex-search-bar #regex-tester {
  margin: 0;
  width: 100%;
  padding: 20px;
  padding-left: 0;
  border: none;
  background: aliceblue;
  color: black;
  font-family: "Ubuntu", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  border-radius: 0;
}
.tools_page_url-rewrite-analyzer.dark #_regex-search-bar #regex-tester:focus {
  outline: none;
  box-shadow: none;
}
.tools_page_url-rewrite-analyzer.dark #_regex-search-bar .clear {
  border: none;
  background: aliceblue;
  padding: 20px;
  border-left: 1px solid lightgrey;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  color: #3c434a;
}
.tools_page_url-rewrite-analyzer.dark table {
  border-radius: 5px;
  border: none;
}
.tools_page_url-rewrite-analyzer.dark table thead tr th {
  font-size: 15px;
  border-color: #dedede;
  background: aliceblue;
  padding: 20px;
}
.tools_page_url-rewrite-analyzer.dark table thead tr th:nth-child(1) {
  border-radius: 5px 0 0 0;
}
.tools_page_url-rewrite-analyzer.dark table thead tr th:nth-child(2) {
  border-radius: 0 5px 0 0;
}
.tools_page_url-rewrite-analyzer.dark table tbody tr {
  transition: all 0.3s ease;
  cursor: pointer;
}
.tools_page_url-rewrite-analyzer.dark table tbody tr td {
  border-bottom: 1px solid #dedede;
  padding: 20px;
  line-height: 1;
  vertical-align: middle;
  font-weight: 300;
}
.tools_page_url-rewrite-analyzer.dark table tbody tr td span {
  font-size: 15px;
}
.tools_page_url-rewrite-analyzer.dark table tbody tr td:last-child {
  display: flex;
  flex-direction: column;
}
.tools_page_url-rewrite-analyzer.dark table tbody tr td:last-child .queryvar-public {
  padding-bottom: 10px;
}
.tools_page_url-rewrite-analyzer.dark table tbody tr td:last-child .queryvar-public:last-child {
  padding-bottom: 0;
}
.tools_page_url-rewrite-analyzer.dark table tbody tr:hover {
  background-color: aliceblue;
}
.tools_page_url-rewrite-analyzer.dark #footer-thankyou,
.tools_page_url-rewrite-analyzer.dark #footer-upgrade {
  color: white;
}
.tools_page_url-rewrite-analyzer.dark .urap-btt-wrapper {
  position: fixed;
  right: 0;
  bottom: 20px;
  transition: all 0.3s ease;
  transform: translateX(100%);
}
.tools_page_url-rewrite-analyzer.dark .urap-btt-wrapper button {
  background: #021141;
  border: none;
  color: white;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tools_page_url-rewrite-analyzer.dark .urap-btt-wrapper.open {
  transform: translateX(-30px);
}

/* Common styles */
.regexgroup,
.regexgroup-target {
  color: #3c434a;
  font-style: italic;
}

.regexgroup,
.queryvalue {
  font-weight: bold;
}

.queryvar-unread {
  color: #ff7878;
  font-style: italic;
  text-decoration: line-through;
}

.regex-repeater-target.highlight {
  text-decoration: underline;
}

#regex-help-wrap dd {
  margin-left: 1em;
}

.regexgroup-target-value {
  display: none;
}

.rewrite-rule-unmatched {
  display: none;
}

.rewrite-rule-matched.rewrite-rule-matched-first {
  background-color: #d9efe4;
}
.rewrite-rule-matched .regexgroup-target-value {
  display: inline;
}
.rewrite-rule-matched .regexgroup-target {
  display: none;
}
.rewrite-rule-matched:hover td {
  color: black;
}
