 * {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: Arial, sans-serif;
 }

 p {
   margin: 0;
   padding: 0;
   font-size: 16px;
   line-height: 1.5;
 }


 .p1 {
   font-size: 16px;
   font-family: Arial, sans-serif;
   line-height: 1.5;
   color: #fff;
 }

 h2 {
   color: #fff;
   font-size: 24px;
   font-family: Arial, sans-serif;
   padding: 0;
   max-width: 100%;
   top: 100px;
   margin: auto;
 }

  h3 {
   color: #000000;
   font-size: 18px;
   font-family: Arial, sans-serif;
   padding: 0;
   max-width: 100%;
   top: 100px;
   margin: auto;
 }

 header {
   background-color: #45005a;
   font-family: Arial, sans-serif;
   color: #fff;
   padding: .5rem;
   text-align: center;
   position: fixed;
   width: 100%;
   left: 0;
   z-index: 1000;
   height: 65px;
   display: flex;
   align-items: center;
 }

 footer {
   background-color: #45005a;
   font-family: Arial, sans-serif;
   color: #fff;
   padding: .5rem;
   text-align: center;
   position: fixed;
   width: 100%;
   left: 0;
   z-index: 1000;
   min-height: 75px;
 }

 header {
   top: 0;
 }

 footer {
   bottom: 0;
 }

 .button {
   display: inline-block;
   background-color: #45005a;
   color: white;
   border: none;
   width: 200px;
   padding: 10px 20px;
   border-radius: 5px;
   cursor: pointer;
   font-size: 16px;
   margin-top: 10px;
   text-align: center;
   text-decoration: none;
   transition: background-color 0.3s ease;
 }

 .button:hover {
   background-color: #636363;
 }

 .button-sec {
   display: inline-block;
   background-color: #636363;
   color: white;
   border: none;
   width: 200px;
   padding: 10px 20px;
   border-radius: 5px;
   cursor: pointer;
   font-size: 16px;
   margin-top: 10px;
   text-align: center;
   text-decoration: none;
   transition: background-color 0.3s ease;
 }

 .button-sec:hover {
   background-color: #45005a;
 }


 .footer a {
   color: #fff;
 }

 .footer-nav {
   display: flex;
   justify-content: center;
   gap: 10px;
   margin: 0 auto 8px;
   width: min(220px, calc(100vw - 24px));
 }

 .footer .footer-nav-button {
   flex: 1 1 0;
   width: auto;
   min-width: 0;
   margin-top: 0;
   padding: 8px 10px;
   line-height: 1.1;
   white-space: nowrap;
 }

 body {
   background-color: #C8C8C8E8;
   /*display: flex;
   justify-content: center;
   align-items: center;*/
 }

 .container {
   margin-top: 75px;
   margin-bottom: 130px;
   width: 100%;
   padding: 15px;
   padding-bottom: 130px;
   box-sizing: border-box;
   /*text-align: left;*/
    
 }


body.login-page {
  min-height: 100vh;
}

body.login-page .container {
  min-height: calc(100vh - 65px - 75px);
  margin-top: 65px;
  margin-bottom: 75px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.login-page .login-panel {
  width: min(100%, 520px);
  text-align: center;
}

body.login-page fieldset {
  border: 0;
  width: 100%;
}

body.login-page input[name="u_login"],
body.login-page input[name="u_password"] {
  width: 100% !important;
  text-align: center;
}

 .form-container {
   display: flex;
   margin-top: 75px;
   padding: 15px;
   padding-bottom: 90px;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   width: 100%;
 }

 /* Container UL styling */
.lap-questions {
    list-style: none;       /* remove default bullets */
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

.lap-questions li {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Number before question */
.lap-questions .q-num {
    font-weight: bold;
    margin-right: 8px;
}

/* Question text */
.lap-questions .q-text {
    flex: 1;
    margin-right: 8px;
}

/* Default response styling */
.lap-questions .q-response {
    font-weight: bold;
    text-transform: capitalize;
}

/* Yes response in bold red */
.lap-questions .response-yes .q-response {
    color: red;
}

/* No response in muted gray */
.lap-questions .response-no .q-response {
    color: #777;
}



 @media (min-width: 768px) {
   body {
     max-width: 75%;
     margin: 0 auto;
   }

   .form-control.subject-select {
     width: 100%;
     /* Full width for mobile */
   }

   .button-container {
     align-items: stretch;
     /* Make buttons fill container width */
   }

   .form-inline {
     gap: 10px;
   }
 }

 table.info-table {
   width: 100%;
   border-collapse: collapse;
   background-color: #f2f2f2;
   padding: 90px;
   border-bottom: 50px;
 }

 table.info-table th,
 table.info-table td {
   padding: 10px;
   border: 1px solid black;
   text-align: left;
 }

 table.info-table th {
   width: 30%;
 }

 table.info-table td {
   width: 70%;
 }

/* wrapper enables horizontal scroll on small screens */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* proper table layout */
table.recd-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;          /* or fixed + explicit widths per column */
  background-color: rgba(228,228,228,0.911);
  margin: 0;
}

/* cells */
table.recd-table th,
table.recd-table td {
  padding: 10px;
  border: 1px solid black;
  text-align: left;
  white-space: nowrap;         /* keep phone/short labels on one line */
}

 input,
 select,
 textarea {
   color: black;
   background-color: #ffffff71;
   border: 1px solid darkgray;
   border-radius: 5px;
   align-items: center;
   display: flex;
   width: 100%;
   padding: 10px;
   margin: 5px 0;
   box-sizing: border-box;
   font-size: 18px;
   -webkit-text-size-adjust: 100%;

 }

 /* Button styles */
 .btn-primary {
   display: inline-block;
   align-items: center;
   font-family: inherit;
   cursor: pointer;
   font-weight: 500;
   font-size: 17px;
   width: 225px;
   padding: 0.8em 1.5em 0.8em 1.2em;
   color: white;
   background: #7a36c7;
   background: linear-gradient(0deg,
       #7a36c7 0%,
       #45005a 100%);
   border: none;
   box-shadow: 0 0.7em 1.5em -0.5em #231039;
   letter-spacing: 0.05em;
   border-radius: 20em;
 }

 .btn-primary svg {
   margin-right: 8px;
 }

 .btn-primary:hover {
   box-shadow: 0 0.5em 1.5em -0.5em #363ed0be;
 }

 .btn-primary:active {
   box-shadow: 0 0.3em 1em -0.5em #3640d0be;
 }

 .btn-secondary {
   display: inline-block;
   align-items: center;
   font-family: inherit;
   cursor: pointer;
   font-weight: 500;
   font-size: 17px;
   padding: 0.8em 1.5em 0.8em 1.2em;
   width: 225px;
   color: white;
   background: #8953ad;
   background: linear-gradient(0deg,
       #343434be 0%,
       #c2c2c2be 100%);
   border: none;
   box-shadow: 0 0.7em 1.5em -0.5em #7c7c7cbe;
   letter-spacing: 0.05em;
   border-radius: 20em;
 }

 .btn-secondary svg {
   margin-right: 8px;
 }

 .btn-secondary:hover {
   background: linear-gradient(0deg,
       #7a36c7 0%,
       #600ebd 100%);
   box-shadow: 0 0.5em 1.5em -0.5em #363ed0be;
 }

 .btn-secondary:active {
   box-shadow: 0 0.3em 1em -0.5em #3640d0be;
 }

 .btn-danger {
   display: inline-block;
   align-items: center;
   font-family: inherit;
   cursor: pointer;
   font-weight: 500;
   font-size: 17px;
   width: 225px;
   padding: 0.8em 1.5em 0.8em 1.2em;
   color: white;
   background: #ad5353;
   background: linear-gradient(0deg,
       rgb(245, 8, 8) 0%,
       rgb(171, 43, 43) 100%);
   border: none;
   box-shadow: 0 0.7em 1.5em -0.5em #d03636be;
   letter-spacing: 0.05em;
   border-radius: 20em;
 }

 .btn-danger svg {
   margin-right: 8px;
 }

 .btn-danger:hover {
   box-shadow: 0 0.5em 1.5em -0.5em #d03636be;
 }

 .btn-danger:active {
   box-shadow: 0 0.3em 1em -0.5em #d03636be;
 }

 .form-group {
   align-items: flex-start;
   flex-direction: column;
   margin-bottom: 15px;
 }

 .form-group label {
   display: block;
   margin-bottom: 8px;
 }

 .form-label {
   margin-right: 30px;
   margin-bottom: 10px;
 }

 .form-input {
   width: 100%;
 }

 /* Flex container for the form */
 .form-inline {
   display: flex;
   flex-wrap: wrap;
   /* Allow wrapping on smaller screens */
   gap: 10px;
   /* Add space between inputs */
   align-items: center;
   /* Aligns items vertically */
 }

 /* Style for individual columns */
 .form-inline .col {
   flex: 1;
   /* Make each input take an equal portion of the available space */
   min-width: 200px;
   /* Set a minimum width to avoid collapsing */
 }

 /* Optional: Form control styling for uniform appearance */
 .form-control {
   padding: 10px;
   /* Add padding inside the inputs */
   box-sizing: border-box;
   /* Include padding in width calculation */
 }

 /* Additional styles for customization */
 .form-control.subject-select {
   width: 50%;
   /* Make the dropdown narrower */
 }

 .form-control.message-textarea {
   width: 100%;
   /* Full width for textarea */
   height: 150px;
   /* Increase height for better message input */
   overflow: scroll;
 }

 .button-container {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   /* Space between buttons */
   justify-content: flex-start;
   /* Align buttons to the start */
   margin-top: 20px;
 }

 .button-container .btn {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   /* Space between buttons */
   justify-content: flex-start;
   /* Align buttons to the start */
   margin-top: 20px;
 }
.checkbox-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto;
  width: 200px;
}

.checkbox-line input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.admin-reset-form {
  margin-top: 16px;
  text-align: center;
}
.checkbox-line-left {
  justify-content: flex-start;
  margin-left: 0;
}
.broadcast-message {
  min-height: 220px;
}

.broadcast-results {
  background: #f2f2f2;
  border: 1px solid #999;
  margin: 10px 0;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
}
.analytics-panel,
.analytics-summary,
.chart-card,
.metric {
  background: rgba(242, 242, 242, 0.94);
  border: 1px solid #9b9b9b;
  border-radius: 5px;
  padding: 12px;
  margin: 12px 0;
}

.analytics-filter,
.metric-grid,
.chart-grid {
  display: grid;
  gap: 10px;
}

.analytics-filter {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: start;
}

.analytics-filter label,
.analytics-check {
  display: block;
  font-weight: bold;
}

.analytics-filter input[type="checkbox"] {
  display: inline-block;
  width: auto;
}

.analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.analytics-questions,
.analytics-actions,
.analytics-check {
  grid-column: 1 / -1;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric span,
.metric small {
  display: block;
}

.metric strong {
  display: block;
  font-size: 26px;
}

.chart-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.bar-track {
  background: #d8d8d8;
  border: 1px solid #777;
  min-height: 18px;
}

.bar-fill {
  background: #45005a;
  min-height: 18px;
}
