* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* █▀▀ █▀█ █▄░█ ▀█▀ █▀█ █▀█ █░░   █▀█ ▄▀█ █▄░█ █▀▀ █░░ */
/* █▄▄ █▄█ █░▀█ ░█░ █▀▄ █▄█ █▄▄   █▀▀ █▀█ █░▀█ ██▄ █▄▄ */

.controls {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
  color: #667eea;
  margin-bottom: 25px;
  font-size: 28px;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
}

input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
}

button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 10px;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* █▀█ █▀█ █▀▀ █░█ █ █▀▀ █░█░█   █▀█ ▄▀█ █▄░█ █▀▀ █░░ */
/* █▀▀ █▀▄ ██▄ ▀▄▀ █ ██▄ ▀▄▀▄▀   █▀▀ █▀█ █░▀█ ██▄ █▄▄ */

.preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

#card {
  width: 500px;
  height: 707px;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  background-image: url(../public/img/bday_frame2.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.card-header {
  text-align: center;
  z-index: 1;
}

.photo-container {
  position: absolute;
  top: 40.2%;
  left: 12.5%;

  width: 13em;
  height: 13em;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1em 4em rgba(0, 0, 0, 0.2);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  color: #ccc;
  font-size: 18px;
  text-align: center;
}

.staff-box {
  position: absolute;
  right: 5%;
  top: 40%;
  z-index: 15;
  text-align: left;
  width: 10em;
}

.staff-name-box {
  background: #dbe9f2; /* Light Blue Div */
  border: 0.25em solid #127190;
  border-radius: 0.5em;
  padding: 0.5em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.logo {
  width: 9em;
  height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
}
.staff-name {
  color: #1d4b5c; /* Dark blue text for name */
  font-family: "Georgia", serif;
  font-weight: bold;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}
.staff-dept {
  color: #ffffff; /* White text for department on the dark teal background */
  font-family: "Georgia", serif;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
  }

  #card {
    width: 100%;
    max-width: 500px;
  }
}
