@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

.animation {
  -webkit-animation: transitionIn 0.75s;
          animation: transitionIn 0.75s;
}

@-webkit-keyframes transitionIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-10deg);
            transform: translateY(-10deg);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes transitionIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-10deg);
            transform: translateY(-10deg);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100vh;
  width: 100%;
  -webkit-transition: all 0.35s ease-in-out;
  -o-transition: all 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
  min-width: 0;
  background-color: #e8e5e4;
  font-family: 'Poppins', sans-serif;
}

header {
    height: 75px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 0 16px;
    background: #3e5238;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: #e8e5e4;
}

.header-title {
    font-weight: bold;
    margin-left: 10px;
}

.header-title::before {
  content: "BASC DORMITORY OPERATIONS MANAGEMENT SYSTEM";
  font-size: 1.1rem;
}

.main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    min-height: 100vh;
    width: 100%;
    -webkit-transition: all 0.35s ease-in-out;
    -o-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
    min-width: 0;
}


.application-box {
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  max-width: 900px;
}

.form-control, .form-select, .form-check-input{
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.file-upload, .cor-upload {
  background-color: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  margin-top: 0.5rem;
}

.file-upload:hover, .cor-upload:hover {
  background-color: #0056b3;
}
input[name="phoneNo"],
input[name="guardianNo"],
input[name="province"],
input[name="city"],
input[name="barangay"],
select[name="province"],
select[name="city"],
select[name="barangay"],
input[name="birthday"] {
  background-color: #f2f2f2; 
  -webkit-transition: background-color 0.3s ease; 
  -o-transition: background-color 0.3s ease; 
  transition: background-color 0.3s ease;
}

input[name="phoneNo"]:not(:-moz-placeholder-shown), input[name="guardianNo"]:not(:-moz-placeholder-shown), input[name="province"]:not(:-moz-placeholder-shown), input[name="city"]:not(:-moz-placeholder-shown), input[name="barangay"]:not(:-moz-placeholder-shown) {
  background-color: #e6f0ff !important; /* light blue */
}

input[name="phoneNo"]:not(:-ms-input-placeholder), input[name="guardianNo"]:not(:-ms-input-placeholder), input[name="province"]:not(:-ms-input-placeholder), input[name="city"]:not(:-ms-input-placeholder), input[name="barangay"]:not(:-ms-input-placeholder) {
  background-color: #e6f0ff !important; /* light blue */
}

input[name="phoneNo"]:not(:placeholder-shown),
input[name="guardianNo"]:not(:placeholder-shown),
input[name="province"]:not(:placeholder-shown),
input[name="city"]:not(:placeholder-shown),
input[name="barangay"]:not(:placeholder-shown),
select[name="province"]:valid,
select[name="city"]:valid,
select[name="barangay"]:valid,
input[name="birthday"]:valid {
  background-color: #e6f0ff !important; /* light blue */
}


.picture-preview, .cor-preview {
  width: 100px;
  height: 100px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 650px;
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  -webkit-animation: slideDownFade 0.4s ease forwards;
          animation: slideDownFade 0.4s ease forwards;
  color: #333;
  line-height: 1.6;
}

.modal-body {
  padding: 10px;
}


.text-danger {
  position: relative;
  left: 10px;

}

@-webkit-keyframes slideDownFade {
  from {
    opacity: 0;
    -webkit-transform: translateY(-20px);
            transform: translateY(-20px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    -webkit-transform: translateY(-20px);
            transform: translateY(-20px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

.modal h2 {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.9rem;
  color: #2c3e50;
  margin-bottom: 15px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
}

.modal p,
.modal ol,
.modal ul {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
}

.modal ol {
  padding-left: 20px;
}

.modal ol>li {
  margin-bottom: 18px;
}

.modal ul {
  padding-left: 20px;
  margin-top: 8px;
}

.modal ul>li {
  margin-bottom: 8px;
  list-style-type: disc;
}

.close {
  color: #999;
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  -webkit-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #e74c3c;
  text-shadow: 0 0 8px rgba(231, 76, 60, 0.7);
  outline: none;
}

.modal a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
}

.modal a:hover {
  text-decoration: underline;
}

.modal-footer {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.text-success::marker{
    margin-left: 10px;
}

.footer {
   height: 10vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    background-color: lightgray;
}

.footer-contact {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 30px;
    padding: 5px 0;
    height: 6vh;
}

.contact-footer {
    margin-right: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    color: #333;
     text-decoration: none;
    -webkit-transition: color 0.3s ease, -webkit-transform 0.3s ease;
    transition: color 0.3s ease, -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease, color 0.3s ease;
    transition: transform 0.3s ease, color 0.3s ease;
    transition: transform 0.3s ease, color 0.3s ease, -webkit-transform 0.3s ease;
}

.contact-footer:hover {
    -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1);
    color: #007BFF;
}

.contact-footer i {
    font-size: 15px;
    color: #555;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.contact-footer h5 {
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    margin-top: 10px;
     text-decoration: none;

}

.contact-footer:hover i {
    color: #007BFF;
}

.footer-footer {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-top: 7px;
    margin-left: 20px;
}

@media (max-width: 991px) {

     .footer {
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-orient: vertical !important;
        -webkit-box-direction: normal !important;
            -ms-flex-direction: column !important;
                flex-direction: column !important;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        align-items: center;
    }

   .contact-footer i {
    font-size: 12px;
    color: #555;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

    .contact-footer h5 {
        font-size: 14px;
        font-weight: bold;
        margin-top: 0px;
        margin-left: 10px;
    }

    .footer-footer {
        margin: 0;
        font-size: 17px;
        color: #555;
        text-align: center;
    }
}

@media (max-width: 870px) {

  .header-title::before {
    content: "BASC DOMS";
    font-size: 1.2rem;
  }

  .text-danger li {
    font-size: 20px;

  }
}


@media (max-width: 768px) {
  header {
    left: 12px;
    right: 12px;
  }

  .header-title {
    font-size: 0.95rem;
    margin-left: 10px;
  }

    img {
        height: 45px;
        width: 45px;
      }
}

@media (max-width: 769px) {
  .main {
    padding-top: 8px;
  }

  header span img {
    height: 45px;
    width: 45px;
  }

   .contact-footer i {
        font-size: 15px;
        color: #555;
        -webkit-transition: color 0.3s ease;
        -o-transition: color 0.3s ease;
        transition: color 0.3s ease;
    }

    .contact-footer h5 {
        font-size: 12px;
        font-weight: bold;
        margin-top: 7px;
        margin-left: 10px;
    }

    .footer-footer {
        font-size: 16px;
        color: #555;
        text-align: center;

    }

  
}

@media (max-width: 576px) {
  .header-title::before {
    content: "BASC DOMS";
    font-size: 1.1rem;
  }

  .footer-contact {
        gap: 20px;
    }

    .contact-footer i {
        font-size: 14px;
        color: #555;
        -webkit-transition: color 0.3s ease;
        -o-transition: color 0.3s ease;
        transition: color 0.3s ease;
    }

    .contact-footer h5 {
        font-size: 11px;
        font-weight: bold;
        margin-left: 10px;
    }

    .footer-footer {
        font-size: 15px;
        color: #555;
        text-align: center;
    }
}


@media (max-width: 480px) {
  .header-title {
    font-size: 0.8rem;
  }

}

@media (max-width: 480px) {

  .header-title::before {
    font-size: 1rem;
    margin-left: 2px;
  }

  .text-danger {
    font-size: 0.72rem !important;

  }

 .contact-footer i {
        font-size: 14px;
        color: #555;
        -webkit-transition: color 0.3s ease;
        -o-transition: color 0.3s ease;
        transition: color 0.3s ease;
    }

    .contact-footer h5 {
        font-size: 11px;
        font-weight: bold;
        margin-left: 5px;
    }

    .footer-footer {
        font-size: 15px;
        color: #555;
        text-align: center;
    }
}

@media (max-width: 409px) {

  .header span img {
    height: 40px;
    width: 40px;
  }


  .footer-contact {
        gap: 15px;
        margin-left: 10px;
    }

    .contact-footer i {
        font-size: 12px;
        color: #555;
        -webkit-transition: color 0.3s ease;
        -o-transition: color 0.3s ease;
        transition: color 0.3s ease;
    }

    .contact-footer h5 {
        font-size: 10px;
        font-weight: bold;
        margin-left: 3px;
    }

    .footer-footer {
        font-size: 13px;
        color: #555;
        text-align: center;
    }
}

@media (max-width: 360px) {

  header span img {
    height: 30px;
    width: 30px;
  }

.footer-contact {
        gap: 5px;
        padding: 5px !important;
    }


    .contact-footer i {
        font-size: 11px;
        color: #555;
        -webkit-transition: color 0.3s ease;
        -o-transition: color 0.3s ease;
        transition: color 0.3s ease;
    }

    .contact-footer h5 {
        font-size: 9px;
        font-weight: bold;
        margin-left: 3px;
    }

    .footer-footer {
        font-size: 12px;
        color: #555;
        text-align: center;
        margin: 0;

    }
}

@media  (max-height: 360px){
 .footer {
        height: 20vh !important; 
    }
}

@media  (max-height: 480px){
 .footer {
        height: 20vh !important; 
    }
}