/* Font face untuk Inter */
@font-face { 
  font-family: 'Inter';
  src: url('/assets/Inter-Regular.woff2') format('woff2'),
       url('/assets/Inter-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face { 
  font-family: 'Inter';
  src: url('/assets/Inter-Italic.woff2') format('woff2'),
       url('/assets/Inter-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* Font & body */
body {
  color: #333;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  padding: 1rem;
  background-color: ghostwhite;
  margin: 0;
}

/* Tools button */
#tools-btn {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#tools-btn:hover {
  background: #555;
}

/* Container utama */
.container {
  background: #f0f8ff; /* Ghost White */
  max-width: 400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Judul */
h1 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

h6 {
  text-align: center;
}

/* Form input */
form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

form input,
form button {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 1rem;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

form button {
  background: #007bff;
  color: white;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

form button:hover {
  background: #005ecb;
}

/* Responsif form horizontal jika lebar >= 600px */
@media (min-width: 600px) {
  form {
    flex-direction: row;
  }

  form input {
    flex: 1;
  }

  form button {
    width: auto;
  }
}

/* Search */
#search-input {
  width: 95%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Token list */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  word-break: break-word;
  transition: background 0.2s;
}

li:hover {
  background: #f5f5f5;
}

.token-text {
  cursor: pointer;
  user-select: none;
  text-align: right;
  flex: 1;
  margin-right: 1rem;
  font-weight: 500;
  color: #333;
}

li button {
  background: transparent;
  border: none;
  color: #e74c3c;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Progress bar */
#progress-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
}

#progress-container {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  background: #007bff;
  width: 100%;
  transition: width 1s linear;
}

#countdown-text {
  min-width: 30px;
  font-size: 0.9rem;
  color: #555;
  font-family: monospace;
  text-align: right;
}

/* Tombol Import dan Export di container */
.buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  justify-content: center;
}

.buttons button {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.buttons button:nth-child(1) {
  background: #007bff;
  color: white;
}

.buttons button:nth-child(1):hover {
  background: #0056b3;
}

.buttons button:nth-child(3) {
  background: #28a745;
  color: white;
}

.buttons button:nth-child(3):hover {
  background: #1e7e34;
}

/* Ikon SVG atau emoji */
.buttons button::before {
  font-size: 1.2rem;
}

#token-list {
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

#token-list::-webkit-scrollbar {
  width: 6px;
}

#token-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f0f8ff;
  color: #555;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  max-width: 400px;
  z-index: 50;
  margin: 0 auto;
}
