.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }

  .modal-content .form-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .modal-content .form-header h1 {
    color: #2d3436;
  }

  .modal-content .form-header p {
    color: #636e72;
  }

  .modal-content .form-control {
    padding-left: 40px;
  }

  .modal-content .form-control:focus {
    border-color: #030343;
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.2);
  }

  .modal-content form input{
    padding: 25px;
  }

  .modal-content .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #636e72;
  }

  .modal-content .btn-custom {
    background: linear-gradient(45deg, #030343, #007aff);
    color: white;
    font-weight: 600;
  }

  .modal-content .btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
  }

  .modal-content .link-text {
    text-align: center;
    margin-top: 20px;
    color: #000;
  }

  .modal-content .link-text a {
    font-weight: 600;
    color: #030343;
    text-decoration: none;
  }

  .modal-content .link-text a:hover {
    text-decoration: underline;
  }

  form .position-relative{
    position: relative;
  }

  form .position-relative .input-icon{
    position: absolute;
    top: 50%;
  }
  

.modals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Allow modal itself to scroll */
    padding: 40px 10px; /* Add some space so the modal content isn't cut off */
}


   
   .modals.active {
       display: flex;
       opacity: 1;
   }
   
   .modal-contents {
       background: white;
       border-radius: 15px;
       width: 90%;
       max-width: 600px;
       padding: 30px;
       box-shadow: 0 15px 30px rgba(0,0,0,0.3);
       position: relative;
       transform: translateY(50px);
       transition: transform 0.4s ease;
        max-height: 90vh; /* Limit height of modal */
    overflow-y: auto;
   }
   
   .modals.active .modal-contents {
       transform: translateY(0);
   }
   
   .close-btn {
       position: absolute;
       top: 20px;
       right: 20px;
       font-size: 1.8rem;
       color: #888;
       cursor: pointer;
       transition: all 0.3s ease;
   }
   
   .close-btn:hover {
       color: #e74c3c;
       transform: rotate(90deg);
   }
   
   .modal-contents h2 {
       font-size: 1.8rem;
       color: #2c3e50;
       margin-bottom: 20px;
       padding-bottom: 15px;
       border-bottom: 2px solid #3498db;
   }
   
   .modal-contents p {
       margin-bottom: 15px;
       line-height: 1.6;
   }
   
   .modal-contents strong {
       color: #2c3e50;
   }

   #modalJobDescription{
    height: 250px;
    overflow-y: auto;
   }
   
   #confirmApplyBtn {
       background: linear-gradient(45deg, #030343, #007aff);
       color: white;
       padding: 14px 30px;
       border-radius: 30px;
       font-weight: 600;
       font-size: 1.1rem;
       border: none;
       cursor: pointer;
       display: block;
       width: 100%;
       margin-top: 25px;
       transition: all 0.3s ease;
   }
   
   #confirmApplyBtn:hover {
       transform: translateY(-3px);
       box-shadow: 0 5px 15px rgba(0,0,0,0.2);
       background: linear-gradient(45deg, #030343, #007aff);
   }
   
   /* Success Modal Specific Styles */
   #successModal .modal-contents {
       text-align: center;
   }
   
   #successModal h2 {
       color: #27ae60;
       border-bottom: none;
       margin-bottom: 15px;
   }
   
   #successModal p {
       font-size: 1.2rem;
       margin-bottom: 25px;
   }
   
   .success-icon {
     display: inline-block;
       font-size: 4rem;
       color: #27ae60;
       margin-bottom: 20px;
       animation: pulse 1.5s infinite;
   }

   @media (max-width: 600px) {
    .modal-contents {
        width: 95%;
        padding: 20px;
        border-radius: 10px;
    }

    .modal-contents h2 {
        font-size: 1.5rem;
    }

    .modal-contents p {
        font-size: 0.95rem;
    }

    #modalJobDescription {
        height: 250px;
    }

    #confirmApplyBtn {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .close-btn {
        font-size: 1.5rem;
        top: 15px;
        right: 15px;
    }

    .success-icon {
        font-size: 3rem;
    }

    #successModal p {
        font-size: 1rem;
    }
}

#login-toast{
  background-color: green;
}

#logout-toast{
  background-color: red;
}

#login-toast,#logout-toast {
  visibility: hidden;
  min-width: 250px;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 12px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#login-toast.show, #logout-toast.show {
  visibility: visible;
  opacity: 1;
}
