/* Modal popup styling */
body.modal-open {
    overflow: hidden;
}

#pm2FaModal, #doctorProfileModal {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: transparent;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    height: 100%;
}

#pm2FaModal::before, #doctorProfileModal::before {
    content: '';
    position: fixed;
    background: #00000082;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
}

#pm2FaModal .modal-dialog {
    max-width: 400px;
    margin: 0 auto;
    transform: translateY(50%);
}

#doctorProfileModal .modal-dialog {
    max-width: 700px;
    margin: 0 auto;
    transform: translateY(20%);
}

#pm2FaModal .modal-body h1, #doctorProfileModal .modal-body h3 {
    margin-bottom: 15px;
    font-size: 30px;
}

#pm2FaModal .modal-body form .form-control, #doctorProfileModal form input[type="number"] {
    letter-spacing: 10px;
}

#pm2FaModal .modal-body button {
    width: 100%;
}

#pm2FaModal form input::placeholder, #doctorProfileModal form input[type="number"]::placeholder {
    letter-spacing: 0;
}

#custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Close button */
#pm2FaModal .close-btn, #doctorProfileModal .close-btn {
    margin-top: 10px;
    padding: 5px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

#pm2FaModal .close-btn, #doctorProfileModal .close-btn {
    position: relative;
    top: 15px;
    right: -15px;
}

#doctorProfileModal .close-btn {
    top: -20px;
    right: -10px;
}

#doctorProfileModal canvas {
    border: 1px solid #8c8f94;
}

#doctorProfileModal .button-small {
    margin-top: 7px;
}

.red {
    color: red;
}

.error-message {
    float: left;
}

.signature-pad {
    border: 2px solid black;
    border-radius: 5px;
}

.login form {
    border-radius: 10px;
}