/* Header Styles */
header {
  background-color: teal;
  color: white;
  padding: 15px;
  text-align: center;
  margin-bottom: 20px;
}

h1.text-center {
  background-color: #fddf49;
  padding: 10px;
  margin-bottom: 20px;
}

body {
  padding-bottom: 0vh; /* 5% of the viewport height */
}

#saveAndPrintButton {
  padding: 12px 24px; /* Top/Bottom: 12px, Left/Right: 24px */
  margin: 10px; /* Add spacing around the button */
  border-radius: 5px; /* Optional: Rounded corners */
}


/* Unified Canvas Styles */
/* Unified Canvas Styles */
canvas {
  display: block;
  width: 100%; /* Match parent container width */
  height: auto; /* Maintain aspect ratio */
  border: 2px solid black; /* For debugging and visibility */
  border-radius: 4px;
  background-color: white; /* Ensure white background */
}


/* Override Specific Pads */
#studentSignaturePad, #evaluatorSignaturePad {
  width: 100%;
  height: 100%; /* Match full parent height */
}

/* Flexbox for Footer Alignment */
.signature-pad--footer {
  display: flex; /* Enable flexbox */
  justify-content: space-between; /* Push elements to opposite sides */
  align-items: center; /* Center elements vertically */
  width: 100%; /* Ensure it spans the full container */
  gap: 10px; /* Add space between text and button */
}

.signature-pad--footer p {
  margin: 0; /* Remove default margin */
  flex: 1; /* Allow text to take available space */
}

.signature-pad--footer button {
  padding: 10px 20px; /* Button size */
  background: #dc3545; /* Danger button color */
  color: white; /* Text color */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap; /* Prevent wrapping of button text */
}

.signature-pad--footer button:hover {
  background: #a71d2a; /* Darker hover effect */
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .signature-pad--footer {
    flex-direction: column; /* Stack elements on smaller screens */
    align-items: flex-start; /* Align items to the left */
  }

  .signature-pad--footer button {
    margin-top: 10px; /* Add spacing when stacked */
  }
}



/* Home button styling */
/* Ensure the button container is positioned on the right */
.nav {
    position: fixed; /* Fix to the screen */
    top: 50%; /* Center vertically */
    right: 20px; /* Position at the right */
    transform: translateY(-50%); /* Adjust for exact centering */
    z-index: 1000; /* Ensure it's above other content */
}

/* Style the home button */
.nav-button {
    background-color: black; /* Black background */
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s; /* Smooth transition */
}

/* Hover effect */
.nav-button:hover {
    background-color: lightgray; /* Light grey on hover */
    color: black; /* Change icon color to black on hover */
}

/* Ensure the icon is styled correctly */
.nav-button i {
    font-size: 24px; /* Adjust icon size */
}


/* Print Media Query */
/* Print Media Query */
/* Print Media Query */
@media print {
  /* General Reset */
  body {
    font-family: Arial, sans-serif;
    font-size: 12px;
    margin: 0.25in; /* Narrow margins */
    line-height: 1.5; /* Readable spacing */
    color: black; /* Ensure text is black */
  }

  /* Hide Input Fields, Show Plain Text */
  input, textarea, select {
    display: none; /* Hide input boxes */
  }

  input::after, textarea::after, select::after {
    content: attr(value); /* Display the typed value as plain text */
  }

  /* Text Display for Labels and Values */
  label {
    font-weight: bold; /* Highlight labels */
  }

  .output {
    display: block;
    margin-bottom: 0.5em; /* Space between output fields */
  }

  /* Tables */
  table {
    width: 100%; /* Full width tables */
    border-collapse: collapse;
    font-size: 12px; /* Ensure consistent font size */
  }

  table th, table td {
    border: 1px solid black;
    padding: 4px; /* Minimal padding for compactness */
  }

  /* Signatures */
  canvas {
    max-width: 100%; /* Fit within container */
    height: auto;
    border: 1px solid black; /* Keep the signature outline visible */
  }

  /* Hide Buttons and Non-Printable Elements */
  .btn, .no-print, header, footer {
    display: none; /* Exclude buttons, headers, footers, and other graphics */
  }

  /* Prevent Content Breaking */
  div, table {
    page-break-inside: avoid; /* Keep content together */
    page-break-before: auto;
  }
}

