::selection {
  background: rgba(249, 237, 50, 0.2);
  color: black;
}

*,
input,
button {
  -webkit-appearance: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  background-color: #fff;
  padding-bottom: 24px;
  padding-left: 24px;
  padding-right: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  font-size: 16px;
  line-height: 22px;
  display: flex;
  justify-content: center;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
  width: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header img {
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

.header nav {
  display: flex;
  gap: 16px;
}

h1 {
  font-size: 16px;
  font-weight: 600;
}

h2,
h3 {
  margin-bottom: 4px;
}
h3 + p {
  margin-top: 0px;
}

a {
  color: #000;
  text-decoration: none;
}

input {
  background-color: #f1f1f1;
  border: 1px solid #0000;
  border-radius: 8px;
  margin-bottom: 0;
  padding: 9px 12px 8px;
}

input:hover {
  background-color: #f7f7f7;
  border-style: solid;
  border-color: #0000000d;
}

input:focus {
  background-color: #fff;
  border-color: white;
  outline: none;
  box-shadow: 0 0 0 0.5px #ce904e, 0 0 0 4px #f9ed3280;
}

button {
  background: none;
  box-shadow: inset 0 0 0 0.5px #00000010;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  cursor: pointer;
}

button:hover {
  box-shadow: inset 0 0 0 0.5px #00000020, inset 0 -1px 1px #00000027;
}

button:active {
  box-shadow: inset 0 0 0 0.5px #00000020, inset 0 1px 1px #00000027;
}

button.primary {
  color: var(--black);
  text-shadow: 0 1px #fff3, 1px 1px 6px #fff;
  background-color: #f9ed32;
  background-image: linear-gradient(#fcff69, #f9ed32);
  border-radius: 8px;
  width: auto;
  margin-left: 0;
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.1s ease-out;
  display: block;
  box-shadow: 0 2px 4px #00000012, 0 1px 1px #00000024, 0 0 0 0.5px #eba6137a,
    inset 0 -1px #eba6133b;
  border: none;
  cursor: pointer;
}

button.primary:hover {
  background-image: linear-gradient(#feffb3, #f9ed32);
  box-shadow: 0 2px 4px #00000026, 0 1px 1px #0000004d, 0 0 0 0.5px #eba6137a,
    inset 0 -1px #eba6133b;
}

button.primary:active {
  text-shadow: 0 -1px #fff6;
  background-image: linear-gradient(#ffe77a, #f9ed32);
  box-shadow: 0 0 0 0.5px #eba6137a, inset 0 1px #eba6133b;
}

.form {
  display: flex;
  gap: 4px;
  width: 100%;
}

.form > *:not(:last-child) {
  flex: 1;
}

#urlsList {
  border-top: 0.5px solid #00000012;
}

.url-item {
  display: flex;
  gap: 8px;
  border-bottom: 0.5px solid #00000012;
  align-items: center;
  height: 52px;
}

.url-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.url-item-content b {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.url-item-content img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.url-item-content span {
  opacity: 0.5;
}

.url-item-clicks {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-right: 16px;
}

.url-item-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.login {
  min-width: 300px;
}

.login form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  width: 100%;
  border-radius: 16px;
  margin-top: 100px;
}

.login label {
  margin-top: 8px;
}

.login button {
  margin-top: 8px;
  padding: 10px;
  font-size: 18px;
  width: 100%;
}

.spinner {
  color: #666;
  margin-top: 10px;
}

.hidden {
  display: none;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-row {
  display: flex; /* Aligne les éléments de la ligne horizontalement */
  gap: 8px; /* Espace entre le select et l'input */
}

#domainSelectContainer select {
  width: auto; /* Ajuste la largeur du select au contenu */
  white-space: nowrap; /* Empêche le texte de se couper */
}

#domainSelectContainer select {
  width: auto; /* Adjust the width to fit content */
  white-space: nowrap; /* Prevent text wrapping */
  max-width: 100%;
  width: 100%;
}

#selectedDomain[style*="display: none"] + input {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

#selectedDomain {
  width: 100%;
  flex: 1;
  height: 100%;
  border-radius: 8px;
  padding: 8px 20px 8px 10px;
  appearance: none;
  background-image: url("/images/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  font-size: 16px;
  box-shadow: inset 0 0 0 0.5px #00000020;
  border: none;
}

#selectedDomain:hover {
  box-shadow: inset 0 0 0 0.5px #00000020, inset 0 -1px 1px #00000027;
}

#selectedDomain:active {
  box-shadow: inset 0 0 0 0.5px #00000020, inset 0 1px 1px #00000027;
}

.domains-list {
  margin-bottom: 32px;
  margin-top: 8px;
  border-top: 0.5px solid #00000012;
}

.dns-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #f1f1f1;
  border-radius: 8px;
}

.dns-table th,
.dns-table td {
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #0000000d;
}

.dns-table th {
  font-weight: 600;
  background: #f7f7f7;
}

.dns-table tr:last-child td {
  border-bottom: none;
}

.dns-table code {
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  cursor: pointer;
}

.dns-table img {
  cursor: pointer;
  position: relative;
  top: 3px;
  left: 2px;
}

.dns-table thead tr:first-child th:first-child {
  border-top-left-radius: 8px;
}

.dns-table thead tr:first-child th:last-child {
  border-top-right-radius: 8px;
}

.dns-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.dns-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.hidden {
  display: none;
}

.verified-button {
  cursor: default;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #000;
  box-shadow: none;
}

.verified-button:hover,
.verified-button:active {
  box-shadow: none;
}

.avatar-section {
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0px 40px;
  border-radius: 16px;
  gap: 16px;
  align-content: center;
  box-shadow: inset 0 0 0 0.5px #00000020;
}

.avatar-section .avatar-image {
  position: relative;
}

.avatar-section .fg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 0.5px #00000020;
  border-radius: 50%;
  pointer-events: none;
}

.avatar-section img {
  background-color: #ffffff;
  border-radius: 50%;
  display: block;
}

.avatar-section .avatar-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avatar-section .avatar-controls button {
  width: 100%;
  text-align: center;
  justify-content: center;
  background-color: white;
}

.avatar-image {
  position: relative;
  width: 96px;
  height: 96px;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
}

.avatar-success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
  opacity: 0;
  border-radius: 50%;
  transition: opacity 0s;
  z-index: 3;
  pointer-events: none;
}

.avatar-success img {
  width: 24px; /* ajustez selon vos besoins */
  height: 24px;
  background-color: transparent;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}

.setting-item button {
  width: 100%;
  text-align: center;
  justify-content: center;
  background-color: white;
}
