@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400;700&display=swap');

:root {
  --color-primary: #007bff;
  --color-secondary: #ccc;
  --color-background: #212121;
  --color-text: #fff;
}

body {
  font-family: 'Red Hat Text', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  margin: 0;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo{
  width: 40px;
  padding: 2px;
  
}

.header {
  display: flex;
  align-items: center;

}

.logo-container {
  margin-right: 10px;
  
}

h1 {

  line-height: 1.5;
  /* Apply the linear gradient to the text content of the logo */
    background: linear-gradient(90deg, #7f7dd1, #548dd9 100%, #548dd9 0);
    -webkit-background-clip: text;
    color: transparent;
    border: none;
    cursor: pointer;
    font-size: 25px;
    font-weight: 600;
    margin-top: 0%;
    margin-bottom: 0%;
}

h2 {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 5px;
  max-width: 52ch;
  padding: .3em;
}

p {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  font-weight: 400;
}
a {
  display: inline-block;
  padding: .5em 1.5em;
  background-color: var(--color-primary);
  color: var(--color-text);
  text-decoration: none;
 
  border-radius: 0.3em;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: .875rem;
  text-align: center;
}

button {
  padding: 8px 8px;
  background: linear-gradient(90deg, #7f7dd1, #548dd9 100%, #548dd9 0);
  color: #f0ecec;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 5px;
  font-weight: bold;
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.5s ease-in-out forwards;
}

button:hover {
  background-color: #0c53e2;
}



.dataBase a {
  display: inline-block;
  padding: 5px 5px;
  background-color: #131314;
  color: #f0ecec;
  text-decoration: none;
  border: none;
  font-size: small;
  font-weight: 600;
  border-radius: 25px;
  margin-left: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.5s ease-in-out forwards;
}

.install-app-button {
  display: inline-block;
  padding: 5px 10px;
  background-color: #131314;
  color: #f0ecec;
  border: none;
  font-size: small;
  font-weight: 600;
  border-radius: 25px;
  margin-left: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.5s ease-in-out forwards;
}

.install-app-button:hover {
  background-color: #0056b3;
}

.install-app-button[hidden] {
  display: none !important;
}

.dataBase a:hover {
  background-color: #0056b3;
  /* Button background color on hover */
}

footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
}

.box {
  background-color: #131314;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 10px;
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.5s ease-in-out forwards;
  font-family: 'Courier New', Courier, monospace;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.box-content {
  width: 100%;
  min-width: 0;
}




.space-between {
  display: flex;
  justify-content: center;
  margin-bottom: 3px;
}

.space-between-small {
  display: flex;
  justify-content: center;
}

#pubkey {
  display: flex;
  font-size: 16px;
  padding: 5px;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  
  margin: 0 auto;
  display: block;
  color: var(--color-text);
  background-color: #131314;
  width: 350px;
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.5s ease-in-out forwards;
}



@media (min-width: 668px) {
  /* Medium devices (e.g., tablets) */
  #pubkey {
    width: 500px;
  }
}


#pubkey::placeholder {
  color: #999;
}

.wrapper {
  padding-bottom: 20px;
}

.divider {
  position: relative;
  margin-top: 5px;
  height: 5px;
  margin-bottom: 5px;
}

.div-transparent:before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  width: 90%;
  height: 1px;
  background-image: linear-gradient(to right, transparent, rgb(48,49,51), transparent);
}

h4 {
  font-size: 1.4rem;
  font-weight: 450;
}

h5 {
  margin: 0;
  padding: 10px;
  text-align: center;
  display: inline-block;
  font-weight: 600;
}

input[type="file"]::-webkit-file-upload-button {
  padding: 5px 10px;
  background-color: #35373a;
  color: #e3e2e2;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 4px;
  font-weight: 600;
  
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #b0b0b3;
}



/* Style the toggle button container */
.toggle-button {
  display: inline-block;

  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hide the input checkbox */
.toggle-button input[type="checkbox"] {
  display: none;
}

/* Change the background color and text color when the toggle is checked */
.toggle-button input[type="checkbox"]:checked+label {
  background-color: #e82f0e;
  color: white;
}

/* Style the label for the toggle switch */
.toggle-button label {
  display: inline-block;
    padding: 5px 5px;
    background-color: #131314;
    /* Button background color */
    color: #f0ecec;
    text-decoration: none;
    border: none;
    font-size: small;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
    animation: slideUp 0.5s ease-in-out forwards;
}

/* Style the slider knob */
.toggle-button input[type="checkbox"]+label::before {

  display: none;
  
}

/* Move the slider knob to the right when checked */
.toggle-button input[type="checkbox"]:checked+label::before {
  transform: translateX(20px);
}



@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translatex(100%);
    opacity: 0;
  }

  to {
    transform: translatex(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}


footer p {
  margin: 0;
  padding: 10px;
  text-align: center;
  display: inline-block;
}

#file-selector{
  font-size: small;
  font-weight: 600;
}

/* ── Sync Status Panel ──────────────────────────────────────────────── */

.sync-panel {
  width: 100%;
  box-sizing: border-box;
  background: #131314;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 5px 7px rgba(0,0,0,0.35);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
}

.sync-phases {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.sync-phase {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  color: #888;
  transition: color 0.2s;
}

.sync-phase.active { color: #fff; }
.sync-phase.done   { color: #4ecdc4; }

.sync-phase .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sync-phase.active .dot { background: #548dd9; box-shadow: 0 0 6px #548dd9; }
.sync-phase.done   .dot { background: #4ecdc4; }

#sync-progress {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  background: #2a2a2d;
  display: block;
  margin-bottom: 8px;
}

#sync-progress::-webkit-progress-bar {
  background: #2a2a2d;
  border-radius: 3px;
}

#sync-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #7f7dd1, #548dd9);
  border-radius: 3px;
  transition: width 0.3s ease;
}

#sync-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #7f7dd1, #548dd9);
  border-radius: 3px;
}

.sync-events {
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
  margin: 0 0 6px;
  min-height: 18px;
}

.relay-section {
  border-top: 1px solid #2a2a2d;
  padding-top: 8px;
  margin-top: 4px;
}

.relay-header {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
  font-weight: 600;
  text-align: left;
  display: block;
}

.relay-scroll {
  max-height: 120px;
  overflow-y: auto;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #888;
  text-align: left;
  -webkit-overflow-scrolling: touch;
}

.relay-scroll::-webkit-scrollbar {
  width: 3px;
}

.relay-scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}


.file-info-compact {
  background: #1a1a1c;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 12px auto;
  width: 100%;
  max-width: 350px; /* Match pubkey width */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

.file-name {
  flex: 1 1 0%;
  min-width: 0;
  font-weight: 500;
  color: #fff;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: #888;
  font-size: 0.65rem;
  font-family: 'Courier New', monospace;
  background: #000;
  padding: 2px 4px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.file-clear {
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.2s;
  line-height: 1;
  flex: 0 0 auto;
}

.file-clear:hover {
  color: #ff5f5f;
  transform: scale(1.2);
}

