*{
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}
html,body{overflow-x: hidden;}

body {
  font-family: system-ui, 'Segoe UI', sans-serif;
  padding-top: 60px;
  background-color: aliceblue;
  padding-bottom: 100px;
}

/* ----------------- wallets.html styles ----------------- */

.header{
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  text-align: center;
  border-bottom: 1px solid hsl(0, 0%, 47%);
  background-color: white;
  z-index: 100;
}
.back-button {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: #007bff;
  font-size: 16px;
}
.header h1{font-size: 22px;}

.search-container {
  position: relative;
  display: flex;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
}

.searchInput {
  flex: 1;
  max-width: 600px;
  padding: 10px 20px;
  padding-left: 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  &:focus{
    outline: none;
    border: 1px solid #007bff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  }
}
.search-icon {
  position: absolute;
  left: 6px;
  top: 6px;
  color: #888;
  font-size: 16px;
}
img { 
  height: 40px;
  width: 40px;
  border-radius: 4px;
}

.wallet {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  width: 150px;
  height: 150px;
  background-color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  transition: all 0.15s ease-in;
  &:hover{
    transform: translateY(-4px);
    border: 1px solid #0000ff;
  }
}
.wallet span {
  font-size: 14px;
  text-align: center;
  color: #333;
}
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  row-gap: 10px;
  column-gap: 10px;
  padding-left: 20px;
  padding-right: 20px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}
.lightbox-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  display:block;
  overflow: hidden;
}
.closeBtn {
  position: absolute;
  top: 1px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #000;
}
.wallet-details{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}
.message {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
  padding: 10px;
  border-radius: 6px;
  border: none;
  width:90%;
  &:focus{
    outline: none;
    border: 1px solid #007bff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  }
}
.submit-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: all 0.3s ease;
  &:hover{
    background-color: #0056b3;
  }
}
@media (max-width: 720px) {
  .wallet-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .wallet {
    width: 120px;
    height: 120px;
  }
  img{
    height: 30px;
    width: 30px;
  }
  .lightbox-content {
    width: 90%;
    height: auto;
  }
}