/* Alert box */
.alert-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  max-width: 100%;
  background: #c0c0c0;
  border: 1px solid #000;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  font-size: 13px;
  z-index: 1000;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Header */
.alert-header {
  background: linear-gradient(to right, #000080, #3366cc);
  color: #fff;
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

/* Close button */
.alert-control-button {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px solid #000;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.alert-control-button.close::before {
  content: "×";
  color: #000;
}

/* === Content Layout === */
.alert-content {
  background: #c0c0c0;
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

/* Left section: icon and form */
.alert-left {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: nowrap;
}

/* Icon styling */
.alert-icon img {
  width: 80px;
  height: 80px;
  margin-top: 5px;
  margin-right: 20px;
}

/* Message and inputs */
.alert-message {
  display: flex;
  flex-direction: column;
}

.top-text {
  margin-bottom: 10px;
}

.input-row label {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.input-row input {
  width: 160px;
  padding: 2px;
  margin-left: 10px;
  border: 1px inset #000;
  background: #fff;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 13px;
}

/* Buttons section */
.alert-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  margin-left: 5px;
}

/* Button styling */
.alert-button {
  flex: 1;
  background: #c0c0c0;
  border: 2px solid #000;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  padding: 2px 20px;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 13px;
  cursor: default;
  width: 100px;
}

.alert-button:hover {
  background: #d3d3d3;
}
.alert-button:active {
  border: #868a8e inset;
  border-color: #000 #fff #fff #000;
}
/* === Responsive Styles === */
@media (max-width: 768px) {
  .alert-window {
    width: 90%;
    font-size: 12px;
  }

  .alert-content {
    flex-direction: column;
    align-items: center;
  }

  .alert-left {
    flex-direction: column;
    align-items: center;
  }

  .alert-message {
    align-items: center;
    width: 100%;
  }

  .input-row label {
    flex-direction: column;
    align-items: center;
  }

  .input-row input {
    width: 100%;
    max-width: 250px;
    font-size: 12px;
  }

  .alert-buttons {
    flex-direction: row;
    justify-content: center;
    margin-top: 15px;
    gap: 12px;
  }

  .alert-button {
    font-size: 12px;
    padding: 2px 12px;
  }
}

@media (max-width: 480px) {
  .alert-window {
    width: 98%;
    font-size: 11px;
  }

  .alert-button {
    font-size: 11px;
    padding: 2px 8px;
    margin: 0 3px;
  }

  .input-row input {
    max-width: 100%;
  }

  .alert-header {
    flex-direction: column;
    text-align: center;
  }

  .alert-control-button {
    margin-top: 5px;
  }
}
