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

/* Body and form styling */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}


label {
    font-size: 16px;
   
}

@media (max-width: 600px) {
    label {
        font-size: 18px;
        font-weight: bold; 
    }

    input, select {
        font-size: 16px;
    }
}











h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Input styling */
input[type="text"], input[type="number"], input[type="date"], select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="radio"] {
    margin-right: 10px;
    display: inline-block; /* Ensures radio buttons are in a single row */
}

label {
    font-size: 18px;
    margin-bottom: 5px;
    display: inline-block; /* Keep labels in a single row with their respective radio buttons */
    margin-right: 15px; /* Add space between labels */
}

/* Submit button styling */
input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Mobile responsiveness using media queries */
@media screen and (max-width: 768px) {
    /* Adjust form input fields to stack */
    form {
        padding: 15px;
    }

    input[type="submit"] {
        width: 100%;
    }

    /* Adjust table for smaller screens */
    table {
        width: 100%;
        font-size: 14px;
    }

    /* Stack radio buttons for class selection */
    input[type="radio"] {
        margin-right: 5px;
        display: inline-block;
        width: auto;
    }

    label {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    /* Further adjustments for very small screens (phones) */
    body {
        margin: 10px;
    }

    form {
        padding: 10px;
    }

    h2 {
        font-size: 18px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 10px;
    }

    /* Adjust input sizes for mobile screens */
    input[type="text"], input[type="number"], input[type="date"], select {
        font-size: 14px;
    }

    input[type="submit"] {
        font-size: 16px;
    }
}
.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 6px;
  border-radius: 6px;
  width: fit-content;
  gap: 10px;
}

.input-wrapper input {
  border: none;
  outline: none;
  font-size: 16px;
  padding: 5px;
  width: 200px;
}

.input-wrapper i {
  font-size: 20px;
  color: #555;
  cursor: pointer;
}

#scanner-container {
  display: none;
  position: relative;
  width: 320px;
  height: 320px;
  margin-top: 15px;
  border: 2px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  z-index: 9999;
  background: #000;
}

#scanner {
  width: 100%;
  height: 100%;
}

.scanner-btn {
  position: absolute;
  top: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 10000;
}

#close-btn {
  right: 10px;
}

#flash-btn {
  left: 10px;
}
