*{
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box;
}

body {
    background-color: #1f1f1f;
    width: 100vw;
    max-height: max-content;
    overflow-x: hidden;
}

header {
    background-color: hsl(0, 0%, 96%);
    width: 100%;
  display: flex;
  padding: 15px;
  margin: auto;
  justify-content: space-between;
}

header .flexisaf-logo {
    padding-left: 10px;
}

header button {
   display: inline; 
   border: none;
   outline: none;
   margin-right: 10px;
   background-color: hsl(171, 100%, 96%);
   border-radius: 50%;
   height: 30px;
   width: 30px;
   cursor: pointer;
   transition: 0.8s;
}

header button:hover{
    background-color: hsl(171, 100%, 93%);

}

header button img {
    vertical-align: middle;
    width: 16px;
    height: 16px;
}

.lightMode {
    display: none;
}

.internManagement {
    width: 98%;
    min-height: 100vh;
    margin: 50px auto 20px;
    display: block;
    text-align: center;
    padding: 10px;
    justify-items: center;
    animation: fadeIn 0.5s ease;
}

.internManagement h1 {
    color: rgb(216,219,222);
    font-weight: bold;
}

.internManagement .searchBox {
    margin-top: 30px;
}

#searchInput {
   border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 10px 25px;
    height: 30px;
    width: 200px;
    max-width: 450px;
    border-radius: 30px;
    flex: 1;
    margin-right: 10px;
    font-size: 18px;
}

#searchBtn {
    border: 0;
    outline: 0;
    background: #ebfffc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#searchBtn img {
        width: 16px;
}

.internManagement .filter {
    margin-top: 10px;
}

.internManagement .filter button {
    margin-top: 10px;
    margin-right: 5px;
    margin-left: 5px;
    border: 0;
    outline: 0;
    border-radius: 10px;
    padding: 8px;
    color: #1f1f1f;
    background-color: #c4c4c4;
}


.internManagement select {
    border: none;
    outline: none;
    margin-left: 5px;
    color:  #555;
}

.internManagement table {
    display: none;
    width: 100%;
    overflow-x: auto;
    color: rgb(216,219,222);
    padding: 15px 15px;
    margin-top: 20px;
    text-align: center;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
    animation: fadeIn 0.5s ease;
  }


  @media (min-width: 768px) {
    .internManagement table {
    text-align: center;
    width: auto;
      max-height: 500px;
      overflow-y: auto;
    }
  }
  
  th, td {
    border: 1px solid rgb(26,137,180);
    padding: 5px;
    text-align: left;
  }

td .stage {
    border: 1.6px solid green;
    outline: none;
    border-radius: 5px;
    background-color: hsl(0, 0%, 95%);
    text-align: center;
}

td .path {
    border: none;
    outline: none;
    border-radius: 5px;
    background-color: #174ea6;
    color: #ebfffc;
}

.alignCenter {
text-align: center;
}

footer {
    display: flex;
    justify-content: space-between;
    background-color: hsl(0, 0%, 96%);
    margin-bottom: 0pc;
    width: 100%;
  position: bottom;
  padding: 10px;
  bottom: 0;
  text-align: center;
  transform: translateY(100%);
  animation: slideInBottom 0.5s ease-out 0.3 forwards;
}

footer a{
    text-decoration: none;
    color: #1f1f1f;
}
footer a:hover{
    color: rgb(26,137,180);
}

.footer-right{
    margin-right: 15px;
    display: inline-block;
    vertical-align: middle;
}
.footer-left{
    display: inline-block;
    vertical-align: middle;
}

footer button {
    border: 1px solid rgb(26,137,180);
    outline: none;
    font-size: 14px;
    vertical-align: middle;
    background-color: hsl(171, 100%, 96%);
    border-radius: 10px;
    color: #1f1f1f;
    transition: 0.5s ease;
}
footer p{
  font-size: 14px;
}
#contactAdminBtn{
  display: block;
}

#viewPlacementListBtn{
  display: none;
}

footer button:hover{
background-color: hsl(171, 100%, 90%);
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*Contact Form Styling Start */
.contactForm {
    width: 90%;
  min-height: 80vh;
  margin: 50px auto 20px;
  padding: 20px;
  display: none;
  background: white;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
}
.contactForm h1 {
    color: #1f1f1f;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.name-row {
  display: flex;
  gap: 1.5rem;
}

.name-row .input-group {
  flex: 1;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contactForm label {
  font-weight: 600;
  color: #1f1f1f;
  font-size: 0.9rem;
}

.contactForm span {
  color: #1f1f1f;
}

.contactForm input,
.contactForm textarea {
    outline: none;
  padding: 0.8rem;
  color: #1f1f1f;
  border: 1px solid aqua;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}
input[type="text"]:focus,input[type="email"]:focus,
textarea:focus {
  outline: none;
  border: 1px solid #1f1f1f;
  box-shadow: 0 0 0 2px aqua;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.radio-group {
  margin-top: 1rem;
}

.radio-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f1f1f;
}

.radio-options {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radio-options.vertical {
  flex-direction: column;
  gap: 0.5rem;
}

.radio-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.radio-options input {
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.radio-options input[type="radio"]:checked::after {
  position: absolute;
  
}

.submit-btn {
  background: hsl(217, 76%, 37%);
  color: hsl(0, 0%, 96%);
  border: 1px solid aqua;
  padding: 1rem 1.5rem;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 1rem;
  width: 100%;
}

.submit-btn:hover {
  background: hsl(217, 76%, 27%);
  color: hsl(0, 0%, 96%);
}

.submit-btn a {
  text-decoration: none;
  color: hsl(0, 0%, 96%);
}

.confirmationNotification {
  background: hsl(136, 76%, 37%);
  color: hsl(0, 0%, 96%);
  border: 1px solid aqua;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 50px;
  display: none;
}

/* Error states */
input:invalid,
textarea:invalid {
  border-color: #bf0b0b;
}

.error-message {
  color: #bf0b0b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .name-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .radio-options {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Light mode */
body.light-mode {
    background-color: rgb(216,219,222);
}
body.light-mode .internManagement h1 {
    color: #1f1f1f;
}
body.light-mode table {
    color: #1f1f1f;
}
body.light-mode table {
    color: #1f1f1f;
}
body.light-mode .internManagement span {
    color: #1f1f1f;
}
body.light-mode .contactForm {
    background-color: white;
}

/* Dark mode */
body.dark-mode {
    background-color: #1f1f1f;
}

body.dark-mode .internManagement h1 {
    color: rgb(216,219,222);
}
body.dark-mode .internManagement span {
    color: rgb(216,219,222);
}
body.dark-mode .contactForm {
    background-color: hsl(0, 0%, 14%);
}
body.dark-mode .contactForm h1 {
  color: rgb(216,219,222);
}
body.dark-mode table {
    color: rgb(216,219,222);
}
body.dark-mode .contactForm span {
  color: rgb(216,219,222);
}
body.dark-mode .contactForm label {
  color: rgb(216,219,222);
}
body.dark-mode .contactForm .radio-title {
  color: rgb(216,219,222);
}
body.dark-mode .contactForm input, body.dark-mode .contactForm textarea {
  background-color: hsl(0, 0%, 14%);
  color: white;
}