/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

/* Container */
.tool-link {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Headings */
h1 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

/* Textarea and Input */
textarea,
input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
select {
  width: 100%;
  padding: 0.6rem;
  margin: 0.5rem 0 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #eee;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 1rem;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
  color: white;
    background-color: rgba(255, 255, 255, 0.05);

}

/* Labels and layout groups */
label {
  display: block;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.input-group,
.selector,
.controls,
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Button */
button {
  padding: 0.6rem 1.2rem;
  border: none;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #005fc4;
}

/* Download link */
a#downloadBtn,
a#downloadLink {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #28a745;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 1rem;
}

a#downloadBtn:hover,
a#downloadLink:hover {
  background: #1e7e34;
}

/* Results and Output Areas */
.output,
.result,
.results,
#result,
#resultArea,
#outputBox {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.2rem;
  font-size: 1rem;
  word-wrap: break-word;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Hidden class */
.hidden {
  display: none;
}

/* Canvas & Preview Cards */
canvas {
  max-width: 100%;
  margin-top: 1rem;
  border: 1px dashed #444;
  border-radius: 6px;
  background: white;
}

.preview-card {
  background: #262626;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}

.preview-card a {
  color: #46d160;
  font-size: 0.85rem;
  text-decoration: none;
}

.custom-upload-btn {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.custom-upload-btn:hover {
  border-color: #fff;
  box-shadow: 0 0 25px 5px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.custom-upload-btn span {
  display: block;
  text-align: center;
  width: 100%;
}
input.form-control {
  background-color: rgba(255, 255, 255, 0.05); /* subtle glass feel */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

input.form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
  color: #fff;
}
