/* Base styles */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.background {
  background-color: #121212;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main container (canvas) styling */
.container {
  background-color: #f3faff;
  width: 400px;
  height: 571px; /* Use 90% of the viewport height */
  border: 2px solid #0073e6;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Permanent header (blue bar with gradient) */
.header {
  background: linear-gradient(100deg, #005cb5, #0073f6);
  height: 50px;  /* Fixed height for the header */
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  flex-shrink: 0; /* Never shrink */
}

.logo-box img {
  width: 100px;  /* Adjust as needed */
}

/* Scrollable content area below the header */
.content {
  flex: 1; /* Take the remaining space */
  overflow-y: auto;
  padding: 30px;
}

h2 {
  text-align: center;
  color: #0073e6;
  margin-bottom: 10px;
  margin-top: 1px;
}

label {
  display: block;
  margin-top: 10px;
  color: #004080;
  font-weight: bold;
}

input[type="text"],
input[type="date"] {
  width: 93%;
  padding: 10px;
  margin-top: 2px;
  border: 1px solid #b3d1ff;
  border-radius: 6px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 6px;
  margin-top: 20px;
  cursor: pointer;
}

button:hover {
  background-color: #005bb5;
}

.message {
  margin-top: 20px;
  padding: 10px;
  color: #D8000C;
  background-color: #FFBABA;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

/* Mobile responsiveness using media queries */
@media (max-width: 480px) {
  .container {
    width: 95%;
    max-height: 80vh;
    border-width: 1px;
    flex-direction: column;
  }

  .header {
    height: 50px;
    padding: 0 10px;
  }

  .logo-box img {
    width: 80px;
  }

  .content {
    padding: 15px;
  }

  h2 {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  label, input, button {
    font-size: 0.9em;
  }

  button {
    padding: 8px;
    margin-top: 15px;
  }
}
