@import '/StationeersServerUI/static/css/variables.css';

button {
  padding: 1rem 2rem;
  font-size: 1rem;
  background-color: #232338;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 0 10px rgba(0, 255, 171, 0.4), 0 0 20px rgba(0, 255, 171, 0.1);
  font-family: 'Press Start 2P', cursive;
  line-height: 1.5;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0, 255, 171, 0.2), transparent);
  transition: left var(--transition-slow);
}

button:hover::before {
  left: 100%;
}

button:hover {
  background-color: #333350;
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 255, 171, 0.7), 0 0 30px rgba(0, 255, 171, 0.5);
}

button:active {
  transform: translateY(1px);
}

/* Form inputs */
input[type="text"],
input[type="password"],
input[type="submit"],
select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--primary);
    border: 2px solid var(--primary-dim);
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    outline: none;
}

input[type="submit"] {
    width: auto;
    padding: 12px 30px;
    background-color: rgba(0, 255, 171, 0.2);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
}

input[type="submit"]:hover {
    background-color: var(--primary);
    color: #000;
    transform: translateY(-3px);
}

.save-button,
.back-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    background-color: #232338;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 0 10px rgba(0, 255, 171, 0.4), 0 0 20px rgba(0, 255, 171, 0.1);
    font-family: 'Press Start 2P', cursive;
    line-height: 1.5;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    text-align: center;
}

/* Save icon (using a floppy disk icon) */
.save-button {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300FFAB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Back icon (using the arrow icon you provided) */
.back-button {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300FFAB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}