body {
      font-family: "Apple Braille", sans-serif;
      background-color: #f4f4f4;
      margin: 0;
      padding: 20px;
      text-align: center;
    }
    .container {
      max-width: 600px;
      margin: auto;
      background: white;
      padding: 30px 20px;
      border-radius: 12px;
      box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    }
    .header {
      text-align: center;
      margin-bottom: 25px;
    }
    .header img {
      height: auto;
      max-height: 100px;
      width: auto;
      max-width: 300px;
      display: block;
      margin: 0 auto 10px auto;
    }
    .header h2 {
      margin: 0;
      font-size: 24px;
    }
    input, button {
      margin: 6px 0;
      padding: 10px;
      width: 100%;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 14px;
    }
    button {
      background-color: #007bff;
      color: white;
      border: none;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }
    button:hover {
      background-color: #0056b3;
    }
    #preview {
      width: 100%;
      height: 400px;
      border: 1px solid #ccc;
      margin-top: 20px;
      display: none;
    }

/* --- Info bar for date/time & location --- */
.info-bar{
  display:grid;
  grid-template-columns: 1fr;
  gap:8px;
  margin-bottom:16px;
  padding:10px 12px;
  background:#f0f7f7;
  border:1px dashed #6fa3a3;
  border-radius:8px;
  font-size:14px;
  text-align:left;
}
@media (min-width: 640px){
  .info-bar{ grid-template-columns: 1fr 1fr; }
}





/* --- Password generator UI (updated styling) --- */
.password-box{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0;
  align-items:center;
}
.password-box button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
       /* xanh dương nhạt */
  color: #fff;             /* chữ trắng */
  font-weight: 500;
  transition: background 0.3s ease;
}
.password-box button:hover {
       /* xanh đậm khi hover */
}
.password-box input {
  flex: 1;
  min-width: 220px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #bbb;
  font-size: 15px;
  color: #333;             /* chữ xám đậm, dịu mắt */
  background: #fafafa;     /* nền xám nhạt */
}

/* --- refined password UI styles --- */
.password-box button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  
  color: #fff;
  font-weight: 500;
  transition: background 0.3s ease;
}
.password-box button:hover {
  
}
.password-box input {
  flex: 1;
  min-width: 220px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #bbb;
  font-size: 15px;
  color: #333;
  background: #fafafa;
}

/* --- Global button style --- */
button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #ff6400;    /* company primary color */
  color: #fff;
  font-weight: 500;
  transition: background 0.3s ease;
}
button:hover {
  background: #007888;    /* darker shade on hover */
}

/* --- Global button theme (company color) --- */
button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #ff6400;   /* primary */
  color: #fff;
  font-weight: 500;
  transition: background 0.3s ease;
}
button:hover {
  background: #007888;   /* hover */
}


/* Prevent date line from breaking into two lines */
.info-bar > div { white-space: nowrap; }
#now { white-space: nowrap; }


/* === Unified button styling === */
button,
.password-box button,
button#preview,
button#download {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #0097a7;
  color: #fff;
  font-weight: 500;
  text-align: center;
  transition: background 0.3s ease;
}
button:hover {
  background: #007c8a;
}